summaryrefslogtreecommitdiffstats
path: root/src/shared/seccomp-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-07 16:03:43 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-12 21:44:00 +0200
commitef31828d06b794f548928e46718f8b152a8e7fed (patch)
tree70b61c6b3c9e1af3102bcd3aea456ec4f67e8bfb /src/shared/seccomp-util.h
parentMerge pull request #8849 from irtimmer/feature/dns-over-tls (diff)
downloadsystemd-ef31828d06b794f548928e46718f8b152a8e7fed.tar.xz
systemd-ef31828d06b794f548928e46718f8b152a8e7fed.zip
tree-wide: unify how we define bit mak enums
Let's always write "1 << 0", "1 << 1" and so on, except where we need more than 31 flag bits, where we write "UINT64(1) << 0", and so on to force 64bit values.
Diffstat (limited to '')
-rw-r--r--src/shared/seccomp-util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/seccomp-util.h b/src/shared/seccomp-util.h
index d35c44fa77..d6cb56de2c 100644
--- a/src/shared/seccomp-util.h
+++ b/src/shared/seccomp-util.h
@@ -69,10 +69,10 @@ int seccomp_load_syscall_filter_set(uint32_t default_action, const SyscallFilter
int seccomp_load_syscall_filter_set_raw(uint32_t default_action, Hashmap* set, uint32_t action);
typedef enum SeccompParseFlags {
- SECCOMP_PARSE_INVERT = 1U << 0,
- SECCOMP_PARSE_WHITELIST = 1U << 1,
- SECCOMP_PARSE_LOG = 1U << 2,
- SECCOMP_PARSE_PERMISSIVE = 1U << 3,
+ SECCOMP_PARSE_INVERT = 1 << 0,
+ SECCOMP_PARSE_WHITELIST = 1 << 1,
+ SECCOMP_PARSE_LOG = 1 << 2,
+ SECCOMP_PARSE_PERMISSIVE = 1 << 3,
} SeccompParseFlags;
int seccomp_parse_syscall_filter_full(