From: dominick.grift@gmail.com (Dominick Grift) Date: Sat, 07 Dec 2013 20:31:15 +0100 Subject: [refpolicy] [PATCH 3/5] init: in redhat derived distributions the kernel (systemd) dynamically transitions to init In-Reply-To: <20131207191952.GA19217@d30> References: <20131207191952.GA19217@d30> Message-ID: <1386444675.18689.8.camel@d30> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On Sat, 2013-12-07 at 20:19 +0100, Dominick Grift wrote: > I used the kernel_dyntrans_to() to stay consistent with the > kernel_domtrans_to. I am not sure why this was done this way > > init: systemd wants to block suspend in distro_redhat > > Signed-off-by: Dominick Grift Whoops these patches were sent from the wrong email address. git-send-email or dependency is broken in fedora so i resorted to mutt which was configured with this email address Anyhow: This might be a first step to supporting systemd. Basically run the main component in init_t, and add the systemd specific policy in a boolean init_systemd These changes also only apply to rh derived distros (at least for now) debian is not using systemd currently but is using some systemd components however these components are started by dbus system bus, and not by systemd like they are in fedora for example So that needs special attention The main message of this patch i guess is that i suggest we take advantage of Fedoras experience with systemd and follow suit as much as possible Earlier on i was hoping we could do more but now i am of the opinion that this is probably best