summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2013-03-20 15:24:17 +0000
committertedu <tedu@openbsd.org>2013-03-20 15:24:17 +0000
commit42db40a40ac79acdae2e4e7e0e5fc7328f4c167e (patch)
treea142eb8c8ff6294b1d0e1cee7b2c136dbd9a8d7c
parentAs non-root, whenever netstat is about to print out a kernel pointer... (diff)
downloadwireguard-openbsd-42db40a40ac79acdae2e4e7e0e5fc7328f4c167e.tar.xz
wireguard-openbsd-42db40a40ac79acdae2e4e7e0e5fc7328f4c167e.zip
revert, that restriction is already enforced the right way
-rw-r--r--usr.sbin/procmap/procmap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/procmap/procmap.c b/usr.sbin/procmap/procmap.c
index ff6c954d01c..80e7471deb9 100644
--- a/usr.sbin/procmap/procmap.c
+++ b/usr.sbin/procmap/procmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procmap.c,v 1.43 2013/03/20 14:53:35 deraadt Exp $ */
+/* $OpenBSD: procmap.c,v 1.44 2013/03/20 15:24:17 tedu Exp $ */
/* $NetBSD: pmap.c,v 1.1 2002/09/01 20:32:44 atatat Exp $ */
/*
@@ -256,9 +256,6 @@ main(int argc, char *argv[])
}
}
- if (getuid() && pid == -1)
- errx(1, "only root may look at the kernel");
-
/*
* Discard setgid privileges if not the running kernel so that bad
* guys can't print interesting stuff from kernel memory.