From 48a911365a6344d49748474d5347bda0b19d8d1a Mon Sep 17 00:00:00 2001 From: semarie Date: Tue, 28 Jun 2016 04:27:58 +0000 Subject: [PATCH] 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@ --- sys/kern/kern_pledge.c | 4 ++-- 1 file 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 @@ -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 }, -- 2.20.1