Skip to contentSkip to conversation

refpolicy: add systemd support to tresys main policy.

RFC Guido Trentalancia 1 participant 1 message Sep 19, 2011 2 messages not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi Justin.

Here is the boolean you were looking for (quoted from your patch):

Quoted 6 lines · Justin P. Mattock
policy/modules/system/init.te +0 -0
index 5125d1d..6fcc939 100644

policy/modules/system/init.te gen_require(` · line 24

Quoted 9 lines
policy/modules/system/init.te +6 -0
@@ -16,6 +16,13 @@ gen_require(`
 ## </desc>
 gen_tunable(init_upstart, false)
 
+## <desc>
+## <p>
+## Enable support for systemd as the init program.
+## </p>
+## </desc>
+gen_tunable(init_systemd, false) 

But please note it's disabled (false) by default. So you do need to make sure it is enabled after having installed and loaded the policy, do not forget:

setsebool -P init_systemd=on

After such boolean has been enabled, then all policy blocks that begin with:

+ tunable_policy(init_systemd',

will eventually get included in the policy. Those are supposedly all essential permissions needed to successfully run a system using systemd.

If you managed to create a patch which applies and compiles cleanly, perhaps most of the job is done and you might only need to fine tune it.

Regards,

Guido