All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: jwcart2@tycho.nsa.gov,
	"Christopher J. PeBenito" <cpebenito@tresys.com>,
	SELinux <selinux@tycho.nsa.gov>
Subject: Re: [PATCH 1/1] refpolicy: Do not want to transition to sysadm_t when upstart runs a shell
Date: Thu, 06 Mar 2008 16:45:06 -0500	[thread overview]
Message-ID: <47D065E2.3000702@redhat.com> (raw)
In-Reply-To: <1204838797.1397.378.camel@moss-spartans.epoch.ncsc.mil>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephen Smalley 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.
> 
So it should probably transition to initrc_t, so apps started this way
would have a chance of transitioning properly.
> So what happens if one does a single user boot under upstart?
> That's the motivation for the original transition there.
> 
> Also, I guess we need to distinguish Fedora 9 and later from older
> distros here.
> 
>> 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)
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkfQZd0ACgkQrlYvE4MpobM98ACeMb7nBCkEgkE7o3Ecdvogd9HN
/psAoNvtz6DVIJL7NRlEm8t986iDRrMa
=qHme
-----END PGP SIGNATURE-----

--
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.

  reply	other threads:[~2008-03-06 21:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47D065E2.3000702@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=cpebenito@tresys.com \
    --cc=jwcart2@tycho.nsa.gov \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.