All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] after update with selinux userspace, and refpolicy cant login as my  username and specified context.
@ 2009-10-25  6:59 Justin Mattock
  2009-10-25 19:17 ` Justin P. Mattock
  0 siblings, 1 reply; 4+ messages in thread
From: Justin Mattock @ 2009-10-25  6:59 UTC (permalink / raw)
  To: refpolicy

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)

-- 
Justin P. Mattock

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [refpolicy] after update with selinux userspace, and refpolicy cant login as my  username and specified context.
  2009-10-25  6:59 [refpolicy] after update with selinux userspace, and refpolicy cant login as my username and specified context Justin Mattock
@ 2009-10-25 19:17 ` Justin P. Mattock
  2009-10-26 12:40   ` Christopher J. PeBenito
  0 siblings, 1 reply; 4+ messages in thread
From: Justin P. Mattock @ 2009-10-25 19:17 UTC (permalink / raw)
  To: refpolicy

Justin Mattock wrote:
> 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<cpebenito@tresys.com>   2009-10-23 08:20:07
Committer: Chris PeBenito<cpebenito@tresys.com>   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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [refpolicy] after update with selinux userspace, and refpolicy cant login as my  username and specified context.
  2009-10-25 19:17 ` Justin P. Mattock
@ 2009-10-26 12:40   ` Christopher J. PeBenito
  2009-10-26 16:46     ` Justin P. Mattock
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher J. PeBenito @ 2009-10-26 12:40 UTC (permalink / raw)
  To: refpolicy

On Sun, 2009-10-25 at 19:17 +0000, Justin P. Mattock wrote:
> Justin Mattock wrote:
> > 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<cpebenito@tresys.com>   2009-10-23 08:20:07
> Committer: Chris PeBenito<cpebenito@tresys.com>   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)

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.

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [refpolicy] after update with selinux userspace, and refpolicy cant login as my  username and specified context.
  2009-10-26 12:40   ` Christopher J. PeBenito
@ 2009-10-26 16:46     ` Justin P. Mattock
  0 siblings, 0 replies; 4+ messages in thread
From: Justin P. Mattock @ 2009-10-26 16:46 UTC (permalink / raw)
  To: refpolicy

Christopher J. PeBenito wrote:
> On Sun, 2009-10-25 at 19:17 +0000, Justin P. Mattock wrote:
>    
>> Justin Mattock wrote:
>>      
>>> 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<cpebenito@tresys.com>    2009-10-23 08:20:07
>> Committer: Chris PeBenito<cpebenito@tresys.com>    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)
>>      
>
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-26 16:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-25  6:59 [refpolicy] after update with selinux userspace, and refpolicy cant login as my username and specified context Justin Mattock
2009-10-25 19:17 ` Justin P. Mattock
2009-10-26 12:40   ` Christopher J. PeBenito
2009-10-26 16:46     ` Justin P. Mattock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.