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

Changeset 269163 in webkit


Ignore:
Timestamp:
Oct 29, 2020, 1:23:45 PM (6 years ago)
Author:
pvollan@apple.com
Message:

[macOS] Add required entitlement for message filtering
https://bugs.webkit.org/show_bug.cgi?id=218342
<rdar://problem/70810567>

Reviewed by Brent Fulgham.

The entitlement 'com.apple.private.security.message-filter' needs to be set to YES. This patch also
adds telemetry for mach-bootstrap filtering.

  • Scripts/process-entitlements.sh:
  • WebProcess/com.apple.WebProcess.sb.in:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r269162 r269163  
     12020-10-29  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [macOS] Add required entitlement for message filtering
     4        https://bugs.webkit.org/show_bug.cgi?id=218342
     5        <rdar://problem/70810567>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        The entitlement 'com.apple.private.security.message-filter' needs to be set to YES. This patch also
     10        adds telemetry for mach-bootstrap filtering.
     11
     12        * Scripts/process-entitlements.sh:
     13        * WebProcess/com.apple.WebProcess.sb.in:
     14
    1152020-10-29  Alex Christensen  <achristensen@webkit.org>
    216
  • trunk/Source/WebKit/Scripts/process-entitlements.sh

    r267996 r269163  
    2323            plistbuddy Add :com.apple.pac.shared_region_id string WebContent
    2424            plistbuddy Add :com.apple.private.pac.exception bool YES
     25            plistbuddy Add :com.apple.private.security.message-filter bool YES
    2526        fi
    2627    fi
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r269152 r269163  
    12281228#endif
    12291229
     1230(when (defined? 'mach-bootstrap)
     1231    (allow mach-bootstrap
     1232        (apply-message-filter
     1233            (allow xpc-message-send (with telemetry))
     1234            (allow xpc-message-send (with telemetry) (message-number 206))
     1235        )
     1236    )
     1237)
     1238
    12301239(when (defined? 'mach-kernel-endpoint)
    12311240    (allow mach-kernel-endpoint
Note: See TracChangeset for help on using the changeset viewer.