From owner-freebsd-hackers Sat Sep 14 20: 2:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3C6A37B400 for ; Sat, 14 Sep 2002 20:02:23 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CA1743E42 for ; Sat, 14 Sep 2002 20:02:23 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id EEC0B3ABD40; Sun, 15 Sep 2002 05:06:33 +0200 (CEST) Date: Sun, 15 Sep 2002 05:06:33 +0200 From: Pawel Jakub Dawidek To: freebsd-hackers@freebsd.org Subject: Re: Changing process informations. Message-ID: <20020915030633.GQ68652@garage.freebsd.pl> References: <20020915030157.GP68652@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="88pBQ1/6ie/nQzMF" Content-Disposition: inline In-Reply-To: <20020915030157.GP68652@garage.freebsd.pl> X-PGP-Key-URL: http://garage.freebsd.pl/jules.pgp X-OS: FreeBSD 4.6-STABLE i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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