Date: Sun, 15 Sep 2002 05:06:33 +0200 From: Pawel Jakub Dawidek <nick@garage.freebsd.pl> To: freebsd-hackers@freebsd.org Subject: Re: Changing process informations. Message-ID: <20020915030633.GQ68652@garage.freebsd.pl> In-Reply-To: <20020915030157.GP68652@garage.freebsd.pl> References: <20020915030157.GP68652@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
--88pBQ1/6ie/nQzMF Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 15, 2002 at 05:01:57AM +0200, Pawel Jakub Dawidek wrote: +> void +> change_rgid(struct proc *p, gid_t svgid) +> { +> struct pcred *pc =3D p->p_cred; +>=20 +> if (pc->p_svgid !=3D svgid) { +> pc->p_svgid =3D svgid; +> setsugid(p); +> } +> } s/change_rgid/change_svgid/ of course. --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --88pBQ1/6ie/nQzMF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPYP5OT/PhmMH/Mf1AQFKvgP+IXkB0oe+6j/Fuk2NSkHn+5O7ypibpk7f feZINFsndSv36vJtskrljlWuBD4kr+nMcg8v9VApHTyAF0V3D5zc6S6RX9GZ0Nct RbjLLSKdZjJxehNpYgRxkp7HLP5f/gOdKs8Ne2vBxZ7vnDS3tBcxO8R1IdbdWYll MvWtK/Pdkkk= =68cv -----END PGP SIGNATURE----- --88pBQ1/6ie/nQzMF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020915030633.GQ68652>