Changeset 228341 in webkit


Ignore:
Timestamp:
Feb 9, 2018 3:56:41 PM (6 years ago)
Author:
Brent Fulgham
Message:

Sandbox violating attempting to read log formatting preference file
https://bugs.webkit.org/show_bug.cgi?id=182648
<rdar://problem/36629495>

Reviewed by Eric Carlson.

Various frameworks attempt to read logging format information from /usr/local/lib/log. The sandbox is blocking
this, generating log spam and preventing some logging features from working properly. We should allow read
access to this path.

  • NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
  • Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb:
  • Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
  • WebProcess/com.apple.WebProcess.sb.in:
Location:
trunk/Source/WebKit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r228309 r228341  
     12018-02-09  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Sandbox violating attempting to read log formatting preference file
     4        https://bugs.webkit.org/show_bug.cgi?id=182648
     5        <rdar://problem/36629495>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Various frameworks attempt to read logging format information from /usr/local/lib/log. The sandbox is blocking
     10        this, generating log spam and preventing some logging features from working properly. We should allow read
     11        access to this path.
     12
     13        * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
     14        * Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb:
     15        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
     16        * WebProcess/com.apple.WebProcess.sb.in:
     17
    1182018-02-08  Chris Dumez  <cdumez@apple.com>
    219
  • trunk/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in

    r221647 r228341  
    110110    (subpath (param "WEBKIT2_FRAMEWORK_DIR")))
    111111(allow system-fsctl (fsctl-command (_IO "h" 47)))
     112
     113(allow file-read-data
     114    (literal "/usr/local/lib/log") ; <rdar://problem/36629495>
     115)
    112116
    113117;; Sandbox extensions
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb

    r218292 r228341  
    6767    "/systemgroup.com.apple.nsurlstoragedresources/Library/dafsaData.bin")
    6868
     69(allow file-read-data
     70    (literal "/usr/local/lib/log") ; <rdar://problem/36629495>
     71)
     72
    6973;; Security framework
    7074(allow mach-lookup
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb

    r227349 r228341  
    371371(allow file-read* (literal "/private/var/Managed Preferences/mobile/com.apple.webcontentfilter.plist"))
    372372
     373(allow file-read-data
     374    (literal "/usr/local/lib/log") ; <rdar://problem/36629495>
     375)
     376
    373377;; Allow mediaserverd to issue file extensions for the purposes of reading media
    374378(allow file-issue-extension (require-all
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r228197 r228341  
    440440
    441441(allow file-read-data
     442    (literal "/usr/local/lib/log") ; <rdar://problem/36629495>
    442443    ;; Needed for AES3 support
    443444    (subpath "/Library/Audio/Plug-Ins/Components"))
Note: See TracChangeset for help on using the changeset viewer.