From owner-freebsd-hackers Sun Sep 15 3:49:45 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 6EB9137B400 for ; Sun, 15 Sep 2002 03:49:43 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD68043E6E for ; Sun, 15 Sep 2002 03:49:42 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 9DE8E3ABD40; Sun, 15 Sep 2002 12:53:59 +0200 (CEST) Date: Sun, 15 Sep 2002 12:53:59 +0200 From: Pawel Jakub Dawidek To: Stefan `Sec` Zehl Cc: freebsd-hackers@freebsd.org Subject: Re: Changing process informations. Message-ID: <20020915105359.GS68652@garage.freebsd.pl> References: <20020915030157.GP68652@garage.freebsd.pl> <20020915093015.GA9912@matrix.42.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="WTbgq2twYBxfsYA6" Content-Disposition: inline In-Reply-To: <20020915093015.GA9912@matrix.42.org> 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 --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