Skip to contentSkip to conversation

/bin/login

DISCUSSION Russell Coker 2 participants 4 messages Aug 16, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

During the login process we see the following prompts for a non-default security context. Shouldn't the last prompt be "Enter domain" not "Enter type"?

Do you want to enter a new security context?[n] y

Enter role (return for default) [sysadm_r] sysadm_r Enter type (return for default) [sysadm_t]

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

--
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 3 lines · Russell Coker

During the login process we see the following prompts for a non-default security context. Shouldn't the last prompt be "Enter domain" not "Enter type"?

Yes and no. As explained in the Security Model section of the Configuring the SELinux Policy report (as well as in the older policy report and in the Ottawa paper), the SELinux TE model does not internally distinguish domains from types and uses a single type attribute in the security context for both processes and objects. Hence, "Enter type" is legitimate, as is name for the /etc/security/default_type file. However, if we want to use the language of the traditional TE model, we could make this "Enter domain" and /etc/security/default_domain. No big deal either way.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
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 9 lines · Stephen Smalley

Yes and no. As explained in the Security Model section of the Configuring the SELinux Policy report (as well as in the older policy report and in the Ottawa paper), the SELinux TE model does not internally distinguish domains from types and uses a single type attribute in the security context for both processes and objects. Hence, "Enter type" is legitimate, as is name for the /etc/security/default_type file. However, if we want to use the language of the traditional TE model, we could make this "Enter domain" and /etc/security/default_domain. No big deal either way.

While we're on the topic of nomenclature, I should note that if you want to get away from TE altogether, just replace "TE" with "Lampson Access Matrix (LAM)", "domain" with "subject" and "type" with "object". An interview with Earl Boebert where he mentions that TE is simply the "Lampson Access Matrix organized into equivalence classes for efficiency" is available at http://www.linuxjournal.com/article.php?sid=4963. He cites the following reference for the Lampson Access Matrix:

Lampson, Butler W. "Protection." Mar. Proc. 5th Princeton Symp. on Information Sciences and Systems, 1971, pp.437-443. Reprinted January 1974 in ACM SIGOPS OSR 8(1), pp.18-24.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
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
In reply to Stephen Smalley
Quoted 5 lines · Stephen Smalley
Quoted 3 lines · Russell Coker

During the login process we see the following prompts for a non-default security context. Shouldn't the last prompt be "Enter domain" not "Enter type"?

Quoted 9 lines

Yes and no. As explained in the Security Model section of the Configuring the SELinux Policy report (as well as in the older policy report and in the Ottawa paper), the SELinux TE model does not internally distinguish domains from types and uses a single type attribute in the security context for both processes and objects. Hence, "Enter type" is legitimate, as is name for the /etc/security/default_type file. However, if we want to use the language of the traditional TE model, we could make this "Enter domain" and /etc/security/default_domain. No big deal either way.

It's not just the issue of the language of the traditional TE model in this case. All through the documentation we refer to "domain", so then having the login program refer to it as a type is confusing for users.

I am writing documentation for my SE Linux tutorial and this is something that will require extra explanation for the users...

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

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