Skip to contentSkip to conversation

Just a quick thought.

DISCUSSION Daniel J Walsh 3 participants 4 messages Aug 4, 2009 SELinux security module

lore
Share & tools
lore
#0 lore raw

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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 9 lines · Daniel J Walsh

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.

Quoted 8 lines

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?

Signature · 9 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
In reply to Daniel J Walsh
Quoted 7 lines · Daniel J Walsh

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.

Quoted 7 lines

grep 64 /etc/selinux/targeted/contexts/files/file_contexts | wc

     259     735   18694

If were were more aggressive

/usr/local /usr

That looks sane.

Quoted 1 line

/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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw
In reply to Christopher J. PeBenito
Quoted 14 lines · Christopher J. PeBenito
Quoted 13 lines · Daniel J Walsh

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
Quoted 8 lines
Quoted 4 lines

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 [email protected] with the words "unsubscribe selinux" without quotes as the message.