[NTLUG:Discuss] Setting coredumpsize in X
Brian
briank at hex.net
Thu Oct 14 08:13:34 CDT 1999
Steve Baker wrote:
> I wonder if the problem is that X runs suid-root - and maybe root gets
> to ignore the limits you set with the limit command?
...
> Hence you'd need to set soft limits up in your login script or
> manually before doing a 'startx'. Of course if you login via X
> rather than on a dumb terminal then 'startx', you are probably
> screwed anyway.
Tried what you suggested, still doesn't work.
I think setrlimit is broken on my machine. I found in the tcsh source
code where setrlimit is called in respose to a 'limit' shell command. I
hacked a change so that both the current and max limits were set when
'limit' was called. Finally, I set both the suid and guid stickly bits
on the compiled executable. Then I ran it, as both root and user.
There is absolutely no effect on what getrlimit returns after a limit
command, whether I'm root or user.
I'm running 2.0.38. If someone is running this version, I'd very much
appreciate it if you could do a 'limit coredumpsize unlimited' [tcsh] or
'ulimit -c unlimited' [bash] and tell me if you are *unable* to change
the coredumpsize limit.
--Brian
More information about the Discuss
mailing list