Il 17/02/2009 00:05, Corey Hickey ha scritto:
> [...]
> 
> That's a good idea, and I tried it, but I think that's not quite how
> limits.conf works. I haven't found anything that says this plainly, but
> I'm pretty sure the following are true:
> 
> * Limits are applied at login by the pam_limits module, which reads
>   /etc/security/limits.conf. See pam_limits(8).

You're right, I missed that.

> * Otherwise, limits are inherited from the parent process, and not
>   changed by a setuid() call.
> 
> [...]
> 
>>From my testing, 4208 KB is the minimum needed for me, but I don't know
> what a good comfortable value would be. I'm attaching a patch that sets
> it to 8 MB, but maybe it would be good to go even higher.
> 
> The diff.diff file is the diff of the original 10_drop_privileges.diff
> and the new one.
> 
> -Corey

Thank you Corey.

I'd try to apply your patch, which seems just fine: I think 8 MB is a
reasonable value to start with.

Ahmed, do you agree?


Maurizio



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to