Skip to contentSkip to conversation

after update with selinux userspace, and refpolicy cant login as my username and specified context.

refpolicy Justin Mattock 2 participants 4 messages Oct 25, 2009 – Oct 26, 2009

lore
Share & tools
lore
#0 lore raw

just pulled userspace tools update, and
refpolicy. seems I'm might be missing something
new.

id -Z shows
user_u:user_r:user_t

is there a boolean that I'm missing?
(BTW I have namespace.so enabled)

Signature · 1 line
Justin P. Mattock
#1 lore raw
Quoted 11 lines · Justin Mattock

just pulled userspace tools update, and
refpolicy. seems I'm might be missing something
new.

id -Z shows
user_u:user_r:user_t

is there a boolean that I'm missing?
(BTW I have namespace.so enabled)

So after getting some rest, and coming back to this problem opening up gitk the first commit showing itself seemed to be the problem somehow/someway:

Author: Chris PeBenito<[email protected]> 2009-10-23 08:20:07
Committer: Chris PeBenito<[email protected]> 2009-10-23 08:20:07
Parent: a1a45de06e41c529ad521058e438e20b5907cd45 (reorganize a92ee50)
Branches: master, remotes/origin/master
Follows: RELEASE_2_20090730
Precedes:

Install the seusers file for monolithic policy.

when this commit is in the policy I get after logging in:
user_u:user_r:user_t
reverting this patch gives me
name:role_r:role_t

Wondering if Im doing something wrong with my build of policy/users

gen_user(name, system_u, sysadm_r staff_r user_r, s0, s0 - mls_systemhigh, mcs_allcats)

Justin P. Mattock

#2 lore raw
Quoted 30 lines · Justin P. Mattock
Quoted 11 lines · Justin Mattock

just pulled userspace tools update, and
refpolicy. seems I'm might be missing something
new.

id -Z shows
user_u:user_r:user_t

is there a boolean that I'm missing?
(BTW I have namespace.so enabled)

So after getting some rest, and coming back to this problem opening up gitk the first commit showing itself seemed to be the problem somehow/someway:

Author: Chris PeBenito<[email protected]> 2009-10-23 08:20:07
Committer: Chris PeBenito<[email protected]> 2009-10-23 08:20:07
Parent: a1a45de06e41c529ad521058e438e20b5907cd45 (reorganize a92ee50)
Branches: master, remotes/origin/master
Follows: RELEASE_2_20090730
Precedes:

Install the seusers file for monolithic policy.

when this commit is in the policy I get after logging in:
user_u:user_r:user_t
reverting this patch gives me
name:role_r:role_t

Quoted 4 lines

Wondering if Im doing something wrong with my build of policy/users

gen_user(name, system_u, sysadm_r staff_r user_r, s0, s0 - mls_systemhigh, mcs_allcats)

You need to add name:role to the seusers file, otherwise you get the __default__ seuser (user_u). If the seusers file is missing, it falls back to trying linuxuser as the seuser, then falls back to user_u.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#3 lore raw
Quoted 37 lines · Christopher J. PeBenito
Quoted 35 lines · Justin P. Mattock
Quoted 4 lines · Justin Mattock

just pulled userspace tools update, and
refpolicy. seems I'm might be missing something
new.

Quoted 8 lines

id -Z shows
user_u:user_r:user_t

is there a boolean that I'm missing?
(BTW I have namespace.so enabled)

So after getting some rest, and coming back to this problem opening up gitk the first commit showing itself seemed to be the problem somehow/someway:

Author: Chris PeBenito<[email protected]> 2009-10-23 08:20:07
Committer: Chris PeBenito<[email protected]> 2009-10-23 08:20:07
Parent: a1a45de06e41c529ad521058e438e20b5907cd45 (reorganize a92ee50)
Branches: master, remotes/origin/master
Follows: RELEASE_2_20090730
Precedes:

Install the seusers file for monolithic policy.

when this commit is in the policy I get after logging in:
user_u:user_r:user_t
reverting this patch gives me
name:role_r:role_t

Wondering if Im doing something wrong with my build of policy/users

Quoted 8 lines
Quoted 2 lines

gen_user(name, system_u, sysadm_r staff_r user_r, s0, s0 - mls_systemhigh, mcs_allcats)

You need to add name:role to the seusers file, otherwise you get the __default__ seuser (user_u). If the seusers file is missing, it falls back to trying linuxuser as the seuser, then falls back to user_u.

Alright cool.

Justin P. Mattock