summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-02 01:44:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-02 01:44:53 +0000
commitd030e0e77c85166781ab552b06f03700713424a3 (patch)
tree2d2d10a41e4711778a88c25206ea4dab1db7aac8 /sys/kern
parent46a7bfe50c934d01dc813e3b269582f118eddbe8 (diff)
changed my mind; block spwd.db, force drop-through to pwd.db for processes under tame
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_tame.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_tame.c b/sys/kern/kern_tame.c
index b79a33a70b9..717cc9861af 100644
--- a/sys/kern/kern_tame.c
+++ b/sys/kern/kern_tame.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_tame.c,v 1.47 2015/10/01 23:50:37 doug Exp $ */
+/* $OpenBSD: kern_tame.c,v 1.48 2015/10/02 01:44:52 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -505,8 +505,6 @@ tame_namei(struct proc *p, char *origpath)
/* getpw* and friends need a few files */
if ((p->p_tamenote == TMN_RPATH) &&
(p->p_p->ps_tame & TAME_GETPW)) {
- if (strcmp(path, "/etc/spwd.db") == 0)
- return (0);
if (strcmp(path, "/etc/pwd.db") == 0)
return (0);
if (strcmp(path, "/etc/group") == 0)