Skip to content
Snippets Groups Projects
Commit b6c4cfb4 authored by Simon McVittie's avatar Simon McVittie
Browse files

wrap: Bind /dev/pts, /dev/shm in a way that supports device nodes

parent aa2e4df5
No related branches found
No related tags found
No related merge requests found
......@@ -613,10 +613,10 @@ fi
# Make /dev available
bwrap_options+=(--dev-bind /dev /dev)
if [ -d /dev/pts ]; then
bwrap_options+=(--bind /dev/pts /dev/pts)
bwrap_options+=(--dev-bind /dev/pts /dev/pts)
fi
if [ -d /dev/shm ]; then
bwrap_options+=(--bind /dev/shm /dev/shm)
bwrap_options+=(--dev-bind /dev/shm /dev/shm)
fi
# Protect other users' homes (but guard against the unlikely situation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment