From: Stephen Smalley <sds@tycho.nsa.gov>
To: Dominick Grift <dominick.grift@gmail.com>
Cc: Pavel Roschin <roshin@scriptumplus.ru>, selinux@tycho.nsa.gov
Subject: Re: avtab dense hash table
Date: Thu, 05 Dec 2013 16:16:24 -0500 [thread overview]
Message-ID: <52A0ED28.6050804@tycho.nsa.gov> (raw)
In-Reply-To: <1386258595.2469.18.camel@d30>
On 12/05/2013 10:49 AM, Dominick Grift wrote:
> On Thu, 2013-12-05 at 09:15 -0500, Stephen Smalley wrote:
>
>> So, first, originally the policy was much smaller. I'm personally of
>> the view that people need to take a chainsaw to the refpolicy and look
>> to greatly coalesce domains/types
>
> Could you please give some examples of existing types that you would
> merge or even remove and why. I might be able to find patterns in how
> you decide when its worth to merge types and when not in your opinion. I
> generally like the idea but i could use some inspiration. Where would
> you draw the line and why?
I have a tool for SE for Android (under external/sepolicy/tools -
sepolicy-analyze.c) that analyzes that policy for identical types and
reports them. Also looks for redundant allow rules (allowed by
attribute and individually). Unfortunately the type equivalence
analysis seems to take forever on Fedora policy since it does it by
first expanding the attributes; I have a patch to do it without
requiring full attribute expansion but that fails to identify some
cases. apol also has a types relationship analysis facility that will
let you examine how two types compare, but only a pairwise basis.
We're also planning to extend sepolicy-analyze to not only report
equivalent types but also look for isomorphic types, as we otherwise
never see identical domains due to the unique entrypoint, tmpfs, and
similar relationships.
--
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:[~2013-12-05 21:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-05 9:04 avtab dense hash table Pavel Roschin
2013-12-05 14:15 ` Stephen Smalley
2013-12-05 15:49 ` Dominick Grift
2013-12-05 21:16 ` Stephen Smalley [this message]
2013-12-05 21:37 ` Dominick Grift
2013-12-06 13:51 ` Stephen Smalley
2013-12-06 14:14 ` Daniel J Walsh
2013-12-06 15:46 ` Dominick Grift
2013-12-06 16:01 ` Daniel J Walsh
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=52A0ED28.6050804@tycho.nsa.gov \
--to=sds@tycho.nsa.gov \
--cc=dominick.grift@gmail.com \
--cc=roshin@scriptumplus.ru \
--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.