⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 294903 in webkit


Ignore:
Timestamp:
May 26, 2022, 3:34:25 PM (4 years ago)
Author:
pvollan@apple.com
Message:

[iOS][WP] Block access to file-ioctl commands
​https://bugs.webkit.org/show_bug.cgi?id=240977
<rdar://88334007>

Reviewed by Chris Dumez.

This is based on collected telemetry. This patch also adds telemetry to file read/write of /dev/aes_0
to determine if that can be removed as well.

  • Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:

Canonical link: ​https://commits.webkit.org/251026@main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in

    r294814 r294903  
    316316          (literal "/dev/urandom"))
    317317
    318     (allow file-read* file-write-data
     318    (allow file-read* file-write-data (with telemetry)
    319319           (literal "/dev/aes_0")))
    320320
    … …  
    12401240(deny file-ioctl (with telemetry))
    12411241
    1242 ;; restrict to the two ioctl's /dev/aes_0 needs
    1243 (allow file-ioctl (with telemetry)
    1244     (require-all
    1245         (literal "/dev/aes_0")
    1246         (require-any
    1247             (ioctl-command (_IO "T" 101)) ;; IOAES_GET_INFO
    1248             (ioctl-command (_IO "T" 102)) ;; IOAES_ENCRYPT_DECRYPT
    1249 )))
     1242(deny file-ioctl (with telemetry)
     1243    (literal "/dev/aes_0"))
    12501244
    12511245(deny socket-ioctl (with telemetry))
Note: See TracChangeset for help on using the changeset viewer.