summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-03-20 15:24:18 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-03-20 15:24:18 +0000
commite55f52e1cd041d093107602d1efacd5e726c0dc2 (patch)
tree7a1f7c569ae94684667756b7945ac7c7b4c8e46f /usr.sbin
parentee95d82cdbfa3c5c8c020f5de350edb64e707709 (diff)
revert, that restriction is already enforced the right way
Diffstat (limited to 'usr.sbin')
-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.