From bee621e0a7baf689b623a2335fa314df77981b30 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sat, 31 Dec 2022 16:16:31 -0500 Subject: [PATCH] app_containers: Don't perform privileged operations in cleanup --- app_containers/.local/bin/run_app_container | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app_containers/.local/bin/run_app_container b/app_containers/.local/bin/run_app_container index aeceaec..b4a9ff9 100755 --- a/app_containers/.local/bin/run_app_container +++ b/app_containers/.local/bin/run_app_container @@ -10,10 +10,6 @@ cleanup() { # Remove the temporary facl-based permissions setfacl -x u:$((user_on_host)) $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY xhost -si:localuser:\#$((user_on_host)) - - for input in $(find /dev/input -type c); do - sudo setfacl -x u:$user_on_host $input - done } [ -z "$CONTAINER_NAME" ] && die "\$CONTAINER_NAME not set"