artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b1a0fd
)
oops, namei was never allowing through valid CPATH operations
author
deraadt
<deraadt@openbsd.org>
Tue, 6 Oct 2015 14:38:23 +0000
(14:38 +0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 6 Oct 2015 14:38:23 +0000
(14:38 +0000)
sys/kern/kern_tame.c
patch
|
blob
|
history
diff --git
a/sys/kern/kern_tame.c
b/sys/kern/kern_tame.c
index
75eb3cf
..
5d0370d
100644
(file)
--- a/
sys/kern/kern_tame.c
+++ b/
sys/kern/kern_tame.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kern_tame.c,v 1.
59 2015/10/06 14:02:49
deraadt Exp $ */
+/* $OpenBSD: kern_tame.c,v 1.
60 2015/10/06 14:38:23
deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@
-650,9
+650,10
@@
tame_namei(struct proc *p, char *origpath)
if (p->p_p->ps_tame & TAME_RPATH)
return (0);
-
if (p->p_p->ps_tame & TAME_WPATH)
return (0);
+ if (p->p_p->ps_tame & TAME_CPATH)
+ return (0);
return (tame_fail(p, EPERM, TAME_RPATH));
}