Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2002 13:07:35 +0200
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Changing process informations.
Message-ID:  <20020916110734.GE68652@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

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020916110734.GE68652>