Skip to content

Commit

Permalink
Allow syscall related to audio feature in the GPU process
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=270486
rdar://problem/124034911

Reviewed by Brent Fulgham.

Allow syscall related to audio feature in the GPU process' sandbox on macOS.

* Source/WTF/wtf/PlatformHave.h:
* Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:

Canonical link: https://commits.webkit.org/275675@main
  • Loading branch information
pvollan committed Mar 5, 2024
1 parent 6d656fe commit bc31443
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Source/WTF/wtf/PlatformHave.h
Original file line number Diff line number Diff line change
Expand Up @@ -1763,3 +1763,7 @@
(PLATFORM(IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 170400)
#define HAVE_ESIM_AUTOFILL_SYSTEM_SUPPORT 1
#endif

#if !defined(HAVE_AUDIO_CONVERTER_SERVICE) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED > 140400
#define HAVE_AUDIO_CONVERTER_SERVICE 1
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,10 @@
(allow mach-lookup
(global-name "com.apple.audio.AudioSession"))

#if HAVE(AUDIO_CONVERTER_SERVICE)
;; See <rdar://118049196>
(allow mach-lookup
(xpc-service-name "com.apple.audio.AudioConverterService"))
(allow mach-lookup (xpc-service-name "com.apple.audio.AudioConverterService"))
#endif

#if !ENABLE(CFPREFS_DIRECT_MODE)
(allow mach-lookup
Expand Down Expand Up @@ -1097,6 +1098,9 @@
mach_vm_remap_external
semaphore_create
semaphore_destroy
#if HAVE(AUDIO_CONVERTER_SERVICE)
task_create_identity_token
#endif
task_get_special_port_from_user
task_info_from_user
task_policy_set
Expand Down

0 comments on commit bc31443

Please sign in to comment.