Skip to contentSkip to conversation

question about remote login

DISCUSSION lky 5 participants 6 messages Dec 19, 2003 – Dec 21, 2003 SELinux security module

lore
Share & tools
lore

lky

author
#0 lore raw

Hi:
I have installed selinux-2.4.21 on RedHat9.0. Now I want to login my machine remotely.But I found I can't login with telnet if SElinux is enabled.SElinux don't support telnet? I didn't find the .te file for telnet.Then I have to use ssh now.But there is still a problem. I have enabled MLS in SElinux. One of my users is labeled as secret level(unclassified as default). Now I can't ssh as the secret user.The denied messages appear that the secret user can't access the ssh_t objects cause ssh_t is labeled as unclassified. How can I ssh to my machine as both secret and unclassified users? By the way I want to know how to disable the display of deny messages on screen? Is there a command?
Thanks a lot!
lky

#1 lore raw
Quoted 2 lines · lky

Hi:
I have installed selinux-2.4.21 on RedHat9.0.

I'd suggest updating to the current release. 2.4.23 or 2.6.0-test11. I also have a patch against 2.6.0 if you'd like to use that.

Quoted 3 lines

Now I want to login my machine remotely.But I found I can't login with telnet if SElinux is enabled.SElinux don't support telnet? I didn't find the .te file for telnet.Then I have to use ssh now.

ssh is preferred anyway, but there is example policy support for telnet if you include the inetd.te and rlogind.te files in your policy. They are not included by default; you have to move them up from policy/domains/program/unused if you want them.

Quoted 5 lines

But there is still a problem. I have enabled MLS in SElinux. One of my users is labeled as secret level(unclassified as default). Now I can't ssh as the secret user.The denied messages appear that the secret user can't access the ssh_t objects cause ssh_t is labeled as unclassified. How can I ssh to my machine as both secret and unclassified users?

As noted in the documentation and previously on the list, the MLS policy is experimental and has not configured for use. Areas where it could be improved include re-integrating the MLS logic with the TE logic so that a separate TE access vector can be specified per MLS relation, making sure that the MLS configuration is correct, implementing polyinstantiation support, and userland integration. Not a priority to us at the moment, feel free to contribute.

Quoted 2 lines

By the way I want to know how to disable the display of deny
messages on screen? Is there a command?

They are handled by the normal kernel logging infrastructure. You can set the log level via the avc_log_level= kernel boot parameter. The default level is 4 (KERN_WARNING). You can alter the behavior of klogd or syslogd in the usual manner, see their man pages.

Signature · 8 lines
Stephen Smalley <[email protected]>
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.
author
#2 lore raw
Quoted 8 lines · On Saturday, December 20, 2003 4:30 AM,Stephen Smalley wrote:
Quoted 2 lines

By the way I want to know how to disable the display of deny
messages on screen? Is there a command?

They are handled by the normal kernel logging infrastructure. You can set the log level via the avc_log_level= kernel boot parameter. The default level is 4 (KERN_WARNING). You can alter the behavior of klogd or syslogd in the usual manner, see their man pages.

Sorry,I think I didn't express my meaning clearly.I just want to stop the deny messages on screen but keep them in the log file such as messages.I set the log level via the avc_log_level= kernel boot parameter.It did stop the display of deny messages but disable the logging as well.Any advice? Thanks!
lky

--
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 8 lines · lky

Sorry,I think I didn't express my meaning clearly.I just want to stop the deny messages on screen but keep them in the log file such as messages.I set the log level via the avc_log_level= kernel boot parameter.It did stop the display of deny messages but disable the logging as well.Any advice? Thanks!
lky

Basically:
echo "7 7 1 7" >/proc/sys/kernel/printk

from http://www.crypt.gen.nz/selinux/faq.html#L.1 :
SELinux sends a lot of messages to the system console by default. This can be very annoying if you're busy on the console trying to solve some important problem. The following command will direct all messages of default priority away from the console. The default is "7 4 1 7". The second number is the priority of default messages, setting it to 7 makes default messages of too low a priority to be on the console. (Credits to Russell for this)

Signature · 8 lines
Kerry Thompson, CCNA CISSP
Information Systems Security Consultant
http://www.crypt.gen.nz  [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.
#4 lore raw
In reply to lky
Quoted 3 lines · lky

    I have installed selinux-2.4.21 on RedHat9.0. Now I want to login my machine remotely.But I found I can't login with telnet if SElinux is enabled.SElinux don't support telnet?

Telnet is supported, but it appears broken at the moment. Fixing it is on my to-do list.

Signature · 11 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.
#5 lore raw
Quoted 2 lines · Russell Coker

Telnet is supported, but it appears broken at the moment. Fixing it is on my to-do list.

It works on debian unstable.

bastian

Signature · 2 lines
War isn't a good life, but it's life.
		-- Kirk, "A Private Little War", stardate 4211.8