summaryrefslogtreecommitdiffstats
path: root/usr.bin/nfsstat
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-03-22 17:39:57 +0000
committertmm <tmm@FreeBSD.org>2001-03-22 17:39:57 +0000
commit762cdd7709dd89d14d5fd076930755066a7781f6 (patch)
tree36d929e9dd84e3bfc9efbb13de5899680a228965 /usr.bin/nfsstat
parent0bcfe8027128412ee55d2d08a965d38280a523da (diff)
downloadFreeBSD-src-762cdd7709dd89d14d5fd076930755066a7781f6.zip
FreeBSD-src-762cdd7709dd89d14d5fd076930755066a7781f6.tar.gz
Take setgid kmem away from nfsstat, it has not needed it for some time
now. Approved by: rwatson
Diffstat (limited to 'usr.bin/nfsstat')
-rw-r--r--usr.bin/nfsstat/Makefile3
-rw-r--r--usr.bin/nfsstat/nfsstat.c5
2 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/nfsstat/Makefile b/usr.bin/nfsstat/Makefile
index 6d79ce7..cfe0e1e 100644
--- a/usr.bin/nfsstat/Makefile
+++ b/usr.bin/nfsstat/Makefile
@@ -1,10 +1,9 @@
+# $FreeBSD$
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= nfsstat
CFLAGS+=-DNFS
DPADD= ${LIBKVM}
LDADD= -lkvm
-BINGRP= kmem
-BINMODE=2555
.include <bsd.prog.mk>
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c
index dc4a625..3c08a55 100644
--- a/usr.bin/nfsstat/nfsstat.c
+++ b/usr.bin/nfsstat/nfsstat.c
@@ -142,12 +142,7 @@ main(argc, argv)
}
}
#endif
- /*
- * Discard setgid privileges if not the running kernel so that bad
- * guys can't print interesting stuff from kernel memory.
- */
if (nlistf != NULL || memf != NULL) {
- setgid(getgid());
deadkernel = 1;
if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY,
OpenPOWER on IntegriCloud