libvirt/examples
Christian Ehrhardt a2028ae716
apparmor: add mediation rules for unconfined guests
If a guest runs unconfined <seclabel type='none'>, but libvirtd is
confined then the peer for signal can only be detected as
'unconfined'. That triggers issues like:
   apparmor="DENIED" operation="signal"
   profile="/usr/sbin/libvirtd" pid=22395 comm="libvirtd"
   requested_mask="send" denied_mask="send" signal=term peer="unconfined"

To fix this add unconfined as an allowed peer for those operations.

I discussed with the apparmor folks, right now there is no better
separation to be made in this case. But there might be further down the
road with "policy namespaces with scope and view control + stacking"

This is more a use-case addition than a fix to the following two changes:
- 3b1d19e6 AppArmor: add rules needed with additional mediation features
- b482925c apparmor: support ptrace checks

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Acked-by: Jamie Strandboge <jamie@canonical.com>
Acked-by: intrigeri <intrigeri+libvirt@boum.org>
2018-08-16 12:58:56 +02:00
..
admin examples: Resolve sign-compare warnings 2016-12-20 13:11:25 +01:00
apparmor apparmor: add mediation rules for unconfined guests 2018-08-16 12:58:56 +02:00
dominfo examples: Use one top level makefile 2016-01-09 21:14:12 -05:00
dommigrate examples: Use one top level makefile 2016-01-09 21:14:12 -05:00
domsuspend Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
domtop Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
hellolibvirt examples: Remove config.h from hellolibvirt and openauth 2018-07-09 08:53:11 +02:00
lxcconvert lxc: allow use of lxc:///system URI as preferred format 2018-04-12 16:52:01 +01:00
object-events Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
openauth examples: Remove config.h from hellolibvirt and openauth 2018-07-09 08:53:11 +02:00
polkit examples: Use one top level makefile 2016-01-09 21:14:12 -05:00
rename examples: Use one top level makefile 2016-01-09 21:14:12 -05:00
systemtap Forget last daemon/ dir artefacts 2018-07-27 15:44:38 +02:00
xml examples: Add clean-traffic-gateway into nwfilters 2018-07-18 14:03:47 +02:00
Makefile.am virt-aa-helper: handle more disk images 2017-12-20 11:05:54 +01:00