Carlos Carvalho wrote:I've just seen the possibility of storing pax flags in extended attributes in 3.1.8. That looks excellent, and would perhaps solve my problem with chromium not working with paxctl -C I mentioned in the firefox thread.
However, which flags should have which values?
first of all, the xattr control method is still experimental, so things can still change in the future but if you feel adventurous, you can try it like this:
setfattr -n user.pax.flags -v "me" /path/to/binary will turn off MPROTECT and EMUTRAMP on the given binary (EMUTRAMP has to be added because PT_PAX_FLAGS disables it by default too and the two markings must enable/disable the same PaX features). the values you can store in user.pax.flags are the same ones that paxctl reports as well, except for x/X which the xattr control method doesn't understand (as it's an obsolete PaX feature).
Also, it seems the directories containing the files need the sticky bit set...
uhm, the user xattr namespace is accessible to the file owner without restrictions.