All of lore.kernel.org
 help / color / mirror / Atom feed
* Who is responsible for role assignment?
@ 2006-10-09 11:00 Salvo Giuffrida
  2006-10-09 11:43 ` Joshua Brindle
  0 siblings, 1 reply; 4+ messages in thread
From: Salvo Giuffrida @ 2006-10-09 11:00 UTC (permalink / raw)
  To: selinux

Who is responsible for role and domain assignment during the login? The 
single programs listed in the default_context file (ssh, login, cron, su, 
etc..)? Or is this a "trasparent" operation, done by the security server?
Thanks

_________________________________________________________________
Personalizza MSN Messenger con sfondi e fotografie! 
http://www.ilovemessenger.msn.it/


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

* Re: Who is responsible for role assignment?
  2006-10-09 11:00 Who is responsible for role assignment? Salvo Giuffrida
@ 2006-10-09 11:43 ` Joshua Brindle
  2006-10-09 12:50   ` Salvo Giuffrida
  0 siblings, 1 reply; 4+ messages in thread
From: Joshua Brindle @ 2006-10-09 11:43 UTC (permalink / raw)
  To: Salvo Giuffrida; +Cc: selinux

Salvo Giuffrida wrote:
> Who is responsible for role and domain assignment during the login? 
> The single programs listed in the default_context file (ssh, login, 
> cron, su, etc..)? Or is this a "trasparent" operation, done by the 
> security server?
> Thanks
The login programs attempt the contexts in default_context in order. The 
first to succeed wins. The security server doesn't know about abstract 
events like logins and has no reason to.

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

* Re: Who is responsible for role assignment?
  2006-10-09 11:43 ` Joshua Brindle
@ 2006-10-09 12:50   ` Salvo Giuffrida
  2006-10-10 13:34     ` Stephen Smalley
  0 siblings, 1 reply; 4+ messages in thread
From: Salvo Giuffrida @ 2006-10-09 12:50 UTC (permalink / raw)
  To: jbrindle; +Cc: selinux

>From: Joshua Brindle <jbrindle@tresys.com>
>To: Salvo Giuffrida <giuffsalvo@hotmail.it>
>CC: selinux@tycho.nsa.gov
>Subject: Re: Who is responsible for role assignment?
>Date: Mon, 09 Oct 2006 07:43:09 -0400
>
>Salvo Giuffrida wrote:
>>Who is responsible for role and domain assignment during the login? The 
>>single programs listed in the default_context file (ssh, login, cron, su, 
>>etc..)? Or is this a "trasparent" operation, done by the security server?
>>Thanks
>The login programs attempt the contexts in default_context in order. The 
>first to succeed wins. The security server doesn't know about abstract 
>events like logins and has no reason to.
I though that, during the creation of the shell process by the login 
programs (using fork() and execve()), the security server was responsible 
for correct labeling of the child process created.
But it looks like this is a responsibility of the login programs 
themselves....So, this implies that they've been modified to use libselinux 
APIs (setexeccon(), and so on)?
Thanks

_________________________________________________________________
Ricerche online più semplici e veloci con MSN Toolbar! 
http://toolbar.msn.it/


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

* Re: Who is responsible for role assignment?
  2006-10-09 12:50   ` Salvo Giuffrida
@ 2006-10-10 13:34     ` Stephen Smalley
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Smalley @ 2006-10-10 13:34 UTC (permalink / raw)
  To: Salvo Giuffrida; +Cc: jbrindle, selinux

On Mon, 2006-10-09 at 14:50 +0200, Salvo Giuffrida wrote:
> >From: Joshua Brindle <jbrindle@tresys.com>
> >To: Salvo Giuffrida <giuffsalvo@hotmail.it>
> >CC: selinux@tycho.nsa.gov
> >Subject: Re: Who is responsible for role assignment?
> >Date: Mon, 09 Oct 2006 07:43:09 -0400
> >
> >Salvo Giuffrida wrote:
> >>Who is responsible for role and domain assignment during the login? The 
> >>single programs listed in the default_context file (ssh, login, cron, su, 
> >>etc..)? Or is this a "trasparent" operation, done by the security server?
> >>Thanks
> >The login programs attempt the contexts in default_context in order. The 
> >first to succeed wins. The security server doesn't know about abstract 
> >events like logins and has no reason to.
> I though that, during the creation of the shell process by the login 
> programs (using fork() and execve()), the security server was responsible 
> for correct labeling of the child process created.
> But it looks like this is a responsibility of the login programs 
> themselves....So, this implies that they've been modified to use libselinux 
> APIs (setexeccon(), and so on)?

Yes, they are either modified or leverage existing use of PAM to invoke
pam_selinux in order to set the exec context for the user shell
appropriately.  Note however that it is the kernel policy that governs
the set of authorized contexts that are legitimate for the user and to
which the login programs can transition.  

-- 
Stephen Smalley
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] 4+ messages in thread

end of thread, other threads:[~2006-10-10 13:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-09 11:00 Who is responsible for role assignment? Salvo Giuffrida
2006-10-09 11:43 ` Joshua Brindle
2006-10-09 12:50   ` Salvo Giuffrida
2006-10-10 13:34     ` 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.