]> git.ipfire.org Git - thirdparty/libvirt.git/commit
apparmor: allow expected /tmp access patterns
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Tue, 14 Aug 2018 05:51:35 +0000 (07:51 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 16 Aug 2018 11:07:37 +0000 (13:07 +0200)
commitaa9e3354ef66db0093b903a45cf587705af9e7bb
tree2e2adb5e9abcafca6865f168177c3124834ab52f
parenta2028ae7162b293d569335b52286e8ae627f0ba3
apparmor: allow expected /tmp access patterns

Several cases were found needing /tmp, for example ceph will try to list /tmp
This is a compromise of security and usability:
 - we only allow generally enumerating the base dir
 - enumerating anything deeper in the dir is at least guarded by the
   "owner" restriction, but while that protects files of other services
   it won't protect qemu instances against each other as they usually run
   with the same user.
 - even with the owner restriction we only allow read for the wildcard
   path

Acked-by: Jamie Strandboge <jamie@canonical.com>
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
examples/apparmor/libvirt-qemu