-
Notifications
You must be signed in to change notification settings - Fork 45
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
Pseudoterminals failing in sandbox #554
Comments
Sounds reasonable. Also bubblewrap seems to mount a new instance of Would you mind creating a pull request? I'm currently preparing the 0.24 release but this can certainly ship with it... |
Indeed, a symlink sounds more reasonable here. |
Fixed by #555 |
Hi,
I have a question, potential improvement for the sandbox in bob.
Pseudoterminals require /dev/ptmx. Simply adding /dev/ptmx to the mounts of the sandbox is not enough.
For some weird reason the bind mount to /dev/ptmx is useless ("no such file or directory" error, tested with debian 11, arch linux with kernel 6.6.3). Linux suggests using mount --bind /dev/pts/ptmx /dev/ptmx, but the issue is here that most often the access rights of /dev/pts/ptmx are 000. This is a problem if you have no rights to change that.
(https://github.com/torvalds/linux/blob/master/Documentation/filesystems/devpts.rst)
A simple solution seems to be to add a separate devpts to the sandbox.
I added
to SetupDevices() of the sandbox helper. "/dev/pts" needs to be removed from the recipe mounts of course.
What are your opinions here?
The text was updated successfully, but these errors were encountered: