Title: [292928] trunk/Source/WebKit
Revision
292928
Author
[email protected]
Date
2022-04-15 16:26:44 -0700 (Fri, 15 Apr 2022)

Log Message

Add new dyld support sandbox rules
https://bugs.webkit.org/show_bug.cgi?id=238389
<rdar://90593887>

Reviewed by Eric Carlson.

Update sandbox profiles to adopt a new dyld-related utility file
on platforms where it exists.

* GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:
* NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
* Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in:
* Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in:
* Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
* Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in:
* WebProcess/com.apple.WebProcess.sb.in:
* webpushd/mac/com.apple.WebKit.webpushd.sb.in:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (292927 => 292928)


--- trunk/Source/WebKit/ChangeLog	2022-04-15 23:25:17 UTC (rev 292927)
+++ trunk/Source/WebKit/ChangeLog	2022-04-15 23:26:44 UTC (rev 292928)
@@ -1,5 +1,25 @@
 2022-04-15  Brent Fulgham  <[email protected]>
 
+        Add new dyld support sandbox rules 
+        https://bugs.webkit.org/show_bug.cgi?id=238389
+        <rdar://90593887>
+
+        Reviewed by Eric Carlson.
+
+        Update sandbox profiles to adopt a new dyld-related utility file
+        on platforms where it exists.
+
+        * GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:
+        * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in:
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in:
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in:
+        * WebProcess/com.apple.WebProcess.sb.in:
+        * webpushd/mac/com.apple.WebKit.webpushd.sb.in:
+
+2022-04-15  Brent Fulgham  <[email protected]>
+
         REGRESSION (r291843): Broken Netflix and Amazon video playback
         https://bugs.webkit.org/show_bug.cgi?id=239397
         <rdar://91313460>

Modified: trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in (292927 => 292928)


--- trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in	2022-04-15 23:25:17 UTC (rev 292927)
+++ trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in	2022-04-15 23:26:44 UTC (rev 292928)
@@ -1,4 +1,4 @@
-; Copyright (C) 2010-2021 Apple Inc. All rights reserved.
+; Copyright (C) 2010-2022 Apple Inc. All rights reserved.
 ;
 ; Redistribution and use in source and binary forms, with or without
 ; modification, are permitted provided that the following conditions
@@ -27,6 +27,10 @@
 (deny system-privilege)
 (allow system-audit file-read-metadata)
 
+;; We can remove the catch once we no longer need to support older macOS
+(catch (lambda)
+    (import "dyld-support.sb"))
+
 ;; Silence spurious logging due to rdar://20117923 and rdar://72366475
 (deny system-privilege (privilege-id PRIV_GLOBAL_PROC_INFO) (with no-report))
 

Modified: trunk/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in (292927 => 292928)


--- trunk/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in	2022-04-15 23:25:17 UTC (rev 292927)
+++ trunk/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in	2022-04-15 23:26:44 UTC (rev 292928)
@@ -1,4 +1,4 @@
-; Copyright (C) 2013-2021 Apple Inc. All rights reserved.
+; Copyright (C) 2013-2022 Apple Inc. All rights reserved.
 ;
 ; Redistribution and use in source and binary forms, with or without
 ; modification, are permitted provided that the following conditions
@@ -32,7 +32,11 @@
     (require-all
         (privilege-id PRIV_NET_PRIVILEGED_SOCKET_DELEGATE)
         (require-entitlement "com.apple.private.network.socket-delegate")))
- 
+
+;; We can remove the catch once we no longer need to support older macOS
+(catch (lambda)
+    (import "dyld-support.sb"))
+
 ;; Silence spurious logging due to rdar://20117923 and rdar://72366475
 (deny system-privilege (privilege-id PRIV_GLOBAL_PROC_INFO) (with no-report))
 

Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in (292927 => 292928)


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in	2022-04-15 23:25:17 UTC (rev 292927)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in	2022-04-15 23:26:44 UTC (rev 292928)
@@ -1,4 +1,4 @@
-; Copyright (C) 2010-2021 Apple Inc. All rights reserved.
+; Copyright (C) 2010-2022 Apple Inc. All rights reserved.
 ;
 ; Redistribution and use in source and binary forms, with or without
 ; modification, are permitted provided that the following conditions
