diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-06-02 09:17:09 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-06-02 09:17:09 +1000 |
commit | e9887d1c37940b9d6c72d55cfad7a40de4c6e28d (patch) | |
tree | f4a9916159cd7ad5f2b11707590618b9a0408b19 | |
parent | 65cf74079a2d563c4ede649116a13ca78c8cc2a4 (diff) |
- (dtucker) [sandbox-seccomp-filter.c] Allow clock_gettimeofday.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | sandbox-seccomp-filter.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -60,6 +60,7 @@ | |||
60 | with the equivalent calls to free. | 60 | with the equivalent calls to free. |
61 | - (dtucker) [configure.ac misc.c] Look for clock_gettime in librt and fall | 61 | - (dtucker) [configure.ac misc.c] Look for clock_gettime in librt and fall |
62 | back to time(NULL) if we can't find it anywhere. | 62 | back to time(NULL) if we can't find it anywhere. |
63 | - (dtucker) [sandbox-seccomp-filter.c] Allow clock_gettimeofday. | ||
63 | 64 | ||
64 | 20130529 | 65 | 20130529 |
65 | - (dtucker) [configure.ac openbsd-compat/bsd-misc.h] bz#2087: Add a null | 66 | - (dtucker) [configure.ac openbsd-compat/bsd-misc.h] bz#2087: Add a null |
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c index e12418399..cc1465305 100644 --- a/sandbox-seccomp-filter.c +++ b/sandbox-seccomp-filter.c | |||
@@ -91,6 +91,7 @@ static const struct sock_filter preauth_insns[] = { | |||
91 | SC_DENY(open, EACCES), | 91 | SC_DENY(open, EACCES), |
92 | SC_ALLOW(getpid), | 92 | SC_ALLOW(getpid), |
93 | SC_ALLOW(gettimeofday), | 93 | SC_ALLOW(gettimeofday), |
94 | SC_ALLOW(clock_gettime), | ||
94 | #ifdef __NR_time /* not defined on EABI ARM */ | 95 | #ifdef __NR_time /* not defined on EABI ARM */ |
95 | SC_ALLOW(time), | 96 | SC_ALLOW(time), |
96 | #endif | 97 | #endif |