diff options
author | 2013-03-20 15:24:17 +0000 | |
---|---|---|
committer | 2013-03-20 15:24:17 +0000 | |
commit | 42db40a40ac79acdae2e4e7e0e5fc7328f4c167e (patch) | |
tree | a142eb8c8ff6294b1d0e1cee7b2c136dbd9a8d7c | |
parent | As non-root, whenever netstat is about to print out a kernel pointer... (diff) | |
download | wireguard-openbsd-42db40a40ac79acdae2e4e7e0e5fc7328f4c167e.tar.xz wireguard-openbsd-42db40a40ac79acdae2e4e7e0e5fc7328f4c167e.zip |
revert, that restriction is already enforced the right way
-rw-r--r-- | usr.sbin/procmap/procmap.c | 5 |
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. |