From owner-freebsd-current Wed Jun 6 7: 1:34 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id AE8B537B401 for ; Wed, 6 Jun 2001 07:01:27 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f56E0wc75952; Wed, 6 Jun 2001 17:00:58 +0300 (EEST) (envelope-from ru) Date: Wed, 6 Jun 2001 17:00:58 +0300 From: Ruslan Ermilov To: Alexander Leidinger Cc: current@FreeBSD.ORG Subject: Re: set*uid broken? Message-ID: <20010606170058.A73881@sunbay.com> Mail-Followup-To: Alexander Leidinger , current@FreeBSD.ORG References: <200106060918.f569IG003175@Magelan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200106060918.f569IG003175@Magelan.Leidinger.net>; from Alexander@Leidinger.net on Wed, Jun 06, 2001 at 11:18:15AM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Fixed in sys/kern/kern_prot.c,v 1.93. Thanks for the report! On Wed, Jun 06, 2001 at 11:18:15AM +0200, Alexander Leidinger wrote: > Hi, > > (3) root@ttyp0 # ktrace fetchnews > fetchnews: must be run as news or root > > (4) root@ttyp0 # id > uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty), 5(operator), 20(staff), 31(guest) > > (5) root@ttyp0 # ll `which fetchnews` > -r-xr-xr-x 1 root wheel 58996 Apr 6 15:32 /usr/local/sbin/fetchnews* > > (6) root@ttyp0 # ldd `which fetchnews` > /usr/local/sbin/fetchnews: > libc.so.5 => /usr/lib/libc.so.5 (0x28074000) > > (7) root@ttyp0 # kdump |grep -e "[ug]id" > 1860 fetchnews CALL geteuid > 1860 fetchnews RET geteuid 0 > 1860 fetchnews CALL getuid > 1860 fetchnews RET getuid 0 > 1860 fetchnews CALL getegid > 1860 fetchnews RET getegid 0 > 1860 fetchnews CALL getgid > 1860 fetchnews RET getgid 0 > 1860 fetchnews CALL geteuid > 1860 fetchnews RET geteuid 0 > 1860 fetchnews CALL setregid(0xffffffff,0x8) > 1860 fetchnews RET setregid 0 > 1860 fetchnews CALL setreuid(0xffffffff,0x8) > 1860 fetchnews RET setreuid 0 > 1860 fetchnews CALL geteuid > 1860 fetchnews RET geteuid 8 > 1860 fetchnews CALL getegid > 1860 fetchnews RET getegid 0 > > -current from yesterday, leafnode+-2.12, ktrace.out available on request > (I didn't want to mail 21k to everyone). > > I noticed some mails about changed set*uid behavior, is this a buggy > program, or is it a bug in -current? > > Bye, > Alexander. -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message