Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2001 17:00:58 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        current@FreeBSD.ORG
Subject:   Re: set*uid broken?
Message-ID:  <20010606170058.A73881@sunbay.com>
In-Reply-To: <200106060918.f569IG003175@Magelan.Leidinger.net>; from Alexander@Leidinger.net on Wed, Jun 06, 2001 at 11:18:15AM %2B0200
References:  <200106060918.f569IG003175@Magelan.Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010606170058.A73881>