All of lore.kernel.org
 help / color / mirror / Atom feed
* user_identify for httpd (warning: newbie question)
@ 2008-07-25  5:42 Murray McAllister
  2008-07-25  5:55 ` Murray McAllister
  2008-07-25 13:28 ` Stephen Smalley
  0 siblings, 2 replies; 5+ messages in thread
From: Murray McAllister @ 2008-07-25  5:42 UTC (permalink / raw)
  To: selinux

Hi,

On Red Hat Enterprise Linux 5 (policy-targeted), I run my main user 
account as "user_u:system_r:unconfined_t". When I do a "sudo service 
httpd start", httpd runs as "user_u:system_r:httpd_t".

On Fedora 9 (policy-targeted), I run my main user account as 
"unconfined_u:unconfined_r:unconfined_t". When I do a "sudo service 
httpd start", httpd runs as "unconfined_u:system_r:httpd_t".

"httpd.conf" is configured on each system to run as the user and group 
"apache".

With regards to Fedora 9, am I doing something wrong? Is it okay for the 
SELinux user to be "unconfined_u" for services?

Thanks for any advice,

Murray.

--
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] 5+ messages in thread

* Re: user_identify for httpd (warning: newbie question)
  2008-07-25  5:42 user_identify for httpd (warning: newbie question) Murray McAllister
@ 2008-07-25  5:55 ` Murray McAllister
  2008-07-25 13:28 ` Stephen Smalley
  1 sibling, 0 replies; 5+ messages in thread
From: Murray McAllister @ 2008-07-25  5:55 UTC (permalink / raw)
  To: selinux

The subject should be "user_identity", and sorry for top posting.

Murray McAllister wrote:
> Hi,
> 
> On Red Hat Enterprise Linux 5 (policy-targeted), I run my main user 
> account as "user_u:system_r:unconfined_t". When I do a "sudo service 
> httpd start", httpd runs as "user_u:system_r:httpd_t".
> 
> On Fedora 9 (policy-targeted), I run my main user account as 
> "unconfined_u:unconfined_r:unconfined_t". When I do a "sudo service 
> httpd start", httpd runs as "unconfined_u:system_r:httpd_t".
> 
> "httpd.conf" is configured on each system to run as the user and group 
> "apache".
> 
> With regards to Fedora 9, am I doing something wrong? Is it okay for the 
> SELinux user to be "unconfined_u" for services?
> 
> Thanks for any advice,
> 
> Murray.
> 
> -- 
> 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.


--
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] 5+ messages in thread

* Re: user_identify for httpd (warning: newbie question)
  2008-07-25  5:42 user_identify for httpd (warning: newbie question) Murray McAllister
  2008-07-25  5:55 ` Murray McAllister
@ 2008-07-25 13:28 ` Stephen Smalley
  2008-07-25 15:50   ` Joshua Brindle
  1 sibling, 1 reply; 5+ messages in thread
From: Stephen Smalley @ 2008-07-25 13:28 UTC (permalink / raw)
  To: Murray McAllister; +Cc: selinux, Joshua Brindle

On Fri, 2008-07-25 at 15:42 +1000, Murray McAllister wrote:
> Hi,
> 
> On Red Hat Enterprise Linux 5 (policy-targeted), I run my main user 
> account as "user_u:system_r:unconfined_t". When I do a "sudo service 
> httpd start", httpd runs as "user_u:system_r:httpd_t".
> 
> On Fedora 9 (policy-targeted), I run my main user account as 
> "unconfined_u:unconfined_r:unconfined_t". When I do a "sudo service 
> httpd start", httpd runs as "unconfined_u:system_r:httpd_t".
> 
> "httpd.conf" is configured on each system to run as the user and group 
> "apache".
> 
> With regards to Fedora 9, am I doing something wrong? Is it okay for the 
> SELinux user to be "unconfined_u" for services?
> 
> Thanks for any advice,

It is non-ideal but not a vulnerability (since the TE policy governs
what domains can be reached from the service domain, e.g. httpd_t).

Ideally it would be transitioned to system_u.  Requires SELinux to
support automatic user identity transitions, something we didn't expect
would be needed since user identity is normally set explicitly by
programs.  SELinux has a "run_init" program that will explicitly
transition into a system context for restarting system services, but it
isn't integrated into /sbin/service and friends - early on in Fedora
SELinux integration, they ran into problems with seamlessly making it
work with existing usage patterns.

There have been some preliminary patches floated to add user identity
transitions to SELinux.  Not sure what the status is on that - Joshua?




--
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] 5+ messages in thread

* RE: user_identify for httpd (warning: newbie question)
  2008-07-25 13:28 ` Stephen Smalley
@ 2008-07-25 15:50   ` Joshua Brindle
  2008-07-26  0:36     ` Stephen Smalley
  0 siblings, 1 reply; 5+ messages in thread
