Page 1 of 1
Is there a permissive mode?
Posted:
Wed Jan 05, 2005 2:49 pm
by Prezu
Hello all.
When I've installed grsecurity I couldn't use many programs that must be able to run (the qmal for example). So the solution is to eneble the full system learning mode. But gradm doesn't get all needed informations because programs are killed when they try to do something they can't. So my question is: is there any equivalent of permissive mode of selinux, so the gradm could collect oll the needed informations? Or is there any other proper way to do it?
Posted:
Wed Jan 05, 2005 4:55 pm
by spender
What programs are being killed? The learning mode does not kill them. If it's PaX killing them (java for instance) then you need to chpax those binaries, but this has nothing to do with the learning system.
-Brad
Posted:
Thu Jan 06, 2005 6:13 pm
by Prezu
tcpserver is every time killed due to resource overstep while the learning mode is enabled. I enable the learning mode like:
gradm -F -L /the/path/to/the/learning/log
sample log:
Dec 20 06:27:13 localhost kernel: grsec: attempted resource overstep by requesting 2973696 for RLIMIT_AS against limit 2000
000 by /usr/local/bin/tcpserver[tcpserver:31029] uid/euid:0/0 gid/egid:0/0, parent /package/admin/daemontools-0.76/command/
supervise[supervise:389] uid/euid:0/0 gid/egid:0/0
Posted:
Thu Jan 06, 2005 6:19 pm
by spender
grsecurity doesn't set resource limits while in learning mode. That resource limit must have been set by the application, and the same log would be seen even if the learning mode is disabled.
-Brad
Posted:
Thu Jan 06, 2005 6:30 pm
by Prezu
I always could ulimit tcpserver in it's starting script, but then the policy wouldn't be that restrictive.
So now as I understand grsec shouldn't kill processes (because one trys to braking grsec's restrictions) during learning mode. Is thet right?
Thanks for help.
Posted:
Thu Jan 06, 2005 6:32 pm
by spender
That's correct. Any problems in applications during learning is not the result of learning.
-Brad