Subject: Re: check resource limits with exec(3)?
To: Iain Hibbert <plunky@rya-online.net>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 06/07/2006 21:31:12
On Tue, Jun 06, 2006 at 08:21:21PM +0100, Iain Hibbert wrote:
> 
> If it is actually a problem, then I would say that the correct place to
> check it would be under setuid() somewhere (probably do_setresuid() in
> sys/kern/kern_prot.c?), and return EPROCLIM if the operation would exceed
> limits.  I couldnt say if that would have other implications though..

All the places where those calls are assumed to succeed because there
is no way they can fail...

	David

-- 
David Laight: david@l8s.co.uk