From: Eric Paris <eparis@redhat.com>
To: qingtao.cao@windriver.com
Cc: sds@tycho.nsa.gov, selinux@tycho.nsa.gov
Subject: Re: [PATCH] SELinux: allow default source/target selectors for user/role/range
Date: Wed, 07 Mar 2012 09:12:43 -0500 [thread overview]
Message-ID: <1331129563.3040.2.camel@localhost> (raw)
In-Reply-To: <4F56CB36.7000700@windriver.com>
On Wed, 2012-03-07 at 10:43 +0800, Harry Ciao wrote:
>
> On 03/07/2012 08:28 AM, Eric Paris wrote:
> > When new objects are created we have great and flexible rules to
> > determine the type of the new object.
>
> Shouldn't we introduce a default_type for class_datum as well? So far
> the process and various socket classes will inherit the creating
> process's domain, that is, DEFAULT_SOURCE as in your example, whilst for
> any other classes the type of the newly created object will follow the
> containing directory, that is, DEFAULT_TARGET.
>
> Above logic has been hard-coded in security_compute_sid, which is a
> matter of policy and should be moved from security server to refpolicy.
Agreed, but we cannot remove the old defaults. They still need to be
available in case someone loads an old policy. We could create a new
policy capability which when enabled would require policy to define all
of the defaults, but I don't think it's worth it, since any definition
in policy with this new rule type will overwrite the defaults in the
security server.
A mistake I made was only showing examples of this with files. The new
rule syntax is:
default_user { file process } source;
default_range { socket } target low-high;
So the tclass of the created object is part of the decision.
-Eric
--
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.
next prev parent reply other threads:[~2012-03-07 14:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-07 0:28 [PATCH] SELinux: allow default source/target selectors for user/role/range Eric Paris
2012-03-07 2:43 ` Harry Ciao
2012-03-07 14:12 ` Eric Paris [this message]
2012-03-07 8:34 ` Harry Ciao
2012-03-07 14:23 ` Eric Paris
2012-03-07 14:37 ` Stephen Smalley
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=1331129563.3040.2.camel@localhost \
--to=eparis@redhat.com \
--cc=qingtao.cao@windriver.com \
--cc=sds@tycho.nsa.gov \
--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.