From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Eric Paris <eparis@redhat.com>
Cc: selinux@tycho.nsa.gov, method@manicmethod.com, sds@tycho.nsa.gov
Subject: Re: [PATCH] checkpolicy: add support for using last path component in type transition rules
Date: Thu, 31 Mar 2011 09:11:39 -0400 [thread overview]
Message-ID: <4D947D8B.3090307@tresys.com> (raw)
In-Reply-To: <1301412177.14296.42.camel@localhost.localdomain>
On 03/29/11 11:22, Eric Paris wrote:
> On Tue, 2011-03-29 at 10:48 -0400, Christopher J. PeBenito wrote:
>> On 03/28/11 14:00, Eric Paris wrote:
>>> This patch adds support for using the last path component as part of the
>>> information in making labeling decisions for new objects. A example
>>> rule looks like so:
>>>
>>> type_transition unconfined_t etc_t:file system_conf_t eric;
>>>
>>> This rule says if unconfined_t creates a file in a directory labeled
>>> etc_t and the last path component is "eric" (no globbing, no matching
>>> magic, just exact strcmp) it should be labeled system_conf_t.
>>>
>>> The kernel and policy representation does not have support for such
>>> rules in conditionals, and thus policy explicitly notes that fact if
>>> such a rule is added to a conditional.
>>
>> Is there any plan for getting conditional support?
>
> I don't plan on doing it. I hate conditionals, wish they would die, and
> suggest we should move to all modules instead.
Thats not going to happen. If you can modify the policy (i.e. insert
and remove modules), you can change it in any way. Whereas conditionals
are well defined and being able to change a boolean can be constrained
easily.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
--
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:[~2011-03-31 13:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-28 18:00 [PATCH] checkpolicy: add support for using last path component in type transition rules Eric Paris
2011-03-29 9:28 ` Kohei Kaigai
2011-03-29 15:38 ` Eric Paris
2011-03-29 14:48 ` Christopher J. PeBenito
2011-03-29 15:22 ` Eric Paris
2011-03-31 13:11 ` Christopher J. PeBenito [this message]
2011-03-31 11:45 ` Kohei Kaigai
2011-04-01 14:56 ` Kohei Kaigai
2011-04-13 15:50 ` Kohei Kaigai
2011-05-02 18:51 ` Steve Lawrence
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=4D947D8B.3090307@tresys.com \
--to=cpebenito@tresys.com \
--cc=eparis@redhat.com \
--cc=method@manicmethod.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.