You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow access of /dev/urandom from bubblewrap sandbox #12056
What terminal emulator and version are you using (if applicable)?
No response
What issue are you seeing?
I'm trying the experimental feature bubblewrap as the sandbox option. This is because landlock is not available on my kernel. So far this feature looks good to me with some slight issues.
When a sandbox command needs to read from /dev/urandom, it fails.
Some commands (like git) requires secure random number from that device.
head: cannot open '/dev/urandom' for reading: Permission denied
What is the expected behavior?
Agent successfully reads from secure random.
Additional information
The error is weird because root is bind read-only while it looks like reading /dev/urandom requires full permission.
I read through the current sandbox code (linux-sandbox/src/bwrap.rs). Currently it only adds --dev-bind /dev/null /dev/null. Consider to add other bindings (/dev/urandom, /dev/zero, etc.) or maybe use bubblewrap's --dev /dev option (not sure if it works with read-only root binding though).
changed the title [-][Linux Sandbox][Bubblewrap] `/dev/urandom` is not accessible from sanbox[/-][+][Linux Sandbox][Bubblewrap] `/dev/urandom` is not accessible from sandbox[/+]on Feb 18, 2026
changed the title [-][Linux Sandbox][Bubblewrap] `/dev/urandom` is not accessible from sandbox[/-][+]Allow access of `/dev/urandom` from bubblewrap sandbox[/+]on Feb 18, 2026
Activity
[-][Linux Sandbox][Bubblewrap] `/dev/urandom` is not accessible from sanbox[/-][+][Linux Sandbox][Bubblewrap] `/dev/urandom` is not accessible from sandbox[/+][-][Linux Sandbox][Bubblewrap] `/dev/urandom` is not accessible from sandbox[/-][+]Allow access of `/dev/urandom` from bubblewrap sandbox[/+]fix(linux-sandbox): mount /dev in bwrap sandbox (#12081)
fix(linux-sandbox): mount /dev in bwrap sandbox (openai#12081)
fix(linux-sandbox): mount /dev in bwrap sandbox (#12081)
fix(linux-sandbox): mount /dev in bwrap sandbox (openai#12081)
fix(linux-sandbox): mount /dev in bwrap sandbox (#12081)