RLIMIT_NOFILE
Posted: Fri Feb 07, 2003 9:39 am
Hello,
I am getting the following on syslog:
Feb 7 06:31:28 localhost kernel: grsec: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by (squid:1920) UID(99) EUID(99), parent (squid:1916) UID(0) EUID(0)
Feb 7 06:31:28 localhost kernel: grsec: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by (squid:1920) UID(99) EUID(99), parent (squid:1916) UID(0) EUID(0)
Feb 7 06:31:29 localhost kernel: grsec: more attempted resource overstepping, logging disabled for 5 seconds
Feb 7 06:31:35 localhost kernel: grsec: From 90.0.0.6: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by (squid:1920) UID(99) EUID(99), parent (squid:1916) UID(0) EUID(0)
Feb 7 06:31:49 localhost kernel: grsec: From 90.0.0.6: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by (squid:1920) UID(99) EUID(99), parent (squid:1916) UID(0) EUID(0)
Obviously, squid is bailing out with 'Too Many Open Files'. Now, max open files is set 32768 (both hard and soft limits) everywhere. But I have 'NR_OPEN 1024' in /usr/include/linux/limits.h.
Is this where RLIMIT_NOFILE coming from?
How do I set RLIMIT_NOFILE, RLIMIT_STACK?
Thanks in advance!
Tesla
I am getting the following on syslog:
Feb 7 06:31:28 localhost kernel: grsec: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by (squid:1920) UID(99) EUID(99), parent (squid:1916) UID(0) EUID(0)
Feb 7 06:31:28 localhost kernel: grsec: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by (squid:1920) UID(99) EUID(99), parent (squid:1916) UID(0) EUID(0)
Feb 7 06:31:29 localhost kernel: grsec: more attempted resource overstepping, logging disabled for 5 seconds
Feb 7 06:31:35 localhost kernel: grsec: From 90.0.0.6: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by (squid:1920) UID(99) EUID(99), parent (squid:1916) UID(0) EUID(0)
Feb 7 06:31:49 localhost kernel: grsec: From 90.0.0.6: attempted resource overstep by requesting 1024 for RLIMIT_NOFILE against limit 1024 by (squid:1920) UID(99) EUID(99), parent (squid:1916) UID(0) EUID(0)
Obviously, squid is bailing out with 'Too Many Open Files'. Now, max open files is set 32768 (both hard and soft limits) everywhere. But I have 'NR_OPEN 1024' in /usr/include/linux/limits.h.
Is this where RLIMIT_NOFILE coming from?
How do I set RLIMIT_NOFILE, RLIMIT_STACK?
Thanks in advance!
Tesla