Red Hat Bugzilla – Bug 475497
set correct selinux security context for lvm partitions [f-10]
Last modified: 2014-06-18 04:02:02 EDT
On selinux enabled system:
# cobbler system add --name vguest --profile F-10-x86_64 --virt-type qemu
--virt-bridge virbr0 --virt-path vg
# koan --server 'host' --virt --system vguest2
these will fail to run, because koan-1.2.6-1.fc10.noarch did not set the correct security context for created lvm partition.
it must execute something like: "chcon -t virt_image_t /dev/mapper/%lvm_partition%"
Created attachment 326326 [details]
just a possible fix. works for me! :)
Yes, this was also discussed on IRC (#cobbler) yesterday and should be fixed.
Upstream cobbler's Trac instance is fedorahosted.org/cobbler. Please file defects there also so they will not be lost. You may skip bugzilla entirely if you like.
Thanks for the patch, please share this with the cobbler mailing list and we'll look at merging it.
All patches need to go to the list so they have a chance to be reviewed by a wider audience.
The part about "+ args = "/usr/sbin/selinuxenabled" is most certaintly wrong as that is not present on my install, cobbler has some code in it already that checks getenforce, which you can reuse.
Created attachment 326464 [details]
Posted for review: