Allow snap-confine to be confined even with --disable-apparmor #3760

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

mwhudson commented Aug 17, 2017

--disable-apparmor is used on Debian because Debian's kernel does not (yet)
support all the apparmor features required to run snaps confined, so all snaps
run in devmode. That does not mean it is not possible or useful to use apparmor
to confine snap-confine itself, though, so change the Makefile.am to still
create a profile for snap-confine even when --disable-apparmor is passed. The
profile has to be a bit more permissive to make this work, so convert
snap-confine.apparmor.in to m4 to conditionally add the extra rules.

Allow snap-confine to be confined even with --disable-apparmor
--disable-apparmor is used on Debian because Debian's kernel does not (yet)
support all the apparmor features required to run snaps confined, so all snaps
run in devmode. That does not mean it is not possible or useful to use apparmor
to confine snap-confine itself, though, so change the Makefile.am to still
create a profile for snap-confine even when --disable-apparmor is passed. The
profile has to be a bit more permissive to make this work, so convert
snap-confine.apparmor.in to m4 to conditionally add the extra rules.
Contributor

zyga commented Aug 28, 2017

I believe #3814 is a superset of the idea.

Contributor

mwhudson commented Aug 28, 2017

Yep, agreed, looking forward to being able to delete this bit of delta :)

@mwhudson mwhudson closed this Aug 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment