On Fri, 2008-03-07 at 14:13 -0500, Christopher J. PeBenito wrote: > On Thu, 2008-03-06 at 16:11 -0500, James Carter wrote: > > Upstart spawns a shell during boot and, without this patch, it will > > transition to the sysadm_t domain, but remain in the system_r role. > > Services started by that shell will fail to start, even in permissive > > mode, if system_u:system_r:sysadm_someservice_t is an invalid context. > > We really don't want to be starting services from the sysadm_t domain > > during boot. > > Instead of doing this, perhaps we should switch it to positive logic? > Its much more verbose, but its significantly clearer. Though we're > going to have to add a distro_rhel5 in that case. Another option might > be to make an init_sysvinit or init_upstart tunable. An init_upstart tunable seems better to me. I imagine that in the future the use of upstart will diverge more and more from SysV and this won't be the only difference. > > > @@ -164,10 +164,12 @@ > > ') > > > > ifndef(`distro_ubuntu',` > > +ifndef(`distro_redhat',` > > # Run the shell in the sysadm role for single-user mode. > > # causes problems with upstart > > userdom_shell_domtrans_sysadm(init_t) > > ') > > +') > -- James Carter <jwcart2@xxxxxxxxxxxxx> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.