From owner-freebsd-hackers Mon Sep 16 4: 3:27 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 C834C37B400 for ; Mon, 16 Sep 2002 04:03:25 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id E466A43E3B for ; Mon, 16 Sep 2002 04:03:24 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 64B7A3ABD40; Mon, 16 Sep 2002 13:07:35 +0200 (CEST) Date: Mon, 16 Sep 2002 13:07:35 +0200 From: Pawel Jakub Dawidek To: freebsd-hackers@freebsd.org Subject: Re: Changing process informations. Message-ID: <20020916110734.GE68652@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="h13GW2gLSV2TxsNR" 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 --h13GW2gLSV2TxsNR 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: Ok, more precise. All functions should be correct, bit I'm not sure here: +> void +> delgroup(struct proc *p, gid_t gid) +> { [...] +> setsugid(p); /* XXX: Have to be here? */ +> } When I'm removing group should I call setsugid() and set P_SUGID flag? I think that in delgroup() this shouln't be done. Am I right? But in other hand setsugid() is always called after setgroups(). --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --h13GW2gLSV2TxsNR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPYW7dj/PhmMH/Mf1AQHrTQP/diN+7OdW5oaOaDkHlHcu7AYlzAx4ERuG +rZ1QAs52Wfm4quswmMKOFV2/H4WKdbJ0ojHkG4/Ytee6941i4YOeyX2WcjrFJLT wSQylyIyvgQRegJxjqj8UpC649Gq+Nt4K1oTdU0pVZylTmfxx8URpXe8ty4Eu0Gr yGfRp4/daWc= =ZgP3 -----END PGP SIGNATURE----- --h13GW2gLSV2TxsNR-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message