From: Daniel J Walsh <dwalsh@redhat.com>
To: "Alexey S." <selinux@udmvt.ru>
Cc: Joe Nall <joe@nall.com>,
jwcart2@tycho.nsa.gov, Casey Schaufler <casey@schaufler-ca.com>,
SELinux <selinux@tycho.nsa.gov>
Subject: Re: Policy infrastructure problems and improvement
Date: Mon, 13 Apr 2009 07:31:11 -0400 [thread overview]
Message-ID: <49E3227F.1010805@redhat.com> (raw)
In-Reply-To: <20090413072810.GQ9889@ruber.office.udmvt.ru>
On 04/13/2009 03:28 AM, Alexey S. wrote:
> On Fri, Apr 10, 2009 at 09:51:46AM -0500, Joe Nall wrote:
>> On Apr 10, 2009, at 7:34 AM, James Carter wrote:
>>
>>> On Thu, 2009-04-09 at 21:19 -0700, Casey Schaufler wrote:
>>>
>>> That's easy to fix. Make the system smaller. ;)
>>>
>>> I think that this would fit under complexity of SElinux policies.
>>>
>>> Again, better layering is needed. It would be nice if I could just
>>> write policy for the particular domains and resources that I cared
>>> about
>>> without having to worry about the policy for the rest of the system.
>>> Unfortunately, policy writing differs from program writing in that
>>> while
>>> different programs that run on a system *share* resources and so it
>>> doesn't matter what the other programs do (for the most part) as long
>>> as
>>> my program gets to use those resources at some point, all of the
>>> policies work together to *control* resources. In the end, you must
>>> have one policy. The question is how to write the policies in a more
>>> layered way and have the policy infrastructure merge the layers
>>> together.
>> audit2allow needs to understand your layers of abstraction or they won't
>> be very useful. I've watched a number of developers in our group stall at
>> the audit2allow policy writing level and never really get the need to
>> understand the system macros and the 'why' of it all.
>>
>> Some of these same developers never get that some avcs are inevitable
>> and blithely grant privilege until they don't have any avcs - granting
>> user_t enormous new privs along the way. We use seinfo to look for
>> attribute diffs and source inspection, but we need better command line
>> tools to look for these issues in an automated way.
>
> Me as policy developer will benefit a lot if there will be a tool, that
> maps m4 macros to allows/denials and allows/denials back to m4 macros.
> The only thing that is available to me now is 'grep -r', but it does not help
> always.
> I would like a system, that will answer my questions like:
> 'What macros can be used to generate these "allows"?' (sorted by the level of invocation)
> 'What macro generate this denies and where it is invoked from?' (sorted the same way)
> 'How the permissions of the domain will be affected if I add/throw out this macro?' (in current context)
> Well, there is some tool, that does that. It is called human memory and experience.
> But sometimes that fails. And it takes a lot of time to (re)gather that experience.
>
> PS: Maybe have I missed something again? That tools will be so much useful.
>
sepolgen is supposed to do this, but it needs some tender loving care.
audit2allow -R
> --
> Alexey S.
>
> --
> 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.
--
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:[~2009-04-13 11:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-09 15:28 Policy infrastructure problems and improvement James Carter
2009-04-10 4:19 ` Casey Schaufler
2009-04-10 12:34 ` James Carter
2009-04-10 14:51 ` Joe Nall
2009-04-10 16:33 ` James Carter
2009-04-10 17:44 ` Joe Nall
2009-04-13 7:28 ` Alexey S.
2009-04-13 11:31 ` Daniel J Walsh [this message]
2009-04-11 2:45 ` Casey Schaufler
2009-04-14 13:31 ` James Carter
2009-04-10 12:43 ` Alexey S
2009-04-10 12:45 ` Stephen Smalley
2009-04-10 14:28 ` Joe Nall
2009-04-13 7:10 ` Alexey S
2009-04-10 13:09 ` Xavier Toth
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=49E3227F.1010805@redhat.com \
--to=dwalsh@redhat.com \
--cc=casey@schaufler-ca.com \
--cc=joe@nall.com \
--cc=jwcart2@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=selinux@udmvt.ru \
/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.