All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] refpolicy: Do not want to transition to sysadm_t when upstart runs a shell
@ 2008-03-06 21:11 James Carter
  2008-03-06 21:26 ` Stephen Smalley
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: James Carter @ 2008-03-06 21:11 UTC (permalink / raw)
  To: Christopher J. PeBenito; +Cc: SELinux

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.


Index: policy/modules/system/init.te
===================================================================
--- policy/modules/system/init.te	(revision 2631)
+++ policy/modules/system/init.te	(working copy)
@@ -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)
 ')
+')
 
 optional_policy(`
 	auth_rw_login_records(init_t)

-- 
James Carter <jwcart2@tycho.nsa.gov>
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@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-03-11 12:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06 21:11 [PATCH 1/1] refpolicy: Do not want to transition to sysadm_t when upstart runs a shell James Carter
2008-03-06 21:26 ` Stephen Smalley
2008-03-06 21:45   ` Daniel J Walsh
2008-03-07 19:03     ` Christopher J. PeBenito
2008-03-07 21:08       ` Daniel J Walsh
2008-03-08 16:17         ` Joe Nall
2008-03-11 12:19       ` Christopher J. PeBenito
2008-03-07 13:42 ` Joe Nall
2008-03-07 13:52   ` Stephen Smalley
2008-03-07 13:52   ` Daniel J Walsh
2008-03-07 15:49     ` Joe Nall
2008-03-07 16:02       ` Joe Nall
2008-03-07 18:16         ` Daniel J Walsh
2008-03-07 19:21           ` Joe Nall
2008-03-07 13:59   ` James Carter
2008-03-07 19:13 ` Christopher J. PeBenito
2008-03-07 20:41   ` James Carter
2008-03-08  1:28     ` Eamon Walsh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.