summaryrefslogtreecommitdiffstats
path: root/usr.bin/killall
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2000-12-25 19:26:07 +0000
committerps <ps@FreeBSD.org>2000-12-25 19:26:07 +0000
commitaca59bd7bc05593addeebaed8040c0c7f44192d0 (patch)
tree7f9e2a0a03a86c4b42becca00fd7beab7384d658 /usr.bin/killall
parent7da3a08277c6f08405758747e5a0a9fe1b1213a4 (diff)
downloadFreeBSD-src-aca59bd7bc05593addeebaed8040c0c7f44192d0.zip
FreeBSD-src-aca59bd7bc05593addeebaed8040c0c7f44192d0.tar.gz
Use the real user ID so non-root users can kill setuid processes
they started. PR: 23356 Submitted by: Maxim Konovalov <maxim@macomnet.ru>
Diffstat (limited to 'usr.bin/killall')
-rw-r--r--usr.bin/killall/killall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c
index b74d712..c91ea95 100644
--- a/usr.bin/killall/killall.c
+++ b/usr.bin/killall/killall.c
@@ -248,7 +248,7 @@ main(int ac, char **av)
miblen = 3;
if (user && mib[2] == KERN_PROC_ALL) {
- mib[2] = KERN_PROC_UID;
+ mib[2] = KERN_PROC_RUID;
mib[3] = uid;
miblen = 4;
}
OpenPOWER on IntegriCloud