PAX flags in grsec policy ignored in newer patches?
Posted: Thu Jan 03, 2013 8:28 am
With grsec-2.9.1-2.6.32.60-201212271948 I'm having folowing problems running update-grub
I have (in admin role) subject:
(and similar subjects for other grub-* stuff)
It used to work in grsec-2.9-2.6.32.59-201205131656 to allow update-grub to run, but now it doesn't. (only kernel changed in between)
So in grsec-2.9.1-2.6.32.60-201212271948 I've had to enable CONFIG_PAX_PT_PAX_FLAGS and do
However, I much prefer leaving binaries untouched and using /etc/grsec/policy ACLs to override such protection; is it still possible, and if it is, what am I doing wrong?
- Code: Select all
Dec 29 21:31:52 data kernel: PAX: From x.x.x.x: execution attempt in: <anonymous mapping>, 3bc4d473000-3bc4d488000 3fffffea000
Dec 29 21:31:52 data kernel: PAX: terminating task: /usr/sbin/grub-probe(grub-probe):3643, uid/euid: 0/0, PC: 000003bc4d486e60, SP: 000003bc4d486e08
Dec 29 21:31:52 data kernel: PAX: bytes at PC: 41 bb b0 61 40 00 49 ba 50 6e 48 4d bc 03 00 00 49 ff e3 00
Dec 29 21:31:52 data kernel: PAX: bytes at SP-8: 0000000000000000 0000000000402bbb 0000000000000000 0000000000631960 000003bc4d486e60 0000000000406346 0000000000000000 000003bc4d48727f 0000000000000003 000000000040601e 0000000000000000
I have (in admin role) subject:
- Code: Select all
subject /usr/sbin/grub-probe
-PAX_SEGMEXEC
-PAX_PAGEEXEC
(and similar subjects for other grub-* stuff)
It used to work in grsec-2.9-2.6.32.59-201205131656 to allow update-grub to run, but now it doesn't. (only kernel changed in between)
So in grsec-2.9.1-2.6.32.60-201212271948 I've had to enable CONFIG_PAX_PT_PAX_FLAGS and do
- Code: Select all
paxctl -Cpsm /usr/sbin/grub-probe
However, I much prefer leaving binaries untouched and using /etc/grsec/policy ACLs to override such protection; is it still possible, and if it is, what am I doing wrong?