Changeset 283375 in webkit


Ignore:
Timestamp:
Oct 1, 2021, 10:07:54 AM (3 years ago)
Author:
pvollan@apple.com
Message:

Make sandbox rules for debug syscalls stricter
https://bugs.webkit.org/show_bug.cgi?id=230985
<rdar://49531420>

Reviewed by Brent Fulgham.

Make sandbox rules for debug syscalls stricter in the WebContent process on macOS and iOS.

  • Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
  • WebProcess/com.apple.WebProcess.sb.in:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r283374 r283375  
     12021-10-01  Per Arne Vollan  <pvollan@apple.com>
     2
     3        Make sandbox rules for debug syscalls stricter
     4        https://bugs.webkit.org/show_bug.cgi?id=230985
     5        <rdar://49531420>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Make sandbox rules for debug syscalls stricter in the WebContent process on macOS and iOS.
     10
     11        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
     12        * WebProcess/com.apple.WebProcess.sb.in:
     13
    1142021-10-01  Per Arne Vollan  <pvollan@apple.com>
    215
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in

    r283204 r283375  
    12951295        (syscall-number SYS_ulock_wait)
    12961296        (syscall-number SYS_ulock_wake)
    1297         (syscall-number SYS_kdebug_typefilter)
    12981297        (syscall-number SYS_shared_region_check_np)
    12991298        (syscall-number SYS_getpid)
     
    13171316        (syscall-number SYS_pread_nocancel)
    13181317        (syscall-number SYS___semwait_signal_nocancel)
    1319         (syscall-number SYS_kdebug_trace_string) ;; Needed for performance sampling, see <rdar://problem/48829655>.
    13201318        (syscall-number SYS_fgetattrlist) ;; <rdar://problem/50266257>
    13211319        (syscall-number SYS_fsetxattr) ;; <rdar://problem/49795964>
     
    13321330        (allow syscall-unix (syscall-number SYS_objc_bp_assist_cfg_np)))
    13331331)
     1332
     1333(with-filter (system-attribute apple-internal)
     1334    (when (defined? 'syscall-unix)
     1335        (allow syscall-unix
     1336            (syscall-number SYS_kdebug_trace_string) ;; Needed for performance sampling, see <rdar://problem/48829655>.
     1337            (syscall-number SYS_kdebug_typefilter))))
    13341338
    13351339(when (defined? 'file-ioctl)
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r283289 r283375  
    19721972        (syscall-number SYS_ulock_wake)
    19731973        (syscall-number SYS_work_interval_ctl)
    1974         (syscall-number SYS_kdebug_typefilter)
    19751974        (syscall-number SYS_gettid) ;; Needed for base system, see <rdar://problem/48651255>
    19761975        (syscall-number SYS_memorystatus_control) ;; Needed for memory measurement infrastructure, see <rdar://problem/48647263>
    1977         (syscall-number SYS_kdebug_trace_string) ;; Needed for performance sampling, see <rdar://problem/48829655>.
    19781976        (syscall-number SYS_psynch_rw_rdlock) ;; <rdar://problem/49060359>
    19791977        (syscall-number SYS_terminate_with_payload) ;; <rdar://problem/50026580>
     
    20122010#endif
    20132011)
     2012
     2013(with-filter (system-attribute apple-internal)
     2014    (when (defined? 'syscall-unix)
     2015        (allow syscall-unix
     2016            (syscall-number SYS_kdebug_trace_string) ;; Needed for performance sampling, see <rdar://problem/48829655>.
     2017            (syscall-number SYS_kdebug_typefilter))))
    20142018
    20152019#if USE(APPLE_INTERNAL_SDK)
Note: See TracChangeset for help on using the changeset viewer.