mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-02-02 21:01:32 +00:00
Adding default context rules for libvirt
The libvirt infrastructure requires the availability of the context files. In this patch, we add the defaults to the three predefined application contexts (mls/mcs/standard). Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
This commit is contained in:
parent
94d8bd2904
commit
f78979eadd
2
Makefile
2
Makefile
@ -249,7 +249,7 @@ seusers := $(appconf)/seusers
|
||||
appdir := $(contextpath)
|
||||
user_default_contexts := $(wildcard config/appconfig-$(TYPE)/*_default_contexts)
|
||||
user_default_contexts_names := $(addprefix $(contextpath)/users/,$(subst _default_contexts,,$(notdir $(user_default_contexts))))
|
||||
appfiles := $(addprefix $(appdir)/,default_contexts default_type initrc_context failsafe_context userhelper_context removable_context dbus_contexts sepgsql_contexts x_contexts customizable_types securetty_types) $(contextpath)/files/media $(fcsubspath) $(user_default_contexts_names)
|
||||
appfiles := $(addprefix $(appdir)/,default_contexts default_type initrc_context failsafe_context userhelper_context removable_context dbus_contexts sepgsql_contexts x_contexts customizable_types securetty_types virtual_domain_context virtual_image_context) $(contextpath)/files/media $(fcsubspath) $(user_default_contexts_names)
|
||||
net_contexts := $(builddir)net_contexts
|
||||
|
||||
all_layers := $(shell find $(wildcard $(moddir)/*) -maxdepth 0 -type d)
|
||||
|
1
config/appconfig-mcs/virtual_domain_context
Normal file
1
config/appconfig-mcs/virtual_domain_context
Normal file
@ -0,0 +1 @@
|
||||
system_u:system_r:svirt_t:s0
|
2
config/appconfig-mcs/virtual_image_context
Normal file
2
config/appconfig-mcs/virtual_image_context
Normal file
@ -0,0 +1,2 @@
|
||||
system_u:object_r:svirt_image_t:s0
|
||||
system_u:object_r:virt_content_t:s0
|
1
config/appconfig-mls/virtual_domain_context
Normal file
1
config/appconfig-mls/virtual_domain_context
Normal file
@ -0,0 +1 @@
|
||||
system_u:system_r:svirt_t:s0
|
2
config/appconfig-mls/virtual_image_context
Normal file
2
config/appconfig-mls/virtual_image_context
Normal file
@ -0,0 +1,2 @@
|
||||
system_u:object_r:svirt_image_t:s0
|
||||
system_u:object_r:virt_content_t:s0
|
1
config/appconfig-standard/virtual_domain_context
Normal file
1
config/appconfig-standard/virtual_domain_context
Normal file
@ -0,0 +1 @@
|
||||
system_u:system_r:svirt_t
|
2
config/appconfig-standard/virtual_image_context
Normal file
2
config/appconfig-standard/virtual_image_context
Normal file
@ -0,0 +1,2 @@
|
||||
system_u:object_r:svirt_image_t
|
||||
system_u:object_r:virt_content_t
|
Loading…
Reference in New Issue
Block a user