Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
selinux login - Unable to get valid context for [user]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dkJ2
n00b
n00b


Joined: 05 Jun 2017
Posts: 1

PostPosted: Mon Jun 05, 2017 2:11 pm    Post subject: selinux login - Unable to get valid context for [user] Reply with quote

hey folks,

I'm trying to setup selinux on my box, but whenever I login to a user who is mapped to the selinux user user_u, login gives the error "Unable to get valid context for [user]"

When I change the mapping to e.g. staff_u, the error disappear and the selinux context is good (with id -Z)

semanage login -l

Code:
__default__  user_u
root root


id -Z

Code:
system_u:system_r:kernel_t



cat /var/log/messages
Code:
pam_selinux(login): Unable to get valid context for john



-------------------------------------------------------------
vv works vv
-------------------------------------------------------------

semanage login -a -s staff_u john

id -Z

Code:
staff_u:sysadm_r:sysadm_t


Anyone has any idea why this is hapening? My hypothesis is that pam_selinux cannot change the context for users defined in the default policy, why?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum