Just a quick thought.
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.
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/libSeems 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| wc259 735 18694If 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.
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/libSeems 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| wc259 735 18694If 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.
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/libSeems 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| wc259 735 18694
Quoted 8 lines
Quoted 4 lines
If were were more agressive
/usr/local/usr
/opt /usrMakes 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.