blob: c7a6d57df1ebecfe96883061fc98fd6b28e8cd07 [file] [log] [blame]
; Copyright 2018 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. ---
; File access.
(allow file-read*
(path (user-homedir-path "/Library/Caches/"))
(regex (user-homedir-path #"/Library/Preferences/*"))
(subpath "/Library/Audio/Plug-Ins")
(subpath "/Library/QuickTime")
(subpath "/System/Library/Components")
(subpath "/System/Library/Extensions")
(subpath (user-homedir-path "/Library/Audio/Plug-Ins"))
(allow device-microphone)
(allow iokit-open
(iokit-user-client-class "IOAudioControlUserClient")
(iokit-user-client-class "IOAudioEngineUserClient")
(allow ipc-posix-shm-read* ipc-posix-shm-write-data
(ipc-posix-name-regex #"^AudioIO"))
; Mach IPC.
(allow mach-lookup
(global-name "")
(global-name "")
(global-name "")
(global-name "")
(if (>= os-version 1013)
(allow mach-lookup
(global-name "")
(xpc-service-name "")
; sysctls.
(allow sysctl-read
(sysctl-name "hw.optional.avx1_0")
(sysctl-name "hw.optional.avx2_0")
(sysctl-name "hw.optional.sse2")
(sysctl-name "hw.optional.sse3")
(sysctl-name "hw.optional.sse4_1")
(sysctl-name "hw.optional.sse4_2")