Skip to content

Commit

Permalink
wrappers/remote-viewer: workaround Apparmor unpriv unconfined mediation
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel authored and tomponline committed Oct 9, 2023
1 parent 338b537 commit 90a82a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snapcraft/wrappers/remote-viewer
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ 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
Expand Down

0 comments on commit 90a82a8

Please sign in to comment.