programs: sandbox: use --dev-bind-try for root paths; fixes mpv on moby
This commit is contained in:
parent
38fd171713
commit
cce03a5dc8
|
@ -144,7 +144,9 @@ firejailExec() {
|
|||
## BUBBLEWRAP BACKEND
|
||||
|
||||
bwrapIngestRootPath() {
|
||||
bwrapFlags+=("--dev-bind" "$1" "$1")
|
||||
# N.B.: use --dev-bind-try instead of --dev-bind for platform-specific paths like /run/opengl-driver-32
|
||||
# which don't exist on aarch64, as the -try variant will gracefully fail (i.e. not bind it).
|
||||
bwrapFlags+=("--dev-bind-try" "$1" "$1")
|
||||
}
|
||||
bwrapIngestHomePath() {
|
||||
bwrapFlags+=("--dev-bind" "$HOME/$1" "$HOME/$1")
|
||||
|
|
Loading…
Reference in New Issue
Block a user