-/* $OpenBSD: file.c,v 1.43 2015/05/29 12:33:41 nicm Exp $ */
+/* $OpenBSD: file.c,v 1.44 2015/05/29 15:58:34 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
#include <fcntl.h>
#include <pwd.h>
#include <stdlib.h>
+#include <time.h>
#include <unistd.h>
#include "file.h"
struct input_ack *ack;
pid_t pid, parent;
+ tzset();
+
for (;;) {
opt = getopt_long(argc, argv, "bchiLsW", longopts, NULL);
if (opt == -1)
-/* $OpenBSD: sandbox.c,v 1.6 2015/05/29 12:38:28 nicm Exp $ */
+/* $OpenBSD: sandbox.c,v 1.7 2015/05/29 15:58:34 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
} 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 },