Changeset 291626 in webkit
- Timestamp:
- Mar 22, 2022 10:19:45 AM (2 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r291625 r291626 1 2022-03-22 Per Arne Vollan <pvollan@apple.com> 2 3 [macOS][WP] Add telemetry for syscalls used during launch 4 https://bugs.webkit.org/show_bug.cgi?id=235865 5 <rdar://problem/88228583> 6 7 Reviewed by Brent Fulgham. 8 9 Add telemetry in the WebContent process' sandbox on macOS to determine which syscalls are used only during launch. 10 11 * WebProcess/com.apple.WebProcess.sb.in: 12 1 13 2022-03-22 J Pascoe <j_pascoe@apple.com> 2 14 -
trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in
r291297 r291626 1877 1877 #endif 1878 1878 1879 (define (syscall-unix-common) 1879 #if HAVE(SANDBOX_STATE_FLAGS) 1880 (deny user-preference-read (with enable-state-flag "WebContentProcessLaunched") 1881 (preference-domain "com.apple.WebKit.WebContent.Launch")) 1882 #endif 1883 1884 (define (syscall-unix-only-in-use-during-launch) 1885 (syscall-number 1886 SYS_csops 1887 SYS_csrctl 1888 SYS_fsgetpath 1889 SYS_getaudit_addr 1890 SYS_getfsstat64 1891 SYS_getrlimit 1892 SYS_kdebug_trace 1893 SYS_pathconf 1894 SYS_statfs64)) 1895 1896 (define (syscall-unix-in-use-after-launch) 1880 1897 (syscall-number 1881 1898 SYS___disable_threadsignal … … 1889 1906 SYS_close 1890 1907 SYS_close_nocancel 1891 SYS_csops1892 1908 SYS_csops_audittoken 1893 SYS_csrctl1894 1909 SYS_exit 1895 1910 SYS_faccessat ;; <rdar://problem/56690456> … … 1900 1915 SYS_flock 1901 1916 SYS_fsetxattr ;; <rdar://problem/56332491> 1902 SYS_fsgetpath1903 1917 SYS_fstat64 1904 1918 SYS_fstatat64 … … 1907 1921 SYS_getattrlist 1908 1922 SYS_getattrlistbulk 1909 SYS_getaudit_addr1910 1923 SYS_getdirentries64 1911 1924 SYS_getentropy 1912 1925 SYS_geteuid 1913 SYS_getfsstat641914 1926 SYS_getgid 1915 1927 SYS_gethostuuid 1916 SYS_getrlimit1917 1928 SYS_getrusage 1918 1929 SYS_gettimeofday … … 1921 1932 SYS_ioctl 1922 1933 SYS_issetugid 1923 SYS_kdebug_trace1924 1934 SYS_kdebug_trace64 1925 1935 SYS_kdebug_trace_string ;; Needed for performance sampling, see <rdar://problem/48829655>. … … 1944 1954 SYS_open_nocancel 1945 1955 SYS_openat 1946 SYS_pathconf1947 1956 SYS_pread 1948 1957 SYS_proc_info … … 1962 1971 SYS_sigaltstack 1963 1972 SYS_sigprocmask 1973 SYS_socket 1964 1974 SYS_stat64 1965 SYS_statfs641966 SYS_socket1967 1975 SYS_sysctlbyname 1968 1976 SYS_thread_selfid … … 2030 2038 2031 2039 (when (defined? 'syscall-unix) 2032 (deny syscall-unix (with send-signal SIGKILL))2040 (deny syscall-unix (with telemetry) (with send-signal SIGKILL)) 2033 2041 (allow syscall-unix 2034 (syscall-unix-common)) 2042 (syscall-unix-in-use-after-launch) 2043 (syscall-unix-only-in-use-during-launch)) 2044 2045 #if HAVE(SANDBOX_STATE_FLAGS) 2046 (with-filter (state-flag "WebContentProcessLaunched") 2047 (deny syscall-unix 2048 (syscall-unix-only-in-use-during-launch)) 2049 (allow syscall-unix 2050 (with report) 2051 (with telemetry) 2052 (with message "Unix syscall used after launch") 2053 (syscall-unix-only-in-use-during-launch))) 2054 #endif 2035 2055 2036 2056 (if (equal? (param "CPU") "arm64")
Note: See TracChangeset
for help on using the changeset viewer.