Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

check "/sbin/apparmor_parser" in apparmor.IsEnabled()#532

Merged
mrunalp merged 1 commit intodocker-archive:masterfrom
tifayuki:master
Apr 14, 2015
Merged

check "/sbin/apparmor_parser" in apparmor.IsEnabled()#532
mrunalp merged 1 commit intodocker-archive:masterfrom
tifayuki:master

Conversation

@tifayuki
Copy link
Copy Markdown
Contributor

In ubuntu 14.04, Apparmor is installed by default. When uninstalling apparmor with apt-get purge apparmor, /sbin/apparmor_parser will be delete. However, /sys/kernel/security/apparmor and /sys/module/apparmor/parameters/enabled remains on the host, resulting in the following error

FATA[0000] Error loading docker apparmor profile: fork/exec /sbin/apparmor_parser: no such file or directory () 

…r is enabled

Signed-off-by: Feng, Honglin <fenghonglin@gmail.com>
@crosbymichael
Copy link
Copy Markdown
Contributor

Just for my own personal info, why do you have apparmor enabled but uninstalled the tools so that profiles cannot be loaded?

@tifayuki
Copy link
Copy Markdown
Contributor Author

It is one of our user's nodes. No idea why he uninstalled apparmor tools :-/

@crosbymichael
Copy link
Copy Markdown
Contributor

@tifayuki ok, thanks.

LGTM

@mrunalp
Copy link
Copy Markdown
Contributor

mrunalp commented Apr 14, 2015

LGTM

mrunalp pushed a commit that referenced this pull request Apr 14, 2015
check "/sbin/apparmor_parser" in apparmor.IsEnabled()
@mrunalp mrunalp merged commit ed5803e into docker-archive:master Apr 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants