From: Daniel J Walsh <dwalsh@redhat.com>
To: Justin Mattock <justinmattock@gmail.com>
Cc: tresys <refpolicy@oss.tresys.com>, SE-Linux <selinux@tycho.nsa.gov>
Subject: Re: runcon cant really run(constraint issue?)
Date: Thu, 23 Apr 2009 08:39:40 -0400 [thread overview]
Message-ID: <49F0618C.4080101@redhat.com> (raw)
In-Reply-To: <dd18b0c30904220938y781d0009y7c2229aa28952c2e@mail.gmail.com>
On 04/22/2009 12:38 PM, Justin Mattock wrote:
> looking into using runcon
> it seems I'm confronted with an
> avc, that just keeps showing up:
> allow staff_t user_t:process { siginh rlimitinh transition noatsecure };
> (even after adding this to the policy).
>
> What I'm doing is this:
> runcon name:user_r:user_t:s0-s0:c0.c255 firefox
> the initial role I'm in is staff_r(transitioning to user_r for
> firefox to run in)
>
> Does this seem like the right thing to do,
> or do I need to use newrole -r *
> for something like firefox?
>
I guess the correct question is what is your security goal.
You are not currently allowed to transition from a staff_u user to a
user_r role. In order to make this happen you would need to use semange
to make sure your SELinux user "name" had both staff_r and user_r, and
then you would need to add a rule to policy that says staff_r can become
user_r. But transitioning to the new role is probably not what you want.
If your goal is to confine firefox. you would be better off using the
mozilla policy to say when a staff_t type executes mozilla_exec_t it
runs as staff_mozilla_t.
name:staff_r:staff_t -> system_u:object_r:mozilla_exec_t ->
name:staff_r:staff_mozilla_t
Confining mozilla/firefox has a whole bunch of other problems...
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
WARNING: multiple messages have this Message-ID (diff)
From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] runcon cant really run(constraint issue?)
Date: Thu, 23 Apr 2009 08:39:40 -0400 [thread overview]
Message-ID: <49F0618C.4080101@redhat.com> (raw)
In-Reply-To: <dd18b0c30904220938y781d0009y7c2229aa28952c2e@mail.gmail.com>
On 04/22/2009 12:38 PM, Justin Mattock wrote:
> looking into using runcon
> it seems I'm confronted with an
> avc, that just keeps showing up:
> allow staff_t user_t:process { siginh rlimitinh transition noatsecure };
> (even after adding this to the policy).
>
> What I'm doing is this:
> runcon name:user_r:user_t:s0-s0:c0.c255 firefox
> the initial role I'm in is staff_r(transitioning to user_r for
> firefox to run in)
>
> Does this seem like the right thing to do,
> or do I need to use newrole -r *
> for something like firefox?
>
I guess the correct question is what is your security goal.
You are not currently allowed to transition from a staff_u user to a
user_r role. In order to make this happen you would need to use semange
to make sure your SELinux user "name" had both staff_r and user_r, and
then you would need to add a rule to policy that says staff_r can become
user_r. But transitioning to the new role is probably not what you want.
If your goal is to confine firefox. you would be better off using the
mozilla policy to say when a staff_t type executes mozilla_exec_t it
runs as staff_mozilla_t.
name:staff_r:staff_t -> system_u:object_r:mozilla_exec_t ->
name:staff_r:staff_mozilla_t
Confining mozilla/firefox has a whole bunch of other problems...
next prev parent reply other threads:[~2009-04-23 12:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-22 16:38 runcon cant really run(constraint issue?) Justin Mattock
2009-04-22 16:38 ` [refpolicy] " Justin Mattock
2009-04-23 12:39 ` Daniel J Walsh [this message]
2009-04-23 12:39 ` Daniel J Walsh
2009-04-23 12:54 ` Christopher J. PeBenito
2009-04-23 12:54 ` Christopher J. PeBenito
2009-04-23 14:57 ` Justin Mattock
2009-04-23 14:57 ` Justin Mattock
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=49F0618C.4080101@redhat.com \
--to=dwalsh@redhat.com \
--cc=justinmattock@gmail.com \
--cc=refpolicy@oss.tresys.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.