From owner-freebsd-hackers Sun Sep 15 2:30:24 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 C81D437B400 for ; Sun, 15 Sep 2002 02:30:22 -0700 (PDT) Received: from matrix.42.org (matrix.42.org [194.246.250.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63D5443E7B for ; Sun, 15 Sep 2002 02:30:21 -0700 (PDT) (envelope-from sec@42.org) Received: (from sec@localhost) by matrix.42.org (8.8.8/8.8.5) id LAA10103 (sender ); Sun, 15 Sep 2002 11:30:16 +0200 (CEST) Date: Sun, 15 Sep 2002 11:30:15 +0200 From: Stefan `Sec` Zehl To: Pawel Jakub Dawidek Cc: freebsd-hackers@freebsd.org Subject: Re: Changing process informations. Message-ID: <20020915093015.GA9912@matrix.42.org> References: <20020915030157.GP68652@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <20020915030157.GP68652@garage.freebsd.pl> User-Agent: Mutt/1.3.27i I-love-doing-this: really X-Modeline: vim:set ts=8 sw=4 smarttab tw=72 si noic notitle: Accept-Languages: de, en X-URL: http://sec.42.org/ 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 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Sep 15, 2002 at 05:01:57AM +0200, Pawel Jakub Dawidek wrote: > Hello hackers... > > 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: [...] 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) CU, Sec -- If architects built buildings like programmers build programs, the first woodpecker to come along would destroy civilization. --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: 2.6.3i iQEVAwUBPYRTH55z6wpNWO5RAQE8Qgf+PLPkj49gEWHa9cYoscXqV5tY4wyKMeFj yDDhHndrh+Yj/HjHawjp/Xz2Nfbi993bWtmxkSOXQ0fee+faaRJQ7fvvDC5bj60z lo5ToigW/b+LnR+6rg72I2+3QRcbZ4bxEzeXEzTwyDrnWGiSj6PBdy5BQr6N0Q4b q12leqvn4YuQvQSEBeguUCycv+yGl1wkfU4c4E9WnAMqnSHYAcb+EZ6chZ+Nimgn wHNKDqkt3ZBMrNDmusggMM2z7SxoIsviSnbPGi9tnIefccNe6JeVruqo2PsUT3WT Jk2YWktbdshEPfZm150BwZrjNp98QWILDT5u4waYjE6/eOcbaSud1w== =0XVP -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message