Skip to contentSkip to conversation

Who is responsible for role assignment?

DISCUSSION Salvo Giuffrida 3 participants 4 messages Oct 9, 2006 – Oct 10, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 2 lines · Salvo Giuffrida

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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw
Quoted 10 lines

From: Joshua Brindle <[email protected]>
To: Salvo Giuffrida <[email protected]>
CC: [email protected]
Subject: Re: Who is responsible for role assignment?
Date: Mon, 09 Oct 2006 07:43:09 -0400

Quoted 2 lines · Salvo Giuffrida

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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
Quoted 14 lines · Salvo Giuffrida
Quoted 6 lines

From: Joshua Brindle <[email protected]>
To: Salvo Giuffrida <[email protected]>
CC: [email protected]
Subject: Re: Who is responsible for role assignment?
Date: Mon, 09 Oct 2006 07:43:09 -0400

Quoted 8 lines
Quoted 4 lines · Salvo Giuffrida

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.

Quoted 6 lines

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.

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.