|
Dan Walsh |
ad10ef |
diff -up serefpolicy-3.10.0/policy/mcs.trans serefpolicy-3.10.0/policy/mcs
|
|
Dan Walsh |
ad10ef |
--- serefpolicy-3.10.0/policy/mcs.trans 2011-12-05 16:30:45.081703537 -0500
|
|
Dan Walsh |
ad10ef |
+++ serefpolicy-3.10.0/policy/mcs 2011-12-05 16:34:09.674001926 -0500
|
|
Dan Walsh |
4dba2e |
@@ -1,4 +1,6 @@
|
|
Dan Walsh |
4dba2e |
ifdef(`enable_mcs',`
|
|
Dan Walsh |
ad10ef |
+default_range dir_file_class_set target low;
|
|
Dan Walsh |
4dba2e |
+
|
|
Dan Walsh |
4dba2e |
#
|
|
Dan Walsh |
4dba2e |
# Define sensitivities
|
|
Dan Walsh |
4dba2e |
#
|
|
Dan Walsh |
ad10ef |
diff --git a/policy/modules/kernel/devices.fc b/policy/modules/kernel/devices.fc
|
|
Dan Walsh |
ad10ef |
index 26c13f2..2354089 100644
|
|
Dan Walsh |
ad10ef |
--- a/policy/modules/kernel/devices.fc
|
|
Dan Walsh |
ad10ef |
+++ b/policy/modules/kernel/devices.fc
|
|
Dan Walsh |
ad10ef |
@@ -205,6 +205,7 @@ ifdef(`distro_redhat',`
|
|
Dan Walsh |
ad10ef |
# /sys
|
|
Dan Walsh |
ad10ef |
#
|
|
Dan Walsh |
ad10ef |
/sys(/.*)? gen_context(system_u:object_r:sysfs_t,s0)
|
|
Dan Walsh |
ad10ef |
+/sys/devices/system/cpu/online gen_context(system_u:object_r:cpu_online_t,s0)
|
|
Dan Walsh |
ad10ef |
|
|
Dan Walsh |
ad10ef |
/usr/lib/udev/devices(/.*)? gen_context(system_u:object_r:device_t,s0)
|
|
Dan Walsh |
ad10ef |
/usr/lib/udev/devices/lp.* -c gen_context(system_u:object_r:printer_device_t,s0)
|
|
Dan Walsh |
ad10ef |
diff --git a/policy/modules/kernel/devices.te b/policy/modules/kernel/devices.te
|
|
Dan Walsh |
ad10ef |
index 112bebb..8f727be 100644
|
|
Dan Walsh |
ad10ef |
--- a/policy/modules/kernel/devices.te
|
|
Dan Walsh |
ad10ef |
+++ b/policy/modules/kernel/devices.te
|
|
Dan Walsh |
ad10ef |
@@ -226,8 +226,8 @@ fs_type(sysfs_t)
|
|
Dan Walsh |
ad10ef |
genfscon sysfs / gen_context(system_u:object_r:sysfs_t,s0)
|
|
Dan Walsh |
ad10ef |
|
|
Dan Walsh |
ad10ef |
type cpu_online_t;
|
|
Dan Walsh |
ad10ef |
-allow cpu_online_t sysfs_t:filesystem associate;
|
|
Dan Walsh |
ad10ef |
-genfscon sysfs /devices/system/cpu/online gen_context(system_u:object_r:cpu_online_t,s0)
|
|
Dan Walsh |
ad10ef |
+files_type(cpu_online_t)
|
|
Dan Walsh |
ad10ef |
+dev_associate_sysfs(cpu_online_t)
|
|
Dan Walsh |
ad10ef |
|
|
Dan Walsh |
ad10ef |
#
|
|
Dan Walsh |
ad10ef |
# Type for /dev/tpm
|
|
Dan Walsh |
ad10ef |
diff --git a/policy/modules/kernel/kernel.fc b/policy/modules/kernel/kernel.fc
|
|
Dan Walsh |
ad10ef |
index 7be4ddf..f7021a0 100644
|
|
Dan Walsh |
ad10ef |
--- a/policy/modules/kernel/kernel.fc
|
|
Dan Walsh |
ad10ef |
+++ b/policy/modules/kernel/kernel.fc
|
|
Dan Walsh |
ad10ef |
@@ -1 +1,2 @@
|
|
Dan Walsh |
ad10ef |
-# This module currently does not have any file contexts.
|
|
Dan Walsh |
ad10ef |
+
|
|
Dan Walsh |
ad10ef |
+/sys/class/net/ib.* gen_context(system_u:object_r:sysctl_net_t,s0)
|