mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
seccomp-util: enforce group ordering
So far we asked via a comment that @default should stay the first group and @known the last group in the list. Let's enforce that statically, in code, too.
This commit is contained in:
parent
76e86b8dd8
commit
50524bd887
@ -57,9 +57,12 @@ enum {
|
||||
SYSCALL_FILTER_SET_SYSTEM_SERVICE,
|
||||
SYSCALL_FILTER_SET_TIMER,
|
||||
SYSCALL_FILTER_SET_KNOWN,
|
||||
_SYSCALL_FILTER_SET_MAX
|
||||
_SYSCALL_FILTER_SET_MAX,
|
||||
};
|
||||
|
||||
assert_cc(SYSCALL_FILTER_SET_DEFAULT == 0);
|
||||
assert_cc(SYSCALL_FILTER_SET_KNOWN == _SYSCALL_FILTER_SET_MAX-1);
|
||||
|
||||
extern const SyscallFilterSet syscall_filter_sets[];
|
||||
|
||||
const SyscallFilterSet *syscall_filter_set_find(const char *name);
|
||||
|
Loading…
Reference in New Issue
Block a user