selinux: fix context of secure_mode_policyload boolean
PATCH 1/1 selinux: fix context of secure_mode_policyload boolean
From: cgzones <[email protected]>
genfscon in interfaces seems not to work
--- policy/modules/kernel/selinux.fc | 4 ++++ policy/modules/kernel/selinux.if | 2 ++ policy/modules/kernel/selinux.te | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-)
policy/modules/kernel/selinux.fc +4 -0
@@ -1 +1,5 @@ # This module currently does not have any file contexts. + +/sys/fs/selinux(/.*)? gen_context(system_u:object_r:security_t,s0) +/sys/fs/selinux/null -c gen_context(system_u:object_r:null_device_t,s0) +/sys/fs/selinux/booleans/secure_mode_policyload -- gen_context(system_u:object_r:secure_mode_policyload_t,s0)
policy/modules/kernel/selinux.if +2 -0
@@ -32,6 +32,8 @@ ## </param> # interface(`selinux_labeled_boolean',` + refpolicywarn(`$0($*) has been deprecated.') + gen_require(` attribute boolean_type; ')
policy/modules/kernel/selinux.te +2 -2
@@ -20,8 +20,8 @@ attribute can_setenforce; attribute can_setsecparam; attribute selinux_unconfined_type; -type secure_mode_policyload_t; -selinux_labeled_boolean(secure_mode_policyload_t, secure_mode_policyload) +type secure_mode_policyload_t, boolean_type; +genfscon selinuxfs /booleans/secure_mode_policyload gen_context(system_u:object_r:secure_mode_policyload_t,s0) # # security_t is the target type when checking
Signature · 1 line
2.11.0
PATCH 1/1 selinux: fix context of secure_mode_policyload boolean
Quoted 24 lines · Christian G?ttsche via refpolicy
From: cgzones <[email protected]>
genfscon in interfaces seems not to work
--- policy/modules/kernel/selinux.fc | 4 ++++ policy/modules/kernel/selinux.if | 2 ++ policy/modules/kernel/selinux.te | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-)policy/modules/kernel/selinux.fc +4
-0@@ -1 +1,5 @@ # This module currently does not have any file contexts. + +/sys/fs/selinux(/.*)? gen_context(system_u:object_r:security_t,s0) +/sys/fs/selinux/null -c gen_context(system_u:object_r:null_device_t,s0) +/sys/fs/selinux/booleans/secure_mode_policyload -- gen_context(system_u:object_r:secure_mode_policyload_t,s0)policy/modules/kernel/selinux.if +0
-0
policy/modules/kernel/selinux.if line 35
Quoted 4 lines
policy/modules/kernel/selinux.if +1
-0@@ -32,6 +32,8 @@ ## </param> # interface(`selinux_labeled_boolean',` + refpolicywarn(`$0($*) has been deprecated.')
This should not be deprecated, as the attribute is used by the selinux_set_all_booleans() interface. I'm fine removing the genfscon since it is no longer needed.
Quoted 19 lines
policy/modules/kernel/selinux.if +0
-0gen_require(` attribute boolean_type; ')policy/modules/kernel/selinux.te +2
-2@@ -20,8 +20,8 @@ attribute can_setenforce; attribute can_setsecparam; attribute selinux_unconfined_type; -type secure_mode_policyload_t; -selinux_labeled_boolean(secure_mode_policyload_t, secure_mode_policyload) +type secure_mode_policyload_t, boolean_type; +genfscon selinuxfs /booleans/secure_mode_policyload gen_context(system_u:object_r:secure_mode_policyload_t,s0) # # security_t is the target type when checking
Signature · 1 line
Chris PeBenito