chore: Restore selinux labels recursively for waydroid folder

This commit is contained in:
Kyle Gospodnetich 2023-12-31 23:18:02 -08:00
parent 5a8b5b1d59
commit b8aff9728a

View File

@ -10,7 +10,7 @@ ExecStartPre=/usr/bin/bash -c "[ -d /usr/local/lib/.waydroid ] || /usr/bin/cp -r
# This is faster than using .mount unit. Also allows for the previous line/cleanup
ExecStartPre=/usr/bin/mount --bind /usr/local/lib/.waydroid /usr/lib/waydroid
# Fix SELinux label
ExecStart=/usr/sbin/restorecon /usr/lib/waydroid
ExecStart=/usr/sbin/restorecon -R /usr/lib/waydroid
# Clean-up after ourselves
ExecStop=/usr/bin/umount /usr/lib/waydroid
ExecStop=/usr/bin/rm -r /usr/local/lib/.waydroid