Page 1 of 1

denied executable mmap

PostPosted: Thu Jan 23, 2003 9:12 am
by vpolyakov
Me again! :lol:
hopefully the last time i have to bug you people with my petty problems.. im sure i annoyed all of you already

but anyway

Jan 23 07:15:42 dev-null kernel: grsec: denied executable mmap of /dev/zero by (wolf.x86:2123) UID(1002) EUID(1002), parent (wolfmp:2122) UID(1002) EUID(1002)

with the ACL for wolf.x86:

/usr/local/games/wolfenstein/wolf.x86 oOX {
/usr/local/games/wolfenstein/main r
/usr/local/games/wolfenstein
/usr/lib/libGLcore.so.1.0.4191 rx
/usr/X11R6/lib/libXext.so.6.4 rx
/usr/X11R6/lib/libX11.so.6.2 rx
/tmp/.X11-unix/X0 rw
/lib/ld-2.2.5.so x
/home/vpolyakov/.wolf/main r
/home/vpolyakov/.wolf w
/home/vpolyakov/.Xauthority r
/home/vpolyakov
/etc/passwd r
/etc/nsswitch.conf r
/etc/ld.so.cache r
/ r
/opt rx
/home rxw
/mnt rw
/dev
/dev/urandom r
/dev/random r
/dev/zero rw
/dev/input rw
/dev/psaux rw
/dev/nvidiactl rw
/dev/nvidia1 rw
/dev/null rw
/dev/tty0 rw
/dev/tty1 rw
/dev/tty2 rw
/dev/tty3 rw
/dev/tty4 rw
/dev/tty5 rw
/dev/tty6 rw
/dev/tty7 rw
/dev/tty8 rw
/dev/console rw
/dev/tty rw
/dev/pts rw
/dev/ptmx rw
/dev/dsp rw
/dev/mixer rw
/dev/ippp0 rw
/dev/ippp1 rw
/dev/ippp2 rw
/dev/ippp3 rw
/dev/ippp4 rw
/dev/ippp5 rw
/dev/ippp6 rw
/dev/ippp7 rw
/dev/initctl rw
/dev/fd0 r
/dev/cdrom r
/dev/mem h
/dev/kmem h
/dev/port h
/bin rx
/sbin rx
/lib rx
/usr/lib/libGL.so.1 rx
/usr/lib/libGL.so.1.0.4191 rx
/usr rx
/etc rx
/proc rxw
/proc/kcore h
/proc/sys r
/root r
/tmp rw
/var rxw
/var/tmp rw
/var/log r
/boot r
/etc/grsec h
/usr/local/games/wolfenstein/wolf.x86 x
+CAP_ALL
-CAP_LINUX_IMMUTABLE
-CAP_NET_RAW
-CAP_SYS_MODULE
-CAP_SYS_RAWIO
-CAP_MKNOD
}

1.9.9.-rc3
with the latest devel gradm

Thanks!

PostPosted: Thu Jan 23, 2003 10:08 am
by spender
all you have to do is give rwx to /dev/zero. The ACL system won't complain since you have "O" in the subject mode.

-Brad