Re: svn commit: r211393 - head/lib/libutil

[ Available lists | Index of svn-src-all | Month of Aug 2010 | Week of 16 Aug 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dag-Erling Smørgrav <des@des.no>
Date
16 Aug 2010 11:41:10
Subject
Re: svn commit: r211393 - head/lib/libutil
Message-ID
86mxsm4wff.fsf@ds4.des.no


[ Hide this part ]
Dag-Erling Smorgrav <des@FreeBSD.org> writes:
> Log:
> In setusercontext(), do not apply user settings unless running as the
> user in question (usually but not necessarily because we were called
> with LOGIN_SETUSER). This plugs a hole where users could raise their
> resource limits and expand their CPU mask.

Note that this commit semi-intentionally introduces another bug: in some
cases, the user's limits will not be applied at all. This is by far the
lesser of two evils, and is easy (albeit time-consuming) to fix.

DES
--
Dag-Erling Smrgrav - des@des.no


Elapsed time: 0.301 seconds