blob: 341656f0bdaabe0a8694b494c743f4c3d6e2b1ba [file] [log] [blame]
; Copyright 2017 The Chromium Authors. All rights reserved.
; Use of this source code is governed by a BSD-style license that can be
; found in the LICENSE file.
; --- The contents of implicitly included here. ---
; Params specific to ppapi.
(define ppapi-plugin-0 "PPAPI_PATH_0")
(define ppapi-plugin-1 "PPAPI_PATH_1")
(define ppapi-plugin-2 "PPAPI_PATH_2")
(define ppapi-plugin-3 "PPAPI_PATH_3")
(define ppapi-plugin-4 "PPAPI_PATH_4")
; Needed for Fonts.
; Mach lookups.
(allow mach-lookup
(global-name ""))
; IOKit
(allow iokit-open
(iokit-registry-entry-class "IOSurfaceRootUserClient"))
; Reads from home dir.
(allow file-read-data
(path (user-homedir-path "/Library/Preferences/")))
; Reads from /System.
(allow file-read-data
(path "/System/Library/Colors/System.clr/System.clr")
(subpath "/System/Library/CoreServices/SystemAppearance.bundle")
(subpath "/System/Library/ColorSync/Profiles"))
; Allow the ppapi plugin binaries to be loaded.
(if (param-defined? ppapi-plugin-0)
(allow file-read-data (subpath (param ppapi-plugin-0))))
(if (param-defined? ppapi-plugin-1)
(allow file-read-data (subpath (param ppapi-plugin-1))))
(if (param-defined? ppapi-plugin-2)
(allow file-read-data (subpath (param ppapi-plugin-2))))
(if (param-defined? ppapi-plugin-3)
(allow file-read-data (subpath (param ppapi-plugin-3))))
(if (param-defined? ppapi-plugin-4)
(allow file-read-data (subpath (param ppapi-plugin-4))))