aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/linux/fchmodat2-compat.hh
diff options
context:
space:
mode:
authoralois31 <alois1@gmx-topmail.de>2024-05-25 04:21:53 +0000
committerGerrit Code Review <gerrit@lix-systems>2024-05-25 04:21:53 +0000
commitddfe379a6b93c678a9a0845e5c5a85f7e77b1b7d (patch)
treebc99ab3f691eeef509943bdcc83feae60bc39d0e /src/libstore/linux/fchmodat2-compat.hh
parent5b4b216facfb8af2f08c25a4b50fba1e197ca06e (diff)
parentf047e4357b4f7ad66c2e476506bf35cab82e441e (diff)
Merge "libstore/build: always enable seccomp filtering and no-new-privileges" into main
Diffstat (limited to 'src/libstore/linux/fchmodat2-compat.hh')
-rw-r--r--src/libstore/linux/fchmodat2-compat.hh28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/libstore/linux/fchmodat2-compat.hh b/src/libstore/linux/fchmodat2-compat.hh
index b05da6786..6ad8a5578 100644
--- a/src/libstore/linux/fchmodat2-compat.hh
+++ b/src/libstore/linux/fchmodat2-compat.hh
@@ -20,18 +20,16 @@
#pragma once
///@file
-#if HAVE_SECCOMP
-# if defined(__alpha__)
-# define NIX_SYSCALL_FCHMODAT2 562
-# elif defined(__x86_64__) && SIZE_MAX == 0xFFFFFFFF // x32
-# define NIX_SYSCALL_FCHMODAT2 1073742276
-# elif defined(__mips__) && defined(__mips64) && defined(_ABIN64) // mips64/n64
-# define NIX_SYSCALL_FCHMODAT2 5452
-# elif defined(__mips__) && defined(__mips64) && defined(_ABIN32) // mips64/n32
-# define NIX_SYSCALL_FCHMODAT2 6452
-# elif defined(__mips__) && defined(_ABIO32) // mips32
-# define NIX_SYSCALL_FCHMODAT2 4452
-# else
-# define NIX_SYSCALL_FCHMODAT2 452
-# endif
-#endif // HAVE_SECCOMP
+#if defined(__alpha__)
+# define NIX_SYSCALL_FCHMODAT2 562
+#elif defined(__x86_64__) && SIZE_MAX == 0xFFFFFFFF // x32
+# define NIX_SYSCALL_FCHMODAT2 1073742276
+#elif defined(__mips__) && defined(__mips64) && defined(_ABIN64) // mips64/n64
+# define NIX_SYSCALL_FCHMODAT2 5452
+#elif defined(__mips__) && defined(__mips64) && defined(_ABIN32) // mips64/n32
+# define NIX_SYSCALL_FCHMODAT2 6452
+#elif defined(__mips__) && defined(_ABIO32) // mips32
+# define NIX_SYSCALL_FCHMODAT2 4452
+#else
+# define NIX_SYSCALL_FCHMODAT2 452
+#endif