Hi everybody.
I am using grsecurity for quite some time. However, recently I have a problem with setting up user limits (via pam_limits.so) and exim (but I think that any other process would do the same). I tried to figure out where the problem is but so far have no clue. I am running kernel 2.4.21 with respective grsecurity patch, Debian woody stable.
I set a nproc limit (32) for a specific group. When a user from that group tries to do "echo test | mail -s test root" I get:
grsec: attempted resource overstep by requesting X for RLIMIT_NPROC against limit 32 by (exim:21618) UID(0) EUID(8), parent (init:1) UID(0) EUID(0)
grsec: faild fork with errno -11 by exim UID(0) EUID(8), parent (init:1) UID(0) EUID(8)
I figured out that X is the total number of running root's proceses (which is of course more than 32). But I do not know why the fork fails for exim if it has UID 0 end EUID 8 (which is mail) and the limit is set for group users. If I increase the limit to a number higher than the number of running root's proceses, the overstep is not there of course.
Does anybody have an idea why this happens, what is the cause and what is the solution (maybe I miss something obvious)?
Thanks very much in advance.
Rasto.