Dynamically pass capture sandbox extensions to GPUProcess
Created attachment 427581 [details] Patch
Created attachment 427645 [details] Patch
<rdar://76855590>
Created attachment 427647 [details] Patch
Comment on attachment 427647 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=427647&action=review > Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp:190 > + SandboxExtension::createHandleForMachLookup("com.apple.applecamerad"_s, WTF::nullopt, appleCameraServicePathSandboxExtensionHandle); > + extensions.append(WTFMove(appleCameraServicePathSandboxExtensionHandle)); > +#if HAVE(ADDITIONAL_APPLE_CAMERA_SERVICE) > + SandboxExtension::Handle additionalAppleCameraServicePathSandboxExtensionHandle; > + SandboxExtension::createHandleForMachLookup("com.apple.appleh13camerad"_s, WTF::nullopt, additionalAppleCameraServicePathSandboxExtensionHandle); It would be good to release log and not set `m_hasSentCameraSandboxExtension` if we can't create either of these like we do for "com.apple.webkit.camera".
(In reply to Eric Carlson from comment #5) > Comment on attachment 427647 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=427647&action=review > > > Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp:190 > > + SandboxExtension::createHandleForMachLookup("com.apple.applecamerad"_s, WTF::nullopt, appleCameraServicePathSandboxExtensionHandle); > > + extensions.append(WTFMove(appleCameraServicePathSandboxExtensionHandle)); > > +#if HAVE(ADDITIONAL_APPLE_CAMERA_SERVICE) > > + SandboxExtension::Handle additionalAppleCameraServicePathSandboxExtensionHandle; > > + SandboxExtension::createHandleForMachLookup("com.apple.appleh13camerad"_s, WTF::nullopt, additionalAppleCameraServicePathSandboxExtensionHandle); > > It would be good to release log and not set > `m_hasSentCameraSandboxExtension` if we can't create either of these like we > do for "com.apple.webkit.camera". OK, will do
Created attachment 427735 [details] Patch
Created attachment 427737 [details] Patch
Committed r277010 (237326@main): <https://commits.webkit.org/237326@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427737 [details].