⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 276590 in webkit


Ignore:
Timestamp:
Apr 26, 2021, 7:28:12 AM (5 years ago)
Author:
pvollan@apple.com
Message:

[iOS] Update sandbox message filter syntax
​https://bugs.webkit.org/show_bug.cgi?id=223384

Reviewed by Brent Fulgham.

Update sandbox message filter syntax on iOS. The previous syntax should also still be supported.

  • Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r276574 r276590  
     12021-04-26  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [iOS] Update sandbox message filter syntax
     4        https://bugs.webkit.org/show_bug.cgi?id=223384
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Update sandbox message filter syntax on iOS. The previous syntax should also still be supported.
     9
     10        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
     11
    1122021-04-25  Devin Rousso  <drousso@apple.com>
    213
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb

    r276519 r276590  
    14591459)
    14601460
    1461 (when (defined? 'mach-bootstrap)
     1461(define-once (mach-bootstrap-message-numbers)
     1462    (message-number
     1463        206
     1464        207
     1465        711
     1466        712
     1467        718
     1468        800
     1469        802
     1470        803
     1471        804
     1472        805
     1473    )
     1474)
     1475
     1476(if (defined? '*sbpl-version*)
     1477    (allow mach-bootstrap
     1478        (apply-message-filter
     1479            (deny mach-message-send (with telemetry))
     1480            (allow mach-message-send
     1481                (mach-bootstrap-message-numbers)
     1482            )
     1483        )
     1484    )
     1485;; else
    14621486    (allow mach-bootstrap
    14631487        (apply-message-filter
    14641488            (deny xpc-message-send (with telemetry))
    1465             (allow xpc-message-send (message-number
    1466                 206
    1467                 207
    1468                 711
    1469                 712
    1470                 718
    1471                 800
    1472                 802
    1473                 803
    1474                 804
    1475                 805
    1476             ))
     1489            (allow xpc-message-send
     1490                (mach-bootstrap-message-numbers)
     1491            )
    14771492        )
    14781493    )
Note: See TracChangeset for help on using the changeset viewer.