Changeset 295697 in webkit


Ignore:
Timestamp:
Jun 21, 2022 4:01:30 PM (2 years ago)
Author:
pvollan@apple.com
Message:

Block access to socket syscalls
https://bugs.webkit.org/show_bug.cgi?id=241722

Reviewed by Geoffrey Garen.

Block access to socket syscalls in the WebContent process. These are used by the legacy ASL logging system.
The legacy logging system is rarely used in the WebContent process.

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

Canonical link: https://commits.webkit.org/251702@main

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

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

    r295644 r295697  
    10621062        SYS_bsdthread_register
    10631063        SYS_chdir
    1064         SYS_connect
    10651064        SYS_dup2
    10661065        SYS_fsgetpath
     
    12041203#endif
    12051204        SYS_psynch_rw_wrlock
    1206         SYS_socket
    12071205        SYS_umask
    12081206        SYS_work_interval_ctl))
     
    12311229        (syscall-unix-rarely-in-use-need-backtrace))
    12321230)
     1231
     1232(deny syscall-unix (syscall-number
     1233    SYS_connect
     1234    SYS_socket))
    12331235
    12341236(when (defined? 'SYS_map_with_linking_np)
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r295572 r295697  
    19491949        SYS_sigaltstack
    19501950        SYS_sigprocmask
    1951         SYS_socket
    19521951        SYS_stat64
    19531952        SYS_sysctlbyname
     
    19751974        SYS_change_fdguard_np
    19761975        SYS_chmod
    1977         SYS_connect
    19781976        SYS_dup ;; Remove when <rdar://88210738> is fixed
    19791977        SYS_fchmod
     
    20522050        (allow syscall-unix (syscall-number SYS_map_with_linking_np)))
    20532051)
     2052
     2053(deny syscall-unix (syscall-number
     2054    SYS_connect
     2055    SYS_socket))
    20542056
    20552057(with-filter (uid 0)
Note: See TracChangeset for help on using the changeset viewer.