diff --git a/snapcraft/wrappers/editor b/snapcraft/wrappers/editor index 5922380bf..3ffe37d72 100755 --- a/snapcraft/wrappers/editor +++ b/snapcraft/wrappers/editor @@ -17,8 +17,6 @@ run_cmd() { USERNS=1 [ -e /proc/sys/kernel/unprivileged_userns_clone ] && grep -qxF 0 /proc/sys/kernel/unprivileged_userns_clone && USERNS=0 -[ -e /proc/sys/kernel/apparmor_restrict_unprivileged_userns ] && grep -qxF 1 /proc/sys/kernel/apparmor_restrict_unprivileged_userns && USERNS=0 -[ -e /proc/sys/kernel/apparmor_restrict_unprivileged_unconfined ] && grep -qxF 1 /proc/sys/kernel/apparmor_restrict_unprivileged_unconfined && USERNS=0 find_and_spawn() { for path in / /usr/ /usr/local/; do