All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eamon Walsh <ewalsh@tycho.nsa.gov>
To: jwcart2@tycho.nsa.gov
Cc: "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: Fri, 07 Mar 2008 20:28:30 -0500	[thread overview]
Message-ID: <47D1EBBE.5040802@tycho.nsa.gov> (raw)
In-Reply-To: <1204922502.21054.18.camel@moss-lions.epoch.ncsc.mil>

James Carter wrote:
> 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.
>>>       
>>

In case the severity of this problem isn't clear:

Rawhide + refpolicy trunk + enforcing mode = lockup at boot:

<permission denials from system_u:system_r:sysadm_t accessing tmpfs>
init: rc-default main program terminated with status 1


Rawhide + refpolicy trunk + permissive mode = dbus "permission denials" 
resulting from invalid contexts:

Mar  5 15:48:11 moss-charon kernel: security:  context 
system_u:system_r:sysadm_dbusd_t:s0 is invalid
Mar  5 15:48:11 moss-charon avahi-daemon[2158]: dbus_bus_get_private(): 
An SELinux policy prevents this sender from sending this message to this 
recipient (rejected message had interface "org.freedesktop.DBus" member 
"Hello" error name "(unset)" destination "org.freedesktop.DBus")
Mar  5 15:48:11 moss-charon avahi-daemon[2158]: WARNING: Failed to 
contact D-Bus daemon.


-- 
Eamon Walsh <ewalsh@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.

      reply	other threads:[~2008-03-08  1:28 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
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 message]

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=47D1EBBE.5040802@tycho.nsa.gov \
    --to=ewalsh@tycho.nsa.gov \
    --cc=cpebenito@tresys.com \
    --cc=jwcart2@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.