From 0b92220eefc91f4e08325b44c2fd956ff8f9adbb Mon Sep 17 00:00:00 2001 From: doug Date: Tue, 13 Oct 2015 00:03:42 +0000 Subject: [PATCH] Pledge "fattr" request should allow fchflags(). "add it" deraadt@ --- sys/kern/kern_pledge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index 7edad82e086..d898d77d186 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.17 2015/10/12 23:16:23 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.18 2015/10/13 00:03:42 doug Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -203,6 +203,7 @@ const u_int pledge_syscalls[SYS_MAXSYSCALL] = { [SYS_fchmodat] = PLEDGE_FATTR, [SYS_chflags] = PLEDGE_FATTR, [SYS_chflagsat] = PLEDGE_FATTR, + [SYS_fchflags] = PLEDGE_FATTR, [SYS_chown] = PLEDGE_FATTR, [SYS_fchownat] = PLEDGE_FATTR, [SYS_lchown] = PLEDGE_FATTR, -- 2.20.1