ppapi.sb 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ; Copyright 2017 The Chromium Authors. All rights reserved.
  2. ; Use of this source code is governed by a BSD-style license that can be
  3. ; found in the LICENSE file.
  4. ; --- The contents of common.sb implicitly included here. ---
  5. ; Params specific to ppapi.
  6. (define ppapi-plugin-0 "PPAPI_PATH_0")
  7. (define ppapi-plugin-1 "PPAPI_PATH_1")
  8. (define ppapi-plugin-2 "PPAPI_PATH_2")
  9. (define ppapi-plugin-3 "PPAPI_PATH_3")
  10. (define ppapi-plugin-4 "PPAPI_PATH_4")
  11. ; Needed for Fonts.
  12. (allow-font-access)
  13. ; Mach lookups.
  14. (allow mach-lookup
  15. (global-name "com.apple.windowserver.active")
  16. )
  17. ; IOKit
  18. (allow iokit-open
  19. (iokit-registry-entry-class "IOSurfaceRootUserClient")
  20. )
  21. ; Reads from home dir.
  22. (allow file-read-data
  23. (path (user-homedir-path "/Library/Preferences/com.apple.universalaccess.plist"))
  24. )
  25. ; Reads from /System.
  26. (allow file-read-data
  27. (path "/System/Library/Colors/System.clr/System.clr")
  28. (subpath "/System/Library/ColorSync/Profiles") ; https://crbug.com/822218
  29. (subpath "/System/Library/CoreServices/SystemAppearance.bundle")
  30. )
  31. ; Allow the ppapi plugin binaries to be loaded.
  32. (if (param-defined? ppapi-plugin-0)
  33. (allow file-read-data (subpath (param ppapi-plugin-0))))
  34. (if (param-defined? ppapi-plugin-1)
  35. (allow file-read-data (subpath (param ppapi-plugin-1))))
  36. (if (param-defined? ppapi-plugin-2)
  37. (allow file-read-data (subpath (param ppapi-plugin-2))))
  38. (if (param-defined? ppapi-plugin-3)
  39. (allow file-read-data (subpath (param ppapi-plugin-3))))
  40. (if (param-defined? ppapi-plugin-4)
  41. (allow file-read-data (subpath (param ppapi-plugin-4))))