From 529f6e358c01398ca60e1943f7a3e4375c3ee5ba Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sun, 25 Dec 2022 19:00:48 -0500 Subject: [PATCH] app_containers: Bind the entire /dev/dri subdirectory --- app_containers/.local/bin/run_app_container | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app_containers/.local/bin/run_app_container b/app_containers/.local/bin/run_app_container index 803cdfc..3c8f5c6 100755 --- a/app_containers/.local/bin/run_app_container +++ b/app_containers/.local/bin/run_app_container @@ -47,9 +47,10 @@ SUDO_ASKPASS=$HOME/.local/bin/askpass-bemenu sudo -A systemd-nspawn -M $CONTAINE `# DNS (when containers do not have their own netns)` \ --bind-ro=/run/systemd/resolve/stub-resolv.conf:/etc/resolv.conf \ `# GPU` \ - --bind=/dev/dri/card0 \ + --bind=/dev/dri \ --bind=/dev/shm \ - --property=DeviceAllow='char-drm rw' \ + --property=DeviceAllow='/dev/dri rw' \ + --property=DeviceAllow='/dev/shm rw' \ `# Input devices` \ --bind-ro=/dev/input \ --property=DeviceAllow='char-input r' \