login
Quoted 4 lines
when I started SELinux, I was required to input at "Enter role", "Enter type". But I do not know what I should input at it.
Please tell me.
If you are using the current release, I would only expect this to happen if login isn't labeled correctly, e.g. if you failed to relabel the filesystem after installing the SELinux-patched login. If you are using an older release, this might happen if you are missing your /etc/security/default_context file.
You can try specifying "sysadm_r" and "sysadm_t" or "user_r" and "user_t" as the role/type pair, depending on your entry in policy/users. But you'll want to fix the underlying cause, either relabeling your filesystem or installing /etc/security/default_context.
--
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.
RE: login (new default_contexts)
I must admit that I for one am confused about what changed with login and default contexts. I'll also admit I haven't tried to look through the code to understand the changes yet, but perhaps someone can give a quick synopsis. Before one had to have a default context in /etc/security/default_context to login. From what I've seen here, it sounds like the file is no longer needed, but instead default_contexts is used, which has a different format.
It looks like its specifying a default context for a role rather than a user. Is that correct? Does the old default context still work? Or is this replaced with the user's own .defaul_context? I'm sure this was probably discussed in list; I'd appreciate any pointers on what the effect of the changes are.
Thanks Frank
--
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: login (new default_contexts)
Quoted 7 lines · Frank Mayer
I must admit that I for one am confused about what changed with login and default contexts. I'll also admit I haven't tried to look through the code to understand the changes yet, but perhaps someone can give a quick synopsis. Before one had to have a default context in
/etc/security/default_contextto login. From what I've seen here, it sounds like the file is no longer needed, but insteaddefault_contextsis used, which has a different format.
The file was apparently renamed because the syntax is different. This is good practise, and allows you to mix versions of the various login programs if you wish.
Quoted 5 lines
It looks like its specifying a default context for a role rather than a user. Is that correct? Does the old default context still work? Or is this replaced with the user's own .defaul_context? I'm sure this was probably discussed in list; I'd appreciate any pointers on what the effect of the changes are.
The new file specifies the order of contexts that should be attempted for each program. This allows you to specify that sysadm_r:sysadm_t should be tried first (and therefore be the default if the identity permits it) for a login_t login. However for a sshd_t login process you definately don't want that (see the discussion we had on this list after the last critical security hole in sshd) so you specify that user_r:user_t should be the default context. Of course in the case of sshd the policy should prohibit that anyway.
We still don't have policy for .default_context...
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.