]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Allow fcntl64 and fstat64 to fix ARM32 talking to the controller
authorMatthew Clarkson <mclarkson@reliablecontrols.com>
Fri, 13 Nov 2020 08:22:42 +0000 (08:22 +0000)
committerRoy Marples <roy@marples.name>
Fri, 13 Nov 2020 08:22:42 +0000 (08:22 +0000)
We already allow fcntl and fstat so this is not a problem.

src/privsep-linux.c

index 01f4975cc1bb59d0bf31ae6ee801ff7ae0949554..ed391e7d5b7720a0e33b3ae9c53cf6578fc75620 100644 (file)
@@ -236,9 +236,15 @@ static struct sock_filter ps_seccomp_filter[] = {
 #ifdef __NR_fcntl
        SECCOMP_ALLOW(__NR_fcntl),
 #endif
+#ifdef __NR_fcntl64
+       SECCOMP_ALLOW(__NR_fcntl64),
+#endif
 #ifdef __NR_fstat
        SECCOMP_ALLOW(__NR_fstat),
 #endif
+#ifdef __NR_fstat64
+       SECCOMP_ALLOW(__NR_fstat64),
+#endif
 #ifdef __NR_gettimeofday
        SECCOMP_ALLOW(__NR_gettimeofday),
 #endif