Title: [289138] trunk/Source/WebKit
Revision
289138
Author
[email protected]
Date
2022-02-04 14:49:24 -0800 (Fri, 04 Feb 2022)

Log Message

Unreviewed, reverting r289124.
https://bugs.webkit.org/show_bug.cgi?id=236160

Introduced crash

Reverted changeset:

"[macOS][WP] Add telemetry for syscalls used during launch"
https://bugs.webkit.org/show_bug.cgi?id=235865
https://commits.webkit.org/r289124

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (289137 => 289138)


--- trunk/Source/WebKit/ChangeLog	2022-02-04 22:17:55 UTC (rev 289137)
+++ trunk/Source/WebKit/ChangeLog	2022-02-04 22:49:24 UTC (rev 289138)
@@ -1,3 +1,16 @@
+2022-02-04  Commit Queue  <[email protected]>
+
+        Unreviewed, reverting r289124.
+        https://bugs.webkit.org/show_bug.cgi?id=236160
+
+        Introduced crash
+
+        Reverted changeset:
+
+        "[macOS][WP] Add telemetry for syscalls used during launch"
+        https://bugs.webkit.org/show_bug.cgi?id=235865
+        https://commits.webkit.org/r289124
+
 2022-02-04  Per Arne Vollan  <[email protected]>
 
         [iOS][WP] Block access to syscalls that are only used during launch

Modified: trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in (289137 => 289138)


--- trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2022-02-04 22:17:55 UTC (rev 289137)
+++ trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2022-02-04 22:49:24 UTC (rev 289138)
@@ -1894,25 +1894,8 @@
 (disable-syscall-inference)
 #endif
 
-#if HAVE(SANDBOX_STATE_FLAGS)
-(deny user-preference-read (with enable-state-flag "WebContentProcessLaunched")
-    (preference-domain "com.apple.WebKit.WebContent.Launch"))
-#endif
-
-(define (syscall-unix-only-in-use-during-launch)
+(define (syscall-unix-common)
     (syscall-number
-        SYS_csops
-        SYS_csrctl
-        SYS_fsgetpath
-        SYS_getaudit_addr
-        SYS_getfsstat64
-        SYS_getrlimit
-        SYS_kdebug_trace
-        SYS_pathconf
-        SYS_statfs64))
-
-(define (syscall-unix-in-use-after-launch)
-    (syscall-number
         SYS___disable_threadsignal
         SYS___mac_syscall
         SYS___pthread_sigmask
@@ -1923,7 +1906,9 @@
         SYS_bsdthread_terminate
         SYS_close
         SYS_close_nocancel
+        SYS_csops
         SYS_csops_audittoken
+        SYS_csrctl
         SYS_exit
         SYS_faccessat ;; <rdar://problem/56690456>
         SYS_fcntl
@@ -1932,6 +1917,7 @@
         SYS_fileport_makefd
         SYS_flock
         SYS_fsetxattr ;; <rdar://problem/56332491>
+        SYS_fsgetpath
         SYS_fstat64
         SYS_fstatat64
         SYS_fstatfs64
@@ -1938,11 +1924,14 @@
         SYS_ftruncate
         SYS_getattrlist
         SYS_getattrlistbulk
+        SYS_getaudit_addr
         SYS_getdirentries64
         SYS_getentropy
         SYS_geteuid
+        SYS_getfsstat64
         SYS_getgid
         SYS_gethostuuid
+        SYS_getrlimit
         SYS_getrusage
         SYS_gettimeofday
         SYS_getuid
@@ -1949,6 +1938,7 @@
         SYS_getxattr
         SYS_ioctl
         SYS_issetugid
+        SYS_kdebug_trace
         SYS_kdebug_trace64
         SYS_kdebug_trace_string ;; Needed for performance sampling, see <rdar://problem/48829655>.
         SYS_kevent_id
@@ -1971,6 +1961,7 @@
         SYS_open
         SYS_open_nocancel
         SYS_openat
+        SYS_pathconf
         SYS_pread
         SYS_proc_info
         SYS_psynch_cvbroad
@@ -1988,8 +1979,9 @@
         SYS_sendto
         SYS_sigaltstack
         SYS_sigprocmask
+        SYS_stat64
+        SYS_statfs64
         SYS_socket
-        SYS_stat64
         SYS_sysctlbyname
         SYS_thread_selfid
 #if !PLATFORM(MAC)
@@ -2052,31 +2044,14 @@
 ))
 
 (when (defined? 'syscall-unix)
-    (deny syscall-unix (with telemetry)(with send-signal SIGKILL))
-
-#if HAVE(SANDBOX_STATE_FLAGS)
-    (with-filter (require-not (state-flag "WebContentProcessLaunched"))
-        (allow syscall-unix
-            (syscall-unix-in-use-after-launch))
-        (allow syscall-unix
-            (syscall-unix-only-in-use-during-launch)))
-    (with-filter (state-flag "WebContentProcessLaunched")
-        (allow syscall-unix
-            (syscall-unix-in-use-after-launch))
-        (allow syscall-unix
-            (with report)
-            (with telemetry)
-            (with message "Unix syscall used after launch")
-            (syscall-unix-only-in-use-during-launch)))
-#else
+    (deny syscall-unix (with send-signal SIGKILL))
     (allow syscall-unix
-        (syscall-unix-only-in-use-during-launch)
-        (syscall-unix-in-use-after-launch))
-#endif
+        (syscall-unix-common))
 
-    (when (equal? (param "CPU") "arm64")
+    (if (equal? (param "CPU") "arm64")
+        (begin
             (allow syscall-unix
-                (syscall-unix-apple-silicon)))
+                (syscall-unix-apple-silicon))))
 
     (allow syscall-unix
 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to