From: nicm Date: Fri, 29 May 2015 12:38:28 +0000 (+0000) Subject: file(1) needs access(/etc/localtime) for localtime(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=545febf0295a474fecd2725ba7891aa18da3bac2;p=openbsd file(1) needs access(/etc/localtime) for localtime(). --- 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 @@ -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 },