]> git.ipfire.org Git - thirdparty/libvirt.git/commit
fix AppArmor driver for pipe character devices
authorJamie Strandboge <jamie@canonical.com>
Wed, 28 Sep 2011 07:43:39 +0000 (15:43 +0800)
committerDaniel Veillard <veillard@redhat.com>
Wed, 28 Sep 2011 07:43:39 +0000 (15:43 +0800)
commit03d89991f24f67ec5900bd8bbe0b09dbd0f536e4
tree05e3e3e922fd09f7473ab3e1babdb96408aaaafb
parentb0889eae6a526f6097dd397d5ee68bb78a1f454b
fix AppArmor driver for pipe character devices

The AppArmor security driver adds only the path specified in the domain
XML for character devices of type 'pipe'. It should be using <path>.in
and <path>.out. We do this by creating a new vah_add_file_chardev() and
use it for char devices instead of vah_add_file(). Also adjust
valid_path() to accept S_FIFO (since qemu chardevs of type 'pipe' use
fifos). This is https://launchpad.net/bugs/832507
src/security/virt-aa-helper.c
tests/virt-aa-helper-test