Changes to the userdomain policy module

Make sure various virt user home content gets created with a type
transition and proper file contexts for common users

Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
This commit is contained in:
Dominick Grift 2012-12-17 21:07:31 +01:00 committed by Chris PeBenito
parent 88b2de1c17
commit 8b3ffb9663
1 changed files with 8 additions and 0 deletions

View File

@ -712,6 +712,14 @@ template(`userdom_common_user_template',`
optional_policy(`
usernetctl_run($1_t, $1_r)
')
optional_policy(`
virt_home_filetrans_virt_home($1_t, dir, ".libvirt")
virt_home_filetrans_virt_home($1_t, dir, ".virtinst")
virt_home_filetrans_virt_content($1_t, dir, "isos")
virt_home_filetrans_svirt_home($1_t, dir, "qemu")
virt_home_filetrans_virt_home($1_t, dir, "VirtualMachines")
')
')
#######################################