@@ -27,6 +27,10 @@
 (deny system-privilege)
 (allow system-audit file-read-metadata)
 
+;; We can remove the catch once we no longer need to support iOS 15 (or earlier))
+(catch (lambda)
+    (import "dyld-support.sb"))
+
 ;; Silence spurious logging due to rdar://20117923 and rdar://72366475
 (deny system-privilege (privilege-id PRIV_GLOBAL_PROC_INFO) (with no-report))
 

Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in (292927 => 292928)


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in	2022-04-15 23:25:17 UTC (rev 292927)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in	2022-04-15 23:26:44 UTC (rev 292928)
@@ -1,4 +1,4 @@
-; Copyright (C) 2014-2021 Apple Inc. All rights reserved.
+; Copyright (C) 2014-2022 Apple Inc. All rights reserved.
 ;
 ; Redistribution and use in source and binary forms, with or without
 ; modification, are permitted provided that the following conditions
@@ -27,6 +27,10 @@
 (deny system-privilege)
 (allow system-audit file-read-metadata)
 
+;; We can remove the catch once we no longer need to support iOS 15 (or earlier))
+(catch (lambda)
+    (import "dyld-support.sb"))
+
 (allow system-privilege (with grant)
     (require-all
         (privilege-id PRIV_NET_PRIVILEGED_SOCKET_DELEGATE)

Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in (292927 => 292928)


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2022-04-15 23:25:17 UTC (rev 292927)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2022-04-15 23:26:44 UTC (rev 292928)
@@ -27,6 +27,10 @@
 (deny system-privilege)
 (allow system-audit file-read-metadata)
 
+;; We can remove the catch once we no longer need to support iOS 15 (or earlier))
+(catch (lambda)
+    (import "dyld-support.sb"))
+
 ;; Silence spurious logging due to rdar://20117923 and rdar://72366475
 (deny system-privilege (privilege-id PRIV_GLOBAL_PROC_INFO) (with no-report))
 

Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in (292927 => 292928)


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in	2022-04-15 23:25:17 UTC (rev 292927)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in	2022-04-15 23:26:44 UTC (rev 292928)
@@ -1,4 +1,4 @@
-; Copyright (C) 2021 Apple Inc. All rights reserved.
+; Copyright (C) 2021-2022 Apple Inc. All rights reserved.
 ;
 ; Redistribution and use in source and binary forms, with or without
 ; modification, are permitted provided that the following conditions
@@ -25,6 +25,10 @@
 (deny default (with partial-symbolication))
 (allow system-audit file-read-metadata)
 
+;; We can remove the catch once we no longer need to support iOS 15 (or earlier))
+(catch (lambda)
+    (import "dyld-support.sb"))
+
 (import "util.sb")
 
 (define (allow-read-write-directory-contents path)

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


--- trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2022-04-15 23:25:17 UTC (rev 292927)
+++ trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2022-04-15 23:26:44 UTC (rev 292928)
@@ -1,4 +1,4 @@
-; Copyright (C) 2010-2021 Apple Inc. All rights reserved.
+; Copyright (C) 2010-2022 Apple Inc. All rights reserved.
 ;
 ; Redistribution and use in source and binary forms, with or without
 ; modification, are permitted provided that the following conditions
@@ -27,6 +27,10 @@
 (deny system-privilege)
 (allow system-audit file-read-metadata)
 
+;; We can remove the catch once we no longer need to support older macOS
+(catch (lambda)
+    (import "dyld-support.sb"))
+
 ;; Silence spurious logging due to rdar://20117923 and rdar://72366475
 (deny system-privilege (privilege-id PRIV_GLOBAL_PROC_INFO) (with no-report))
  

Modified: trunk/Source/WebKit/webpushd/mac/com.apple.WebKit.webpushd.sb.in (292927 => 292928)


--- trunk/Source/WebKit/webpushd/mac/com.apple.WebKit.webpushd.sb.in	2022-04-15 23:25:17 UTC (rev 292927)
+++ trunk/Source/WebKit/webpushd/mac/com.apple.WebKit.webpushd.sb.in	2022-04-15 23:26:44 UTC (rev 292928)
@@ -23,3 +23,7 @@
 
 (version 1)
 (allow (with report) default)
+
+;; We can remove the catch once we no longer need to support older macOS
+(catch (lambda)
+    (import "dyld-support.sb"))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to