Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2000 16:40:02 -0800 (PST)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/23356: killall(1) refuses to kill root-owned SUID-binary started by non-root
Message-ID:  <200012120040.eBC0e2193790@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/23356; it has been noted by GNATS.

From: Maxim Konovalov <maxim@macomnet.ru>
To: freebsd-gnats-submit@FreeBSD.org, eugen@iname.com
Cc:  
Subject: Re: bin/23356: killall(1) refuses to kill root-owned SUID-binary
 started by non-root
Date: Tue, 12 Dec 2000 03:35:55 +0300 (MSK)

 Hi,
 
 There is a typo in the killall.c. Here is the patch:
 
 *** killall.c.orig	Tue Dec 12 00:00:01 2000
 --- killall.c	Tue Dec 12 02:49:25 2000
 ***************
 *** 248,254 ****
   	miblen = 3;
   
   	if (user && mib[2] == KERN_PROC_ALL) {
 ! 		mib[2] = KERN_PROC_UID;
   		mib[3] = uid;
   		miblen = 4;
   	}
 --- 248,254 ----
   	miblen = 3;
   
   	if (user && mib[2] == KERN_PROC_ALL) {
 ! 		mib[2] = KERN_PROC_RUID;
   		mib[3] = uid;
   		miblen = 4;
   	}
 
 
 The bin/17498 is obsolete, so you can close it too.
 
 - - maxim
 
 --
 Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
 phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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