Files
docker-cli/components/engine/daemon
Aleksa Sarai e7e4e93352 apparmor: make pkg/aaparser work on read-only root
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: 2f7596aaef3a ("apparmor: do not save profile to /etc/apparmor.d")
Signed-off-by: Aleksa Sarai <asarai@suse.de>
Upstream-commit: dd340c52cb37d29d8bae687fdc60e039341b4295
Component: engine
2017-05-18 00:05:13 +10:00
..
2017-05-10 14:16:27 -07:00
2017-02-07 11:08:37 -08:00
2016-11-14 15:15:09 -05:00
2017-05-16 15:11:39 -07:00
2016-09-07 11:05:58 -07:00
2016-10-28 11:06:54 -07:00
2017-05-05 14:50:00 +08:00
2017-05-16 14:25:32 -07:00
2016-11-16 13:38:45 -08:00
2017-02-15 21:57:27 +08:00
2016-11-03 10:05:11 -07:00
2016-11-03 10:05:11 -07:00
2016-11-03 10:05:11 -07:00
2016-11-17 13:10:48 -05:00
2017-05-16 15:09:14 -07:00
2017-02-07 11:08:37 -08:00
2016-09-07 11:05:58 -07:00
2016-11-08 17:41:56 -08:00
2017-05-16 15:11:39 -07:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-05-02 17:38:12 -04:00
2017-05-16 15:11:39 -07:00
2017-05-16 15:11:39 -07:00
2016-12-01 09:38:08 -08:00
2016-10-06 22:48:53 -03:00
2016-09-07 11:05:58 -07:00
2017-05-12 00:30:09 -04:00
2017-05-16 14:25:32 -07:00
2017-05-16 23:37:30 +08:00
2017-01-11 21:35:59 +08:00
2016-12-27 21:46:52 +08:00
2016-09-07 11:05:58 -07:00
2017-05-16 11:30:06 -07:00
2017-02-01 14:43:58 -05:00
2016-09-21 12:36:52 +02:00
2016-09-16 11:56:15 -07:00
2017-05-16 15:11:39 -07:00
2016-11-21 19:56:01 +08:00
2017-05-16 15:11:39 -07:00