Skip to content

Commit

Permalink
snapcraft/commands/lxc: microoptimise call to aa-exec by full path
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Murray <[email protected]>
  • Loading branch information
alexmurray committed Nov 7, 2023
1 parent 1465c1d commit 923956e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapcraft/commands/lxc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eu
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 aa-exec -p unconfined -- "$0" "$@"
exec /usr/bin/aa-exec -p unconfined -- "$0" "$@"
fi
fi

Expand Down

0 comments on commit 923956e

Please sign in to comment.