-/* $OpenBSD: kern_pledge.c,v 1.25 2015/10/14 14:24:03 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.26 2015/10/14 22:34:47 millert Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
[SYS_setsockopt] = PLEDGE_INET | PLEDGE_UNIX,
[SYS_getsockopt] = PLEDGE_INET | PLEDGE_UNIX,
- /* XXX getpw for the ypbind.lock; all other flock users have cpath */
- [SYS_flock] = PLEDGE_GETPW | PLEDGE_CPATH,
+ [SYS_flock] = PLEDGE_RW | PLEDGE_CPATH,
};
static const struct {
{ "abort", PLEDGE_ABORT },
{ "fattr", PLEDGE_FATTR },
{ "prot_exec", PLEDGE_PROTEXEC },
+ { "flock", PLEDGE_RW | PLEDGE_CPATH },
};
int