Page 1 of 1

gradm: segmentation fault

PostPosted: Sat Sep 14, 2002 4:25 pm
by msi
hello i activated nearly everything for grsecurity in my kernel config.
after reboot with new kernel (in the init scripts gradm -E was called)
i couldnt enter admin mode. always a segmentation fault.

my logs:

Sep 14 21:19:30 merkur grsec: more mmap exec attempts, logging disabled for 30 seconds
Sep 14 21:53:55 merkur Sequencer SCB Info: 0(c 0x60, s 0x7, l 0, t 0xff) 1(c 0x64, s 0x7, l 0, t 0x7) 2(c 0x64, s 0x7, l 0, t 0x3) 3(c 0x64, s 0x7, l 0, t 0x1) 4(c 0x64, s 0x7, l 0, t 0x2) 5(c 0x60, s 0x7, l 0, t 0xff) 6(c 0x60, s 0x7, l 0, t 0xff) 7(c 0x64, s 0x7, l 0, t 0x0) 8(c 0x64, s 0x7, l 0, t 0xc) 9(c 0x60, s 0x7, l 0, t 0xff) 10(c 0x0, s 0xff, l 255, t 0xff) 11(c 0x0, s 0xff, l 255, t 0xff) 12(c 0x0, s 0xff,<1>grsec: attempt to mmap [08:02:22517] gradm executable by (gradm:1175) UID(0) EUID(0), parent (bash:15547) UID(0) EUID(0)
Sep 14 21:54:39 merkur grsec: more mmap exec attempts, logging disabled for 30 seconds

im using debian 3.0 woody/stable and gradm from sid/unstable if this is important

PostPosted: Sat Sep 14, 2002 8:29 pm
by msi
Sep 15 02:26:39 merkur grsec: attempt to mmap [08:02:22517] gradm executable by (gradm:2837) UID(0) EUID(0), parent (bash:892) UID(0) EUID(0)

how can i permit gradm to use mmap? I think the acl deny the access because before i load them i can use gradm.

PostPosted: Sun Sep 15, 2002 12:32 pm
by spender
use the current cvs of gradm and grsecurity. You shouldn't have any problems.

-Brad

PostPosted: Sun Sep 15, 2002 12:35 pm
by msi
im using linux-2.4.19 patched with the newest stable grsecurity patch (1.9.6)

gradm -v:
1.4.

i recognized that the problem only occur when following acl rules are set:

/ {
[....]
/etc/ppp/pap-secrets h
[....]
}

[....]

/usr/sbin/pppd {
/etc/ppp/pap-secrets ro
}

/usr/sbin/pppoe {
/etc/ppp/pap-secrets ro
}

if i lock dsl-provider too,
i cann't execute programs in /sbin
or all programms any more.

PostPosted: Sun Sep 15, 2002 12:37 pm
by msi
use the current cvs of gradm and grsecurity. You shouldn't have any problems.


is that a well-known bug in earlier versions?

PostPosted: Sun Sep 15, 2002 12:37 pm
by spender
I'm aware of the problem. It was fixed in one of the early RCs of 1.9.7. current cvs of grsecurity and gradm will fix it