RESOLVED FIXED Bug 225319
Dynamically pass capture sandbox extensions to GPUProcess
https://bugs.webkit.org/show_bug.cgi?id=225319
Summary Dynamically pass capture sandbox extensions to GPUProcess
youenn fablet
Reported 2021-05-03 11:37:07 PDT
Dynamically pass capture sandbox extensions to GPUProcess
Attachments
Patch (15.38 KB, patch)
2021-05-03 11:40 PDT, youenn fablet
no flags
Patch (15.46 KB, patch)
2021-05-04 01:45 PDT, youenn fablet
no flags
Patch (15.43 KB, patch)
2021-05-04 03:09 PDT, youenn fablet
no flags
Patch (15.96 KB, patch)
2021-05-05 00:30 PDT, youenn fablet
no flags
Patch (15.96 KB, patch)
2021-05-05 01:00 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2021-05-03 11:40:27 PDT
youenn fablet
Comment 2 2021-05-04 01:45:11 PDT
youenn fablet
Comment 3 2021-05-04 03:06:32 PDT
youenn fablet
Comment 4 2021-05-04 03:09:52 PDT
Eric Carlson
Comment 5 2021-05-04 08:35:29 PDT
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".
youenn fablet
Comment 6 2021-05-05 00:28:05 PDT
(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
youenn fablet
Comment 7 2021-05-05 00:30:15 PDT
youenn fablet
Comment 8 2021-05-05 01:00:04 PDT
EWS
Comment 9 2021-05-05 01:53:39 PDT
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].
Note You need to log in before you can comment on or make changes to this bug.