app_containers: Don't perform privileged operations in cleanup

This commit is contained in:
Peter Cai 2022-12-31 16:16:31 -05:00
parent bc418c3776
commit bee621e0a7
1 changed files with 0 additions and 4 deletions

View File

@ -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"