From: Joshua Brindle @ 2008-07-25 15:50 UTC (permalink / raw)
  To: Stephen Smalley, Murray McAllister; +Cc: selinux

Stephen Smalley wrote:
> On Fri, 2008-07-25 at 15:42 +1000, Murray McAllister wrote:
>> Hi,
>> 
>> On Red Hat Enterprise Linux 5 (policy-targeted), I run my main user
>> account as "user_u:system_r:unconfined_t". When I do a "sudo service
>> httpd start", httpd runs as "user_u:system_r:httpd_t".
>> 
>> On Fedora 9 (policy-targeted), I run my main user account as
>> "unconfined_u:unconfined_r:unconfined_t". When I do a "sudo service
>> httpd start", httpd runs as "unconfined_u:system_r:httpd_t".
>> 
>> "httpd.conf" is configured on each system to run as the user and
>> group "apache". 
>> 
>> With regards to Fedora 9, am I doing something wrong? Is it okay for
>> the SELinux user to be "unconfined_u" for services?
>> 
>> Thanks for any advice,
> 
> It is non-ideal but not a vulnerability (since the TE policy
> governs what domains can be reached from the service domain, e.g.
> httpd_t). 
> 
> Ideally it would be transitioned to system_u.  Requires
> SELinux to support automatic user identity transitions,
> something we didn't expect would be needed since user
> identity is normally set explicitly by programs.  SELinux has
> a "run_init" program that will explicitly transition into a
> system context for restarting system services, but it isn't
> integrated into /sbin/service and friends - early on in
> Fedora SELinux integration, they ran into problems with
> seamlessly making it work with existing usage patterns.
> 
> There have been some preliminary patches floated to add user
> identity transitions to SELinux.  Not sure what the status is
> on that - Joshua?

I dropped them when Ubuntu worked around the issue in policy. I can dig
them out again but I'm not sure its worth bumping the policy version
just for this and not convinced its entirely necessary anyway.


--
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] 5+ messages in thread

* RE: user_identify for httpd (warning: newbie question)
  2008-07-25 15:50   ` Joshua Brindle
@ 2008-07-26  0:36     ` Stephen Smalley
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Smalley @ 2008-07-26  0:36 UTC (permalink / raw)
  To: Joshua Brindle; +Cc: Murray McAllister, selinux

On Fri, 2008-07-25 at 11:50 -0400, Joshua Brindle wrote:
> Stephen Smalley wrote:
> > On Fri, 2008-07-25 at 15:42 +1000, Murray McAllister wrote:
> >> Hi,
> >> 
> >> On Red Hat Enterprise Linux 5 (policy-targeted), I run my main user
> >> account as "user_u:system_r:unconfined_t". When I do a "sudo service
> >> httpd start", httpd runs as "user_u:system_r:httpd_t".
> >> 
> >> On Fedora 9 (policy-targeted), I run my main user account as
> >> "unconfined_u:unconfined_r:unconfined_t". When I do a "sudo service
> >> httpd start", httpd runs as "unconfined_u:system_r:httpd_t".
> >> 
> >> "httpd.conf" is configured on each system to run as the user and
> >> group "apache". 
> >> 
> >> With regards to Fedora 9, am I doing something wrong? Is it okay for
> >> the SELinux user to be "unconfined_u" for services?
> >> 
> >> Thanks for any advice,
> > 
> > It is non-ideal but not a vulnerability (since the TE policy
> > governs what domains can be reached from the service domain, e.g.
> > httpd_t). 
> > 
> > Ideally it would be transitioned to system_u.  Requires
> > SELinux to support automatic user identity transitions,
> > something we didn't expect would be needed since user
> > identity is normally set explicitly by programs.  SELinux has
> > a "run_init" program that will explicitly transition into a
> > system context for restarting system services, but it isn't
> > integrated into /sbin/service and friends - early on in
> > Fedora SELinux integration, they ran into problems with
> > seamlessly making it work with existing usage patterns.
> > 
> > There have been some preliminary patches floated to add user
> > identity transitions to SELinux.  Not sure what the status is
> > on that - Joshua?
> 
> I dropped them when Ubuntu worked around the issue in policy. I can dig
> them out again but I'm not sure its worth bumping the policy version
> just for this and not convinced its entirely necessary anyway.

It has been a long-standing problem with SELinux.  As I said at the
time, I think it is worth adding the user transition support - I just
didn't want to rush the merging of it to suit the Ubuntu schedule.



--
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] 5+ messages in thread

end of thread, other threads:[~2008-07-26  0:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25  5:42 user_identify for httpd (warning: newbie question) Murray McAllister
2008-07-25  5:55 ` Murray McAllister
2008-07-25 13:28 ` Stephen Smalley
2008-07-25 15:50   ` Joshua Brindle
2008-07-26  0:36     ` Stephen Smalley

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.