PT_GNU_STACK RWE
Some of those are causing trouble, just like java. They produce the same kind of denials as a legacy domain where you say READ implies EXEC for backwards compatibility.
In particular mplayer, lame, inkscape and gpg don't work anymore. What needs to be done?
[root@cobra ~]# for DIR in echo $PATH|tr ':' ' '; do for FILE in $DIR/*; do if [ ! -z "readelf -l $FILE 2>/dev/null |grep GNU_STACK|grep RWE" ]; then echo "$FILE"; fi; done;done;/sbin/netplugd/usr/bin/eu-nm/usr/bin/gmplayer/usr/bin/gnatbind/usr/bin/gnatls/usr/bin/gnatmake/usr/bin/gpg/usr/bin/gpgv/usr/bin/inkscape/usr/bin/inkview/usr/bin/lame/usr/bin/mencoder/usr/bin/mp3rtp/usr/bin/mp3x/usr/bin/mplayer/usr/bin/ocamlc.opt/usr/bin/ocamldep.opt/usr/bin/ocamldoc.opt/usr/bin/ocamllex.opt/usr/bin/ocamlopt.opt
Signature · 8 lines
Ivan Gyurdiev <[email protected]> Cornell University -- 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 3 lines · Ivan Gyurdiev
Some of those are causing trouble, just like java. They produce the same kind of denials as a legacy domain where you say READ implies EXEC for backwards compatibility.
Yes, PT_GNU_STACK RWE means that it has been marked as requiring executable stack, so you end up with the same issues as in the case where it has no marking and is assumed to require it for backward compatibility. In general, you want to check each one to see whether it truly requires executable stack or just needs to have its build fixed, and if the former, move into a separate domain. Or, alternatively, introduce the legacycompat support I mentioned in a previous email to have SELinux only check based on the requested protection, not the kernel-augmented one.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- 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 3 lines · Ivan Gyurdiev
Some of those are causing trouble, just like java. They produce the same kind of denials as a legacy domain where you say READ implies EXEC for backwards compatibility.
Note btw that the kernel didn't use to enable read-implies-exec behavior for PT_GNU_STACK RWE; only for a missing PT_GNU_STACK, but this was changed recently upstream to deal with compatibility problems.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- 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.