[PATCH v3 2/7] seccomp: use bitfields for boolean flags on seccomp_filter struct

Alexander Mikhalitsyn posted 7 patches 2 months ago
[PATCH v3 2/7] seccomp: use bitfields for boolean flags on seccomp_filter struct
Posted by Alexander Mikhalitsyn 2 months ago
No functional change intended.

Cc: linux-kernel@vger.kernel.org
Cc: Kees Cook <kees@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Will Drewry <wad@chromium.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Aleksa Sarai <cyphar@cyphar.com>
Cc: Tycho Andersen <tycho@tycho.pizza>
Cc: Andrei Vagin <avagin@gmail.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
---
 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