From owner-freebsd-hackers Tue Sep 17 10:24:28 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 BE7F437B404 for ; Tue, 17 Sep 2002 10:24:18 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 595B6440A8 for ; Tue, 17 Sep 2002 10:02:54 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 9F0383ABB65; Tue, 17 Sep 2002 19:07:16 +0200 (CEST) Date: Tue, 17 Sep 2002 19:07:15 +0200 From: Pawel Jakub Dawidek To: =?iso-8859-2?Q?Micha=B3?= Belczyk Cc: freebsd-hackers@freebsd.org Subject: Re: Changing process informations. Message-ID: <20020917170715.GJ68652@garage.freebsd.pl> References: <20020915030157.GP68652@garage.freebsd.pl> <20020916110734.GE68652@garage.freebsd.pl> <20020917090932.GA319@bsd.krakow.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="szn/SQ7qrxPzVmtp" Content-Disposition: inline In-Reply-To: <20020917090932.GA319@bsd.krakow.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 --szn/SQ7qrxPzVmtp Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 17, 2002 at 11:09:32AM +0200, Micha=B3 Belczyk wrote: +> root@vanity ~#echo blah > /tmp/file +> root@vanity ~#chmod 604 /tmp/file +> root@vanity ~#ls -l /tmp/file +> -rw----r-- 1 root wheel 5 17 Wrz 11:02 /tmp/file +>=20 +> diavul@vanity ~$id +> uid=3D666(diavul) gid=3D666(diavul) groups=3D666(diavul), 0(wheel) +> diavul@vanity ~$cat /tmp/file +> cat: /tmp/file: Permission denied Yes, I decide to call setsugid() because this and this: /* * XXX A little bit lazy here. We could test if anything has * changed before crcopy() and setting P_SUGID. */ If "anything" really means "anything". --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --szn/SQ7qrxPzVmtp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPYdhQz/PhmMH/Mf1AQE02QP/Z7+0jZOBmUdxmwUgTxQDp1P4VGlvZ8ah RVmgfwLP4cXd8P+dAH18kpYI5XaTHpeOozds3eAw8mp/1IgbScq4CcVvX+ETkPQW TAR0qI2TaDoBWcTq+P7nVpGXdmOz83DBmD7VxmG1fbadnqjrKtSPknSYhpykVD5F PxQNDjl5PEA= =u+Cc -----END PGP SIGNATURE----- --szn/SQ7qrxPzVmtp-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message