Skip to content

apparmor: do not save profile to /etc/apparmor.d#26518

Merged
justincormack merged 1 commit intomoby:masterfrom
SUSE:dont-write-aa-profile-to-etc
Sep 13, 2016
Merged

apparmor: do not save profile to /etc/apparmor.d#26518
justincormack merged 1 commit intomoby:masterfrom
SUSE:dont-write-aa-profile-to-etc

Conversation

@cyphar
Copy link
Copy Markdown
Contributor

@cyphar cyphar commented Sep 13, 2016

Writing the profile to /etc/apparmor.d, while also manually loading it
into the kernel results in quite a bit of confusion. In addition, it
means that people using apparmor but have /etc mounted read-only cannot
use apparmor at all on a Docker host.

Fix this by writing the profile to a temporary directory and deleting it
after it's been inserted.

Fixes #24786.

cute kitteh

Signed-off-by: Aleksa Sarai asarai@suse.de

Writing the profile to /etc/apparmor.d, while also manually loading it
into the kernel results in quite a bit of confusion. In addition, it
means that people using apparmor but have /etc mounted read-only cannot
use apparmor at all on a Docker host.

Fix this by writing the profile to a temporary directory and deleting it
after it's been inserted.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
@cyphar
Copy link
Copy Markdown
Contributor Author

cyphar commented Sep 13, 2016

/cc @tonistiigi

@justincormack
Copy link
Copy Markdown
Contributor

LGTM

@vdemeester
Copy link
Copy Markdown
Member

LGTM 🐸

@justincormack
Copy link
Copy Markdown
Contributor

Windows failure unrelated.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants