Date: Tue, 31 Oct 2006 22:20:41 +0000 (GMT) From: Robert Watson <rwatson@FreeBSD.org> To: Skip Ford <skip.ford@verizon.net> Cc: arch@FreeBSD.org Subject: Re: New in-kernel privilege API: priv(9) Message-ID: <20061031221615.J96078@fledge.watson.org> In-Reply-To: <20061031212933.GA1001@lucy.pool-70-17-33-65.pskn.east.verizon.net> References: <20061031092122.D96078@fledge.watson.org> <20061031212933.GA1001@lucy.pool-70-17-33-65.pskn.east.verizon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 31 Oct 2006, Skip Ford wrote: > Robert Watson wrote: >> Index: sys/contrib/altq/altq/altq_cdnr.c >> =================================================================== >> RCS file: /zoo/cvsup/FreeBSD-CVS/src/sys/contrib/altq/altq/altq_cdnr.c,v >> retrieving revision 1.2 >> diff -u -r1.2 altq_cdnr.c >> --- sys/contrib/altq/altq/altq_cdnr.c 12 Jun 2004 00:57:20 -0000 1.2 >> +++ sys/contrib/altq/altq/altq_cdnr.c 30 Oct 2006 17:07:54 -0000 >> @@ -1262,7 +1262,9 @@ >> case CDNR_GETSTATS: >> break; >> default: >> -#if (__FreeBSD_version > 400000) >> +#if (__FreeBSD_versoin > 700000) >> + if ((error = priv_check(p, PRIV_ALTQ_MANAGE)) != 0) >> +#elsif (__FreeBSD_version > 400000) >> if ((error = suser(p)) != 0) >> #else >> if ((error = suser(p->p_ucred, &p->p_acflag)) != 0) > > s/versoin/version/ > ... > > Same thing. Fixed in P4 and in my local CVS patch! Thanks, Robert N M Watson Computer Laboratory University of Cambridge
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061031221615.J96078>