* Just a quick thought.
@ 2009-08-04 11:20 Daniel J Walsh
2009-08-04 12:05 ` Christopher J. PeBenito
2009-08-04 12:44 ` Paul Howarth
0 siblings, 2 replies; 4+ messages in thread
From: Daniel J Walsh @ 2009-08-04 11:20 UTC (permalink / raw)
To: SE Linux
Now that we have labelling equivalence should we just add a
/lib64 /lib
/usr/lib64 /usr/lib
/usr/local/lib64 /usr/local/lib
Seems we could simplify policy and prevent many mistakes. Might speed up regex matching a little bit.
grep 64 /etc/selinux/targeted/contexts/files/file_contexts | wc
259 735 18694
If were were more agressive
/usr/local /usr
/opt /usr
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Just a quick thought.
2009-08-04 11:20 Just a quick thought Daniel J Walsh
@ 2009-08-04 12:05 ` Christopher J. PeBenito
2009-08-04 15:15 ` Daniel J Walsh
2009-08-04 12:44 ` Paul Howarth
1 sibling, 1 reply; 4+ messages in thread
From: Christopher J. PeBenito @ 2009-08-04 12:05 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: SE Linux
On Tue, 2009-08-04 at 07:20 -0400, Daniel J Walsh wrote:
> Now that we have labelling equivalence should we just add a
>
> /lib64 /lib
> /usr/lib64 /usr/lib
> /usr/local/lib64 /usr/local/lib
>
> Seems we could simplify policy and prevent many mistakes. Might speed up regex matching a little bit.
>
>
> grep 64 /etc/selinux/targeted/contexts/files/file_contexts | wc
> 259 735 18694
>
>
> If were were more agressive
>
> /usr/local /usr
> /opt /usr
Makes sense to me. But is there a way for the policy to specify an
equivalence, or is it currently limited to the semanage cli?
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Just a quick thought.
2009-08-04 11:20 Just a quick thought Daniel J Walsh
2009-08-04 12:05 ` Christopher J. PeBenito
@ 2009-08-04 12:44 ` Paul Howarth
1 sibling, 0 replies; 4+ messages in thread
From: Paul Howarth @ 2009-08-04 12:44 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: SE Linux
On 04/08/09 12:20, Daniel J Walsh wrote:
> Now that we have labelling equivalence should we just add a
>
> /lib64 /lib
> /usr/lib64 /usr/lib
> /usr/local/lib64 /usr/local/lib
>
> Seems we could simplify policy and prevent many mistakes. Might speed up regex matching a little bit.
It would also remove the need for the /lib(64)? style regexes
altogether, which are unfortunately close to the start of the pathname
and cause these patterns to score poorly when being considered as a
possible match for a filename.
> grep 64 /etc/selinux/targeted/contexts/files/file_contexts | wc
> 259 735 18694
>
>
> If were were more aggressive
>
> /usr/local /usr
That looks sane.
> /opt /usr
Don't agree with that one. /opt tends to fill with things like
/opt/appname and only then the regular structure underneath there with
/bin, /man etc.
Paul.
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Just a quick thought.
2009-08-04 12:05 ` Christopher J. PeBenito
@ 2009-08-04 15:15 ` Daniel J Walsh
0 siblings, 0 replies; 4+ messages in thread
From: Daniel J Walsh @ 2009-08-04 15:15 UTC (permalink / raw)
To: Christopher J. PeBenito; +Cc: SE Linux
On 08/04/2009 08:05 AM, Christopher J. PeBenito wrote:
> On Tue, 2009-08-04 at 07:20 -0400, Daniel J Walsh wrote:
>> Now that we have labelling equivalence should we just add a
>>
>> /lib64 /lib
>> /usr/lib64 /usr/lib
>> /usr/local/lib64 /usr/local/lib
>>
>> Seems we could simplify policy and prevent many mistakes. Might speed up regex matching a little bit.
>>
>>
>> grep 64 /etc/selinux/targeted/contexts/files/file_contexts | wc
>> 259 735 18694
>>
>>
>> If were were more agressive
>>
>> /usr/local /usr
>> /opt /usr
>
> Makes sense to me. But is there a way for the policy to specify an
> equivalence, or is it currently limited to the semanage cli?
>
Currently it is CLI, but it should probably be merged into the sandbox, some how.
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-04 15:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-04 11:20 Just a quick thought Daniel J Walsh
2009-08-04 12:05 ` Christopher J. PeBenito
2009-08-04 15:15 ` Daniel J Walsh
2009-08-04 12:44 ` Paul Howarth
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.