From 545febf0295a474fecd2725ba7891aa18da3bac2 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 29 May 2015 12:38:28 +0000 Subject: [PATCH] file(1) needs access(/etc/localtime) for localtime(). --- usr.bin/file/sandbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }, -- 2.20.1