summaryrefslogtreecommitdiff
path: root/usr.bin/nfsstat
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2001-03-22 17:39:57 +0000
committerThomas Moestl <tmm@FreeBSD.org>2001-03-22 17:39:57 +0000
commitf8d15d5230cfa1b0abc3dce86bb1a01f93e74ae3 (patch)
tree80d7d46f95806eca75653b8b15098426399fa952 /usr.bin/nfsstat
parented873335b7e832afa4f64034001aa3387000b6b3 (diff)
downloadsrc-test2-f8d15d5230cfa1b0abc3dce86bb1a01f93e74ae3.tar.gz
src-test2-f8d15d5230cfa1b0abc3dce86bb1a01f93e74ae3.zip
Notes
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 6d79ce7fd972..cfe0e1efb432 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 dc4a625f2235..3c08a551a78e 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,