From: doug Date: Tue, 13 Oct 2015 00:03:42 +0000 (+0000) Subject: Pledge "fattr" request should allow fchflags(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0b92220eefc91f4e08325b44c2fd956ff8f9adbb;p=openbsd Pledge "fattr" request should allow fchflags(). "add it" deraadt@ --- 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,