All of lore.kernel.org
 help / color / mirror / Atom feed
From: dE <de.techno@gmail.com>
To: selinux@tycho.nsa.gov
Subject: system_u process does not have system_r
Date: Mon, 19 May 2014 22:19:04 +0530	[thread overview]
Message-ID: <537A3600.7050006@gmail.com> (raw)

I've mapped user 'de' to system_u --

semanage login -l

Login Name           SELinux User         MLS/MCS Range Service

__default__          unconfined_u         s0-s0:c0.c1023       *
de                   system_u             s0-s0:c0.c1023       *
root                 unconfined_u         s0-s0:c0.c1023       *
system_u             system_u             s0-s0:c0.c1023       *

However the processes do not have system_r role, as a result the type 
value of many context fail to set cause unconfined_r is not allowed to 
have that type.

ps auxZ | grep nano
system_u:unconfined_r:unconfined_t:s0 de   544  0.0  0.3 115024 1568 
pts/1    S+   22:11   0:00 nano
system_u:unconfined_r:unconfined_t:s0 root 611  0.0  0.1 112632 888 
pts/0    S+   22:14   0:00 grep --color=auto nano

Actually unconfined_r role is not allowed for the user --

seinfo -uuser_u -x
    user_u
       default level: s0
       range: s0
       roles:
          object_r
          user_r

                 reply	other threads:[~2014-05-19 16:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=537A3600.7050006@gmail.com \
    --to=de.techno@gmail.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.