diff options
author | 2013-06-01 13:15:51 +0000 | |
---|---|---|
committer | 2013-06-01 13:15:51 +0000 | |
commit | a0f898db1c60b07d0936054fd6cc6aa58e8b9f5b (patch) | |
tree | a8aed4bc3859bfd5487f149a2664734e79f349d0 /usr.bin/ssh/sandbox-systrace.c | |
parent | Update asr_hostaliases() to make all necessary checks in the function. (diff) | |
download | wireguard-openbsd-a0f898db1c60b07d0936054fd6cc6aa58e8b9f5b.tar.xz wireguard-openbsd-a0f898db1c60b07d0936054fd6cc6aa58e8b9f5b.zip |
Use clock_gettime(CLOCK_MONOTONIC ...) for ssh timers so that things like
keepalives and rekeying will work properly over clock steps. Suggested by
markus@, "looks good" djm@.
Diffstat (limited to 'usr.bin/ssh/sandbox-systrace.c')
-rw-r--r-- | usr.bin/ssh/sandbox-systrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sandbox-systrace.c b/usr.bin/ssh/sandbox-systrace.c index ff21fcbcc65..6259ed50f51 100644 --- a/usr.bin/ssh/sandbox-systrace.c +++ b/usr.bin/ssh/sandbox-systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sandbox-systrace.c,v 1.6 2012/06/30 14:35:09 markus Exp $ */ +/* $OpenBSD: sandbox-systrace.c,v 1.7 2013/06/01 13:15:52 dtucker Exp $ */ /* * Copyright (c) 2011 Damien Miller <djm@mindrot.org> * @@ -53,6 +53,7 @@ static const struct sandbox_policy preauth_policy[] = { { SYS_exit, SYSTR_POLICY_PERMIT }, { SYS_getpid, SYSTR_POLICY_PERMIT }, { SYS_gettimeofday, SYSTR_POLICY_PERMIT }, + { SYS_clock_gettime, SYSTR_POLICY_PERMIT }, { SYS_madvise, SYSTR_POLICY_PERMIT }, { SYS_mmap, SYSTR_POLICY_PERMIT }, { SYS_mprotect, SYSTR_POLICY_PERMIT }, |