[PATCH v3 2/7] seccomp: use bitfields for boolean flags on seccomp_filter struct
From: Alexander Mikhalitsyn
Date: Thu Dec 11 2025 - 07:46:52 EST
No functional change intended.
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: Kees Cook <kees@xxxxxxxxxx>
Cc: Andy Lutomirski <luto@xxxxxxxxxxxxxx>
Cc: Will Drewry <wad@xxxxxxxxxxxx>
Cc: Jonathan Corbet <corbet@xxxxxxx>
Cc: Shuah Khan <shuah@xxxxxxxxxx>
Cc: Aleksa Sarai <cyphar@xxxxxxxxxx>
Cc: Tycho Andersen <tycho@tycho.pizza>
Cc: Andrei Vagin <avagin@xxxxxxxxx>
Cc: Christian Brauner <brauner@xxxxxxxxxx>
Cc: Stéphane Graber <stgraber@xxxxxxxxxxxx>
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@xxxxxxxxxxxxx>
---
kernel/seccomp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index 08476fc0c65b..236c96276405 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -224,8 +224,8 @@ static inline void seccomp_cache_prepare(struct seccomp_filter *sfilter)
struct seccomp_filter {
refcount_t refs;
refcount_t users;
- bool log;
- bool wait_killable_recv;
+ bool log : 1;
+ bool wait_killable_recv : 1;
struct action_cache cache;
struct seccomp_filter *prev;
struct bpf_prog *prog;
--
2.43.0