Skip to content

Commit 78249d4

Browse files
committed
[iOS] Correct process-info rules to restrict to self
https://bugs.webkit.org/show_bug.cgi?id=224383 <rdar://problem/66582454> Reviewed by Eric Carlson. The sandbox allows 'process-info' by default, so our allow rules have no real impact. We need to deny access first, as we do on macOS, so that the allow rules have meaning. I reviewed the macOS sandbox, and made sure the iOS sandbox allows the same items. * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: Canonical link: https://commits.webkit.org/236360@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 22a1e11 commit 78249d4

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Source/WebKit/ChangeLog

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
2021-04-09 Brent Fulgham <bfulgham@apple.com>
2+
3+
[iOS] Correct process-info rules to restrict to self
4+
https://bugs.webkit.org/show_bug.cgi?id=224383
5+
<rdar://problem/66582454>
6+
7+
Reviewed by Eric Carlson.
8+
9+
The sandbox allows 'process-info' by default, so our allow rules have no real impact.
10+
We need to deny access first, as we do on macOS, so that the allow rules have meaning.
11+
12+
I reviewed the macOS sandbox, and made sure the iOS sandbox allows the same items.
13+
14+
* Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
15+
116
2021-04-09 Wenson Hsieh <wenson_hsieh@apple.com>
217

318
Web process crashes if image extraction is requested for an element that is pending image extraction

Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; Copyright (C) 2010-2020 Apple Inc. All rights reserved.
1+
; Copyright (C) 2010-2021 Apple Inc. All rights reserved.
22
;
33
; Redistribution and use in source and binary forms, with or without
44
; modification, are permitted provided that the following conditions
@@ -764,6 +764,8 @@
764764

765765
(allow mach-task-name (target self))
766766

767+
;;; process-info* defaults to allow; deny it and then allow operations we actually need.
768+
(deny process-info*)
767769
(allow process-info-pidinfo (target self))
768770
(allow process-info-pidfdinfo (target self))
769771
(allow process-info-pidfileportinfo (target self))

0 commit comments

Comments
 (0)