Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Sandbox PKCS#11 module #294

Open
frankmorgner opened this issue May 1, 2020 · 4 comments
Open

[Feature Request] Sandbox PKCS#11 module #294

frankmorgner opened this issue May 1, 2020 · 4 comments

Comments

@frankmorgner
Copy link

PKCS#11 modules could be sandboxed (made abortable at the same time) with https://github.com/google/sandboxed-api, for example. This would prevent a bogus PKCS#11 module from corrupting the process. Also, this would allow keeping the process responsive if the module has some I/O problem, for example.

@ueno
Copy link
Member

ueno commented May 1, 2020

Part of that is already possible with the remote configuration option and bubblewrap (see #172 (comment)). I suspect that making it fully automatic might require support from the sandboxing runtime, such as flatpak.

@frankmorgner
Copy link
Author

Interesting... Maybe adding this to the documentation would be a good idea to create awareness of this feature.

Anyway, blocking I/O is still a problem with applications like Firefox, that are hanging if a module is not responding.

@ueno ueno changed the title [Feature Request] Sandobx PKCS#11 module [Feature Request] Sandbox PKCS#11 module May 5, 2020
@ueno
Copy link
Member

ueno commented Nov 13, 2021

Having said that, it would be nice if p11-kit transparently does sandboxing. The current configuration syntax is a bit too limited for that; maybe adding a new option to refer external policy settings would be nice (e.g., sandbox-profile:).

@fdelapena
Copy link

Likely unrelated, but it feels like adding the p11-kit-proxy.so symlinked as /usr/lib/firefox/libosclientcerts.so feels like it runs smoother than overriding libnssckbi.so. This feature is enabled by default but the .so is not provided by Firefox yet. Note this does not consolidate with other NSS apps, but good to know there is yet another potential way to use it with Firefox:

Captura de pantalla de 2021-11-17 17-42-42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants