Displaying 2 results from an estimated 2 matches for "__nr_time".
Did you mean:
__nr_vtime
2015 Feb 25
2
[openssh with openssl cryptodev engine] sshd killed by seccomp filter
...is forbiden by the seccomp filter.
If you check the openssl engine code, it use ioctl on /dev/crypto.
The following patch solve the issue:
--- sandbox-seccomp-filter.c.old 2015-02-24 14:52:01.000000000 +0100
+++ sandbox-seccomp-filter.c 2015-02-24 15:45:08.000000000 +0100
@@ -98,6 +98,7 @@
#ifdef __NR_time /* not defined on EABI ARM */
SC_ALLOW(time),
#endif
+ SC_ALLOW(ioctl),
SC_ALLOW(read),
SC_ALLOW(write),
SC_ALLOW(close),
Thanks
2023 Jan 26
0
[klibc:time64] time: Use clock_* system calls for time-of-day and sleep
...;
+ if (clock_gettime(CLOCK_REALTIME, &ts))
+ return -1;
+ }
+
+ return 0;
+}
diff --git a/usr/klibc/time.c b/usr/klibc/time.c
index a0c366b9..e8129316 100644
--- a/usr/klibc/time.c
+++ b/usr/klibc/time.c
@@ -6,8 +6,6 @@
#include <sys/time.h>
#include <sys/syscall.h>
-#ifndef __NR_time
-
time_t time(time_t * t)
{
struct timeval tv;
@@ -19,5 +17,3 @@ time_t time(time_t * t)
return (time_t) tv.tv_sec;
}
-
-#endif