Skip to contentSkip to conversation

default to user_u for new logins (on RHEL6) ?

DISCUSSION Jan-Frode Myklebust 2 participants 2 messages Nov 11, 2010 SELinux security module

lore
Share & tools
lore
#0 lore raw

Our userdatabase is in an LDAP directory, and home directories for these are created on demand by pam_oddjob_mkhomedir on first login. Is there any way of defaulting to create all users as selinux user "user_u" -- instead of the default "unconfined_u" ?

It would be preferable to do this trough PAM, so that it only applies to users affected by password authenticated users (/etc/pam.d/password-auth-ac), and not to any system accounts that are created trough f.ex. RPM.

-jf

--
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 4 lines · Jan-Frode Myklebust

Our userdatabase is in an LDAP directory, and home directories for these are created on demand by pam_oddjob_mkhomedir on first login. Is there any way of defaulting to create all users as selinux user "user_u" -- instead of the default "unconfined_u" ?

i think you want semanage login -m -s user_u -r s0-s0 __default__

Quoted 13 lines

It would be preferable to do this trough PAM, so that it only applies to users affected by password authenticated users (/etc/pam.d/password-auth-ac), and not to any system accounts that are created trough f.ex. RPM.

-jf

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