mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
dd340c52cb
This is necessary because normally `apparmor_parser -r` will try to
create a temporary directory on the host (which is not allowed if the
host has a rootfs). However, the -K option bypasses saving things to the
cache (which avoids this issue).
% apparmor_parser -r /tmp/docker-profile
mkstemp: Read-only file system
% apparmor_parser -Kr /tmp/docker-profile
%
In addition, add extra information to the ensureDefaultAppArmorProfile
errors so that problems like this are easier to debug.
Fixes:
|
||
---|---|---|
.. | ||
aaparser.go | ||
aaparser_test.go |