Changeset 290066 in webkit


Ignore:
Timestamp:
Feb 17, 2022 1:27:37 PM (2 years ago)
Author:
pvollan@apple.com
Message:

[macOS][WP] Add required syscall to sandbox
https://bugs.webkit.org/show_bug.cgi?id=236781
<rdar://89072361>

Reviewed by Chris Dumez.

Add required syscall to the WebContent process' sandbox on macOS. This patch also adds back a set of
syscalls that were removed in https://commits.webkit.org/r286778 for current and previous versions
of macOS. These syscalls will be denied going forward.

  • WebProcess/com.apple.WebProcess.sb.in:
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r290034 r290066  
     12022-02-17  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [macOS][WP] Add required syscall to sandbox
     4        https://bugs.webkit.org/show_bug.cgi?id=236781
     5        <rdar://89072361>
     6
     7        Reviewed by Chris Dumez.
     8
     9        Add required syscall to the WebContent process' sandbox on macOS. This patch also adds back a set of
     10        syscalls that were removed in https://commits.webkit.org/r286778 for current and previous versions
     11        of macOS. These syscalls will be denied going forward.
     12
     13        * WebProcess/com.apple.WebProcess.sb.in:
     14
    1152022-02-17  Kimmo Kinnunen  <kkinnunen@apple.com>
    216
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r289231 r290066  
    18961896#endif
    18971897
     1898#if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED < 130000
     1899(define (syscall-unix-older-macOS)
     1900    (syscall-number
     1901        SYS___pthread_markcancel
     1902        SYS_abort_with_payload
     1903        SYS_chmod_extended
     1904        SYS_connect_nocancel
     1905        SYS_connectx
     1906        SYS_fgetattrlist ;; <rdar://problem/50931110>
     1907        SYS_fileport_makeport
     1908        SYS_fstat64_extended ;; <rdar://problem/61310019>
     1909        SYS_getpeername
     1910        SYS_getsockopt
     1911        SYS_guarded_write_np
     1912        SYS_lstat64_extended
     1913        SYS_lstat_extended
     1914        SYS_memorystatus_control ;; Needed for memory measurement infrastructure, see <rdar://problem/48647263>
     1915        SYS_mkdirat
     1916        SYS_open_dprotected_np ;; <rdar://problem/74473824>
     1917        SYS_pipe
     1918        SYS_process_policy
     1919        SYS_psynch_rw_rdlock ;; <rdar://problem/49060359>
     1920        SYS_pwrite
     1921        SYS_quotactl ;; <rdar://problem/49945031>
     1922        SYS_recvfrom
     1923        SYS_recvfrom_nocancel
     1924        SYS_rmdir
     1925        SYS_select
     1926        SYS_select_nocancel
     1927        SYS_sem_post
     1928        SYS_sem_wait
     1929        SYS_sendmsg_nocancel
     1930        SYS_sendto_nocancel
     1931#if __MAC_OS_X_VERSION_MIN_REQUIRED < 120000
     1932        SYS_setattrlist ;; rdar://problem/74162777
     1933#endif
     1934        SYS_setpriority
     1935        SYS_setrlimit
     1936        SYS_setsockopt
     1937        SYS_shutdown
     1938        SYS_sigreturn
     1939        SYS_socketpair
     1940        SYS_stat64_extended ;; <rdar://problem/50473330>
     1941        SYS_terminate_with_payload ;; <rdar://problem/50026580>
     1942        SYS_thread_selfusage
     1943#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000
     1944        SYS_ulock_wait2 ;; <rdar://problem/58743778>
     1945#endif
     1946))
     1947#endif
     1948
    18981949(define (syscall-unix-common)
    18991950    (syscall-number
     
    19431994        SYS_kdebug_trace64
    19441995        SYS_kdebug_trace_string ;; Needed for performance sampling, see <rdar://problem/48829655>.
     1996        SYS_kevent ;; <rdar://89072361>
    19451997        SYS_kevent_id
    19461998        SYS_kevent_qos
     
    20492101    (allow syscall-unix
    20502102        (syscall-unix-common))
     2103
     2104#if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED < 130000
     2105    (allow syscall-unix
     2106        (syscall-unix-older-macOS))
     2107#endif
    20512108
    20522109    (if (equal? (param "CPU") "arm64")
Note: See TracChangeset for help on using the changeset viewer.