summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-05-29 12:38:28 +0000
committernicm <nicm@openbsd.org>2015-05-29 12:38:28 +0000
commit545febf0295a474fecd2725ba7891aa18da3bac2 (patch)
treefc077b63b726ab6d86bfc38e97e549949cac9ecc
parentOnly mmap() on regular files; mmap() on /dev/stdin will happily map as (diff)
downloadwireguard-openbsd-545febf0295a474fecd2725ba7891aa18da3bac2.tar.xz
wireguard-openbsd-545febf0295a474fecd2725ba7891aa18da3bac2.zip
file(1) needs access(/etc/localtime) for localtime().
-rw-r--r--usr.bin/file/sandbox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/file/sandbox.c b/usr.bin/file/sandbox.c
index 5c6472d3622..383183551a7 100644
--- a/usr.bin/file/sandbox.c
+++ b/usr.bin/file/sandbox.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sandbox.c,v 1.5 2015/05/18 11:57:52 deraadt Exp $ */
+/* $OpenBSD: sandbox.c,v 1.6 2015/05/29 12:38:28 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -40,6 +40,7 @@ static const struct
} allowed_syscalls[] = {
{ SYS_open, SYSTR_POLICY_NEVER }, /* for strerror */
+ { SYS_access, SYSTR_POLICY_PERMIT },
{ SYS_close, SYSTR_POLICY_PERMIT },
{ SYS_exit, SYSTR_POLICY_PERMIT },
{ SYS_fcntl, SYSTR_POLICY_PERMIT },