Date: Tue, 17 Sep 2002 19:07:15 +0200 From: Pawel Jakub Dawidek <nick@garage.freebsd.pl> To: =?iso-8859-2?Q?Micha=B3?= Belczyk <diavul@bsd.krakow.pl> Cc: freebsd-hackers@freebsd.org Subject: Re: Changing process informations. Message-ID: <20020917170715.GJ68652@garage.freebsd.pl> In-Reply-To: <20020917090932.GA319@bsd.krakow.pl> References: <20020915030157.GP68652@garage.freebsd.pl> <20020916110734.GE68652@garage.freebsd.pl> <20020917090932.GA319@bsd.krakow.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020917170715.GJ68652>