]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: allow gettimeofday for SECCOMP
authorRoy Marples <roy@marples.name>
Sat, 10 Oct 2020 14:06:59 +0000 (15:06 +0100)
committerRoy Marples <roy@marples.name>
Sat, 10 Oct 2020 14:06:59 +0000 (15:06 +0100)
We need it for logging.

src/privsep-linux.c

index 789c9d80b3e06a8db54f8e904960b404e7b1482a..5d35ae2c050deb810032ba093e9b6c5af1edbbdb 100644 (file)
@@ -226,6 +226,9 @@ static struct sock_filter ps_seccomp_filter[] = {
 #ifdef __NR_fstat
        SECCOMP_ALLOW(__NR_fstat),
 #endif
+#ifdef __NR_gettimeofday
+       SECCOMP_ALLOW(__NR_gettimeofday),
+#endif
 #ifdef __NR_getpid
        SECCOMP_ALLOW(__NR_getpid),
 #endif