sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.98k stars 1.56k forks source link

Allow access to camera and microphone on WINDOWS 11 #1669

Open MaldroidDev opened 2 years ago

MaldroidDev commented 2 years ago

Is your feature request related to a problem or use case?

I want to be able to use camera and microphone in the sandbox sometimes.

Describe the solution you'd like

Maybe add two check boxes that allow camera or microphone access.

Describe alternatives you've considered

No response

bjm234 commented 1 year ago

Curious, still on ToDo list? My Edge sbox does not allow camera/mic access.
DefaultBox allows camera/mic access.

DavidXanatos commented 1 year ago

duplicates: https://github.com/sandboxie-plus/Sandboxie/issues/2197 https://github.com/sandboxie-plus/Sandboxie/issues/2508 https://github.com/sandboxie-plus/Sandboxie/issues/2925

DavidXanatos commented 1 year ago

Windows 11 has changed how the frame server for webcams is to be accessed, to get this working a larger re work of Sandboxies inner mechanics around COM/RPC Virtualization is required.

As a preliminary workaround a Compartment Type Box can be used with opened COM access can be used

NoSecurityIsolation=y
Template=OpenCOM

to mitigate for the reduced isolation it is recommended to prevent process elevation

DropAdminRights=y
chadify commented 1 year ago

Allow access to location/spoof location as well.

e-t-l commented 1 year ago

Windows 11 has changed how the frame server for webcams is to be accessed, to get this working a larger re work of Sandboxies inner mechanics around COM/RPC Virtualization is required.

As a preliminary workaround a Compartment Type Box can be used with opened COM access can be used

NoSecurityIsolation=y
Template=OpenCOM

It looks like both these settings are necessary for Zoom to detect a camera, and NoSecurityIsolation needs a license in order to work (for longer than 5 min at a time), unfortunately.

NoSecurityIsolation, as I understand, encompasses a variety of sandbox changes. Do we know which one(s) specifically are relevant to camera access, and would it be possible to add just that particular permission as its own separate ini flag?

ccchan234 commented 4 months ago

ps: 1 yr left before microsoft force all of us to stop using win10. unless we paid for windows 365 which is a VM service. thanks

akurpukov commented 3 months ago

ps: 1 yr left before microsoft force all of us to stop using win10. unless we paid for windows 365 which is a VM service. thanks

How MS force you stop using Win10? I'm still use Windows 7 and 8.1 for business tasks.

ccchan234 commented 3 months ago

ps: 1 yr left before microsoft force all of us to stop using win10. unless we paid for windows 365 which is a VM service. thanks

How MS force you stop using Win10? I'm still use Windows 7 and 8.1 for business tasks.

it's ok to use offline, but if you connect to internet and have no update (win10 ordinary user update ends in 2025), no good

t-anh commented 1 month ago

On my Windows11 PC, Zoom cannot use the camera when using Sandboxie Classic v5.66.2. I was able to use it when I added the following settings to the Sandboxie.ini file.

NoSecurityIsolation=y Template=OpenCOM

However, There are two problems:

  1. When start Zoom, the following dialog box appears. Once you cancel that dialogue, you can use Zoom.

    Unable to open configuration file. Please restart Zoom and try again. (Translated from japanese)

  2. When end a Zoom meeting, the following dialog box appears.

    Zoom quits unexpectedly.

The above two problems do not occur in Sandboxie-Plus. Is there a way to solve these two problems in classic? I attached my default Sandboxie.ini.

Sandboxie.ini

t-anh commented 1 month ago

When I applied the following settings, the dialog box disappeared.

DisableObjectFilter=y

However, when I applied the following settings, I had to sign in every time I started Zoom. This issue also occurs in classic v5.69.9.

NoSecurityIsolation=y Template=OpenCOM

Is there a way to keep the sign-in information?

Shr201 commented 1 month ago

your sandbox options General Options -- Restrictions -- Open System Protected Storage then you can keep the sign-in information

t-anh commented 1 month ago

@Shr201 It Worked for me. Thank you for your support.

RengRan1999Zz commented 1 month ago

Windows 11 改变了访问网络摄像头框架服务器的方式,为了使其正常工作,需要对围绕 COM/RPC 虚拟化的 Sandboxies 内部机制进行更大规模的重新设计。

作为初步的解决方法,可以使用隔间类型盒并打开 COM 访问

NoSecurityIsolation=y
Template=OpenCOM

为了减轻隔离度的降低,建议防止进程提升

DropAdminRights=y

I tried this method, but the microphone and speaker are still ineffective and the camera is working properly

t-anh commented 1 week ago

I'm using v1.14.10 / 5.69.10 version. When I applied the following settings, Zoom can use the camera on Windows 11 pro 23H2. However, Zoom cannot use the camera on Windows 11 pro 24H2.

NoSecurityIsolation=y Template=OpenCOM

Is there a way to fix this by changing the settings?