summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsemarie <semarie@openbsd.org>2016-06-28 04:27:58 +0000
committersemarie <semarie@openbsd.org>2016-06-28 04:27:58 +0000
commit48a911365a6344d49748474d5347bda0b19d8d1a (patch)
treeea243753fe6823fc716039f93ac49b32141aaa7b
parentsync (diff)
downloadwireguard-openbsd-48a911365a6344d49748474d5347bda0b19d8d1a.tar.xz
wireguard-openbsd-48a911365a6344d49748474d5347bda0b19d8d1a.zip
in pledgereq (the array for doing correspondance between textual promise as in pledge(2) and internal PLEDGE_* flag), the flags member should be a uint64_t and not a int.
ok deraadt@
-rw-r--r--sys/kern/kern_pledge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 047225c0933..f72f27d1d44 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.172 2016/06/27 16:49:45 jsing Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.173 2016/06/28 04:27:58 semarie Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -355,7 +355,7 @@ const uint64_t pledge_syscalls[SYS_MAXSYSCALL] = {
static const struct {
char *name;
- int flags;
+ uint64_t flags;
} pledgereq[] = {
{ "audio", PLEDGE_AUDIO },
{ "cpath", PLEDGE_CPATH },