From 7b96cd6ded2668b04c908737ff393b805d34cc5c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 25 Jan 2025 13:19:38 +0900 Subject: helper/seccomp: do not call F_println if not verbose This (slightly) improves performance. Signed-off-by: Ophestra --- helper/seccomp/seccomp-export.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'helper/seccomp/seccomp-export.h') diff --git a/helper/seccomp/seccomp-export.h b/helper/seccomp/seccomp-export.h index 90640d8f..3a28b127 100644 --- a/helper/seccomp/seccomp-export.h +++ b/helper/seccomp/seccomp-export.h @@ -8,14 +8,15 @@ #endif typedef enum { - F_EXT = 1 << 0, - F_DENY_NS = 1 << 1, - F_DENY_TTY = 1 << 2, - F_DENY_DEVEL = 1 << 3, - F_MULTIARCH = 1 << 4, - F_LINUX32 = 1 << 5, - F_CAN = 1 << 6, - F_BLUETOOTH = 1 << 7, + F_VERBOSE = 1 << 0, + F_EXT = 1 << 1, + F_DENY_NS = 1 << 2, + F_DENY_TTY = 1 << 3, + F_DENY_DEVEL = 1 << 4, + F_MULTIARCH = 1 << 5, + F_LINUX32 = 1 << 6, + F_CAN = 1 << 7, + F_BLUETOOTH = 1 << 8, } f_syscall_opts; extern void F_println(char *v); -- cgit v1.3.1