Domain transition
Quoted 3 lines
1) What is "domain transition"? I've configured my system such that it
doesn't happen, but I'm wondering if it's the best way to go.
Read the Configuring the SELinux Policy report, available in the distribution (selinux/doc/policy) or from the NSA SELinux web site. You might also want to read a background paper on Type Enforcement (TE).
A domain is a security attribute associated with a process. Processes with the same domain have the same set of permissions to the same set of objects. A domain transition occurs when a process changes its domain, conventionally by executing a program with a particular entrypoint type. Domain transitions provide a controlled mechanism for changes in permissions, whether to gain permissions, shed permissions, or switch to a completely orthogonal set of permissions. I doubt that you really configured away domain transitions. If you did, you might as well not use SELinux.
Quoted 2 lines
2) Is there a text file on my system with the list of user roles or is
that information stored some other way?
In the source distribution's selinux tree, the policy/users file specifies the set of roles authorized for each user. Obtaining the full set of defined roles is not entirely straightforward because role declarations are now distributed among the domain .te files. Roles for user processes are typically defined in policy/domains/user.te or policy/domains/admin.te. You may want to look at the Tresys policy tools as a way of more easily viewing the policy or managing users.
In an installed form, the policy sources are typically placed into /etc/security/selinux/src/policy.
Quoted 2 lines
3) Can I configure the operating system NOT to ask for a user role on
login? I would much prefer to have user role determined BY the login.
The user will be limited to the roles authorized for that user in policy/users. If you authorize the user for multiple roles, then he can choose one of those roles at login time or subsequently via newrole. What's the point of limiting the user to a single role at login time if he can change it subsequently via newrole? Of course, you could limit login to transition to a single user domain if you want to force all users to initially login with a certain role/domain.
--
Stephen Smalley, NSA
[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.
Quoted 4 lines · Stephen D. Smalley
What's the point of limiting the user to a single role at login time if he can change it subsequently via newrole? Of course, you could limit login to transition to a single user domain if you want to force all users to initially login with a certain role/domain.
We currently have the default policy for sshd not allowing it to transition to sysadm_t to limit the damage from sshd being cracked.
I guess there's potential for a very paranoid (*) person to want to do the same with login.
(*) /bin/login has had a good history in terms of security for almost 10 years now, unlike sshd. Also /bin/login can't be accessed anywhere nearly as easily as sshd. Of course I'm sure there are some very paranoid people here... ;)
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Quoted 2 lines · Russell Coker
(*)
/bin/loginhas had a good history in terms of security for almost 10 years now, unlike sshd. Also/bin/logincan't be accessed anywhere nearly as
Assuming you are not using telnet...
(and yes, you can use Kerberos Telnet or SSL-Telnet too, so telnet doesn't always have to mean insecure; with these protocols you need to be authenticated though before login is run).
--
Brian May <[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.
Quoted 6 lines · Brian May
Quoted 3 lines · Russell Coker
(*)
/bin/loginhas had a good history in terms of security for almost 10 years now, unlike sshd. Also/bin/logincan't be accessed anywhere nearly asAssuming you are not using telnet...
Telnet causes login to be run as remote_login_t which is distinguished from the main local_login_t domain for this reason.
Actually we should probably have ifdef(rlogin.te', around the definition of remote_login_t in login.te, and have a similar ifdef(login.te', in rlogin.te.
Quoted 3 lines
(and yes, you can use Kerberos Telnet or SSL-Telnet too, so telnet doesn't always have to mean insecure; with these protocols you need to be authenticated though before login is run).
SSL-Telnet would be OK apart from it's history of security holes.
Kerberos still isn't safe, proxying the telnet protocol and hijacking it is not overly difficult...
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Quoted 5 lines · Russell Coker
Quoted 3 lines
(and yes, you can use Kerberos Telnet or SSL-Telnet too, so telnet doesn't always have to mean insecure; with these protocols you need to be authenticated though before login is run).
SSL-Telnet would be OK apart from it's history of security holes.
Yes. At one stage a group of Debian developers looked at 2 to 4 different implementations of SSL-Telnet, trying to work out which was the best one.
The conclusion, IIRC, was that all of them were pretty awful, just some had more features then others.
Quoted 2 lines
Kerberos still isn't safe, proxying the telnet protocol and hijacking it is not overly difficult...
Do you have a reference?
Signature · 6 lines
Brian May <[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.
Quoted 4 lines · Brian May
Quoted 2 lines
Kerberos still isn't safe, proxying the telnet protocol and hijacking it is not overly difficult...
Do you have a reference?
Is one really needed?
Redirecting a port 23 connection to one on the local machine and then establishing a new connection to the server is quite easy if you control a router. Going from that to taking over an idle session is quite easy.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Re: Domain transition -- enabling user_r in eklogin
On Tue, 17 Dec 2002 14:31:52 +0100
Russell Coker <[email protected]> did inscribe thusly:
Quoted 4 lines
Redirecting a port 23 connection to one on the local machine and then establishing a new connection to the server is quite easy if you control a router. Going from that to taking over an idle session is quite easy.
Which is a good reason to use eklogin / 3des encription over kerberized rlogin.
For which I've been having problems getting an appropriate transition working. (the following may have some typos I don't have either box running just now to refer to)
The remote_login domain was clearly designed with telnet in mind, there is no transtion to user_u:user_r.
Looking this over I moved login.krb5 into the same SID as /bin/login, using login.te as an example, however once the user's successfully authenticated the domain remains system_u:system_r and 'newrole(1)' is not available.
I'm going somewhat from memory so there may be some missed details, however I've tried re-configuring several times without much luck.
Also this test is being done on a slackware setup, because I was able to get telnetd working in a redhat system more easily there may be some system layout issues causing problems, not sure yet.
forrest
--
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.
Quoted 11 lines · Russell Coker
Quoted 4 lines · Brian May
Quoted 2 lines
Kerberos still isn't safe, proxying the telnet protocol and hijacking it is not overly difficult...
Do you have a reference?
Is one really needed?
Redirecting a port 23 connection to one on the local machine and then establishing a new connection to the server is quite easy if you control a router. Going from that to taking over an idle session is quite easy.
Not if you have encryption enabled...
Signature · 6 lines
Brian May <[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.