Skip to contentSkip to conversation

Running sshd shells in sysadm_t

DISCUSSION Justin Smith 2 participants 2 messages Feb 6, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

I noticed that sshd shells are, by default, run in user_t and are allowed to be run in sysadm_t as well.

Is there some way to make them run in sysadm_t by default when certain users log in?

Signature · 4 lines
--
You have received this message because you are subscribed to the selinux 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 5 lines · Justin Smith

I noticed that sshd shells are, by default, run in user_t and are allowed to be run in sysadm_t as well.

Is there some way to make them run in sysadm_t by default when certain users log in?

This is determined by the /etc/security/default_context file. At present, sshd simply uses the default security context for the user (rather than prompting for a context), since it can be used non-interactively for remote commands or remote copies.

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

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.