All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] home directory user context question
@ 2010-02-24 23:51 Justin Mattock
       [not found] ` <5A5E55DF96F73844AF7DFB0F48721F0F52E446D3E8@EUSAACMS0703.eamcs.ericsson.se>
  0 siblings, 1 reply; 4+ messages in thread
From: Justin Mattock @ 2010-02-24 23:51 UTC (permalink / raw)
  To: refpolicy

I seem to be doing something wrong with the latest refpolicy
from git with configuring the user/login

I have in policy/users
gen_user(name,system_u, sysadm_r staff_r user_r, s0, s0 -
mls_systemhigh, mcs_allcats)

then after reboot I:
/usr/sbin/semanage login -a -s name:name

heres /usr/sbin/semanage user -l

                Labeling   MLS/       MLS/
SELinux User    Prefix     MCS Level  MCS Range
SELinux Roles

name          system_u   s0         s0-s0:c0.c255
staff_r user_r sysadm_r
root            sysadm     s0         s0-s0:c0.c255
staff_r sysadm_r
staff_u         staff      s0         s0-s0:c0.c255
staff_r sysadm_r
sysadm_u        sysadm     s0         s0-s0:c0.c255                  sysadm_r
system_u        user       s0         s0-s0:c0.c255                  system_r
unconfined_u    unconfined s0         s0-s0:c0.c255
unconfined_r
user_u          user       s0         s0                             user_r


then /usr/sbin/semanage login -l

Login Name                SELinux User              MLS/MCS Range

__default__               user_u                    s0
name                    name                    s0
root                      root                      s0-s0:c0.c255
system_u                  system_u                  s0-s0:c0.c255

 for some reason my home directory is stuck with this context:
name:name user:object_r:user_home_t:s0  109 Feb 24 13:52 somefile
                   ^

if I have the system in enforcing mode I can not access any of the files
that have the start of the context "user:"
but if I chcon name:object_r:user_home_t:s0
                      ^
I can access my info or change directories
am I missing something with my setup for user/login
with semanage that gets the contexts to have "user" at
the beginning?

-- 
Justin P. Mattock

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

end of thread, other threads:[~2010-02-25 18:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 23:51 [refpolicy] home directory user context question Justin Mattock
     [not found] ` <5A5E55DF96F73844AF7DFB0F48721F0F52E446D3E8@EUSAACMS0703.eamcs.ericsson.se>
2010-02-25 17:59   ` Justin P. mattock
2010-02-25 18:10     ` Christopher J. PeBenito
2010-02-25 18:17       ` 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.