Re: set*uid broken?

2001-06-06 Thread Ruslan Ermilov

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(0x,0x8)
>   1860 fetchnews RET   setregid 0
>   1860 fetchnews CALL  setreuid(0x,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,
[EMAIL PROTECTED]   Sunbay Software AG,
[EMAIL PROTECTED]  FreeBSD committer,
+380.652.512.251Simferopol, Ukraine

http://www.FreeBSD.org  The Power To Serve
http://www.oracle.com   Enabling The Information Age

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



set*uid broken?

2001-06-06 Thread Alexander Leidinger

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(0x,0x8)
  1860 fetchnews RET   setregid 0
  1860 fetchnews CALL  setreuid(0x,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.

-- 
   Reboot America.

http://www.Leidinger.net   Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message