summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Marie <semarie@cvs.openbsd.org>2015-09-19 20:39:07 +0000
committerSebastien Marie <semarie@cvs.openbsd.org>2015-09-19 20:39:07 +0000
commit579353319059792ab9013a12c79e222bfd25e159 (patch)
tree660a09c09dc57813a802aeba807e435a588cefc4
parenteff5e0b729ea7b99a77b9551547ea62eef9c2f0c (diff)
In the internal conversion of _TM_* to TAME_*, some bits were lost for
"dns" and "cmsg" in the `tamereq' array. Restore the previous behaviour. ok guenther@
-rw-r--r--sys/kern/kern_tame.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_tame.c b/sys/kern/kern_tame.c
index 625f6da0449..bdce41a5d9e 100644
--- a/sys/kern/kern_tame.c
+++ b/sys/kern/kern_tame.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_tame.c,v 1.41 2015/09/13 17:08:03 guenther Exp $ */
+/* $OpenBSD: kern_tame.c,v 1.42 2015/09/19 20:39:06 semarie Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -218,8 +218,8 @@ static const struct {
{ "tmppath", TAME_SELF | TAME_RW | TAME_TMPPATH },
{ "inet", TAME_SELF | TAME_RW | TAME_INET },
{ "unix", TAME_SELF | TAME_RW | TAME_UNIX },
- { "cmsg", TAME_UNIX | TAME_CMSG },
- { "dns", TAME_MALLOC | TAME_DNSPATH },
+ { "cmsg", TAME_SELF | TAME_RW | TAME_UNIX | TAME_CMSG },
+ { "dns", TAME_SELF | TAME_MALLOC | TAME_DNSPATH },
{ "ioctl", TAME_IOCTL },
{ "getpw", TAME_SELF | TAME_MALLOC | TAME_RW | TAME_GETPW },
{ "proc", TAME_PROC },