Page 1 of 1

/usr/bin/prelink denied exec mmap

PostPosted: Fri Sep 16, 2005 5:05 am
by muaddib
Hi all,

I'm having a little problem with prelink

Here is the logged line :
kernel: grsec: (default:D:/usr/sbin/prelink) denied executable mmap of
/etc/prelink.cache by /usr/sbin/prelink[prelink:16709] uid/euid:0/0 gid/egid:0/0, parent
/etc/cron.daily/prelink[prelink:28394] uid/euid:0/0 gid/egid:0/0

And here is what i wrote in policy file (i know there are too many allowed rights, i was just trying to get it working)

subject /etc/cron.daily/prelink {
/dev/log rw
/var/log rwcdal
/etc rcw
/etc/prelink.cache rcdwx
/usr/sbin/prelink rx
/sbin r
/etc/ld.so.cache rx
}

subject /etc/cron.daily/prelink:/usr/sbin/prelink oO {
/dev/log rw
/var/log rwcdal
/etc rcw
/etc/prelink.cache rlcdwx
/sbin r
/etc/ld.so.cache rx
}


May be it's an easy question but if someone could help, i would be grateful