]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Exit cleanly when built for address sanitization on Linux
authorRoy Marples <roy@marples.name>
Wed, 5 Feb 2025 13:35:49 +0000 (13:35 +0000)
committerRoy Marples <roy@marples.name>
Wed, 5 Feb 2025 13:35:49 +0000 (13:35 +0000)
src/privsep-linux.c

index e3485a2efdfcc7940452a29578b9e77696e7fef2..c4172c835616b29bd026f60930dead7eafb78582 100644 (file)
@@ -444,6 +444,10 @@ static struct sock_filter ps_seccomp_filter[] = {
 #ifdef __NR_shutdown
        SECCOMP_ALLOW(__NR_shutdown),
 #endif
+#ifdef __NR_sigaltstack
+       /* Allows a clean exit when compiled for address sanitization. */
+       SECCOMP_ALLOW(__NR_sigaltstack),
+#endif
 #ifdef __NR_statx
        SECCOMP_ALLOW(__NR_statx),
 #endif