summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hogan <doug@cvs.openbsd.org>2015-10-13 00:03:43 +0000
committerDoug Hogan <doug@cvs.openbsd.org>2015-10-13 00:03:43 +0000
commitee01bd4851c82140124fd75a4a98017fb266fdf2 (patch)
tree8c1e7be1bc092652aed771bc5ce535816e107b61
parent1b2deb5c5c30f7fe0c6f953d9fab5867d378de04 (diff)
Pledge "fattr" request should allow fchflags().
"add it" deraadt@
-rw-r--r--sys/kern/kern_pledge.c3
1 files changed, 2 insertions, 1 deletions
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 <nicm@openbsd.org>
@@ -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,