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:
Sven Vermeulen 2012-04-11 20:34:53 +02:00 committed by Chris PeBenito
parent 94d8bd2904
commit f78979eadd
7 changed files with 10 additions and 1 deletions

View File

@ -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)

View File

@ -0,0 +1 @@
system_u:system_r:svirt_t:s0

View File

@ -0,0 +1,2 @@
system_u:object_r:svirt_image_t:s0
system_u:object_r:virt_content_t:s0

View File

@ -0,0 +1 @@
system_u:system_r:svirt_t:s0

View File

@ -0,0 +1,2 @@
system_u:object_r:svirt_image_t:s0
system_u:object_r:virt_content_t:s0

View File

@ -0,0 +1 @@
system_u:system_r:svirt_t

View File

@ -0,0 +1,2 @@
system_u:object_r:svirt_image_t
system_u:object_r:virt_content_t