diff --git a/snapcraft/commands/lxc b/snapcraft/commands/lxc index 4e5bf134..99a274a6 100755 --- a/snapcraft/commands/lxc +++ b/snapcraft/commands/lxc @@ -42,10 +42,7 @@ fi # Run lxc itself outside of apparmor confinement if [ -d /sys/kernel/security/apparmor ]; then - label="$(while read -r l; do echo "$l"; done < /proc/self/attr/current)" - if [ "$label" != "unconfined" ] && [ -n "${label##*(unconfined)}" ]; then - exec /usr/bin/aa-exec -p unconfined -- "${LXC}" "$@" - fi + exec /usr/bin/aa-exec -p unconfined -- "${LXC}" "$@" fi # Run lxc itself