Date: Sun, 15 Sep 2002 12:53:59 +0200 From: Pawel Jakub Dawidek <nick@garage.freebsd.pl> To: Stefan `Sec` Zehl <sec@42.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Changing process informations. Message-ID: <20020915105359.GS68652@garage.freebsd.pl> In-Reply-To: <20020915093015.GA9912@matrix.42.org> References: <20020915030157.GP68652@garage.freebsd.pl> <20020915093015.GA9912@matrix.42.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--WTbgq2twYBxfsYA6 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 15, 2002 at 11:30:15AM +0200, Stefan `Sec` Zehl wrote: +> On Sun, Sep 15, 2002 at 05:01:57AM +0200, Pawel Jakub Dawidek wrote: +> > Hello hackers... +> >=20 +> > When I want change process real or effective uid in kld module +> > I got functions change_ruid() and change_euid(). +> > I need change many others informations about process. +> > Correct me if I'm wrong: +> [...] +>=20 +> I'm not sure if that works as you expected. Have you taken care of +> credential sharing? I have once written a program to change the uid/euid +> of a running process (see +> ftp://ftp.42.org/pub/B/presto/presto-1.3.tar.gz), but due to credential +> sharing, this will sometimes effect more than one process of the same +> user (usually a vi started from a shell will inherit the same +> credentials for example) But I use crcopy() funtion to create new credential and those parts of code are taken from system setuid() and setgid() functions... --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --WTbgq2twYBxfsYA6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPYRmxz/PhmMH/Mf1AQGZgQP9Eu/ZjTRTNnMztqF3srOK9NB0uZ5s2iSa bdfsvYEdaHcY5wjIz+BDTF/qaeex7x6G8ZqoipQptF+tbo35tIaqbEADw1gxlXJ7 yJQufdhXNUCQlKE3QKefjb5JR3t6EY2JyK4rUavcbxH8pxlJOqJu5O2xOsFXcEMG 9f5pKJYx8/E= =cf70 -----END PGP SIGNATURE----- --WTbgq2twYBxfsYA6-- 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?20020915105359.GS68652>