Date: Thu, 19 Aug 2010 16:36:44 +0200 From: Attilio Rao <attilio@freebsd.org> To: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= <des@des.no> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r211393 - head/lib/libutil Message-ID: <AANLkTikVMVpM=E3x6i=zGnCqPrTis=kyA3PzhwotB=H0@mail.gmail.com> In-Reply-To: <86bp924w3w.fsf@ds4.des.no> References: <201008161132.o7GBWKhx097183@svn.freebsd.org> <86mxsm4wff.fsf@ds4.des.no> <86bp924w3w.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
2010/8/16 Dag-Erling Smørgrav <des@des.no>: > Dag-Erling Smørgrav <des@des.no> writes: >> 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. > > Specifically, each of the files listed below needs to be audited. Those > that already call setusercontext() with the LOGIN_SETUSER flag set are > fine. Those that don't need to do so either instead of or shortly after > calling setuid(). [snip] > -- > libexec/ftpd/ftpd.c: setusercontext(NULL, getpwuid(0), 0, > libexec/ftpd/ftpd.c- LOGIN_SETPRIORITY|LOGIN_SETRESOURCES|LOGIN_SETUMASK| > libexec/ftpd/ftpd.c- LOGIN_SETMAC); > -- > libexec/ftpd/ftpd.c: setusercontext(lc, pw, 0, > libexec/ftpd/ftpd.c- LOGIN_SETLOGIN|LOGIN_SETGROUP|LOGIN_SETPRIORITY| > libexec/ftpd/ftpd.c- LOGIN_SETRESOURCES|LOGIN_SETUMASK|LOGIN_SETMAC); It seems to me that ftpd doesn't need any change, do you agree? Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikVMVpM=E3x6i=zGnCqPrTis=kyA3PzhwotB=H0>
