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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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 = p->p_cred;
+>
+> if (pc->p_svgid != svgid) {
+> pc->p_svgid = svgid;
+> setsugid(p);
+> }
+> }
s/change_rgid/change_svgid/ of course.
--
Pawel Jakub Dawidek
UNIX Systems Administrator
http://garage.freebsd.pl
Am I Evil? Yes, I Am.
[-- Attachment #2 --]
-----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-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020915030633.GQ68652>
