summaryrefslogtreecommitdiff
path: root/src/shared/seccomp-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-04-03 09:17:42 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-04-03 09:17:42 +0200
commit58f6ab4454fbd2ac440f97ce4a230a5b57dd5392 (patch)
tree44f6c22d32a956d49f321f937f84de8167ab2597 /src/shared/seccomp-util.h
parent6bfb1daff14344b74c034238980390190d4faa69 (diff)
downloadsystemd-58f6ab4454fbd2ac440f97ce4a230a5b57dd5392.tar.gz
pid1: pass unit name to seccomp parser when we have no file location
Building on previous commit, let's pass the unit name when parsing dbus message or builtin whitelist, which is better than nothing. seccomp_parse_syscall_filter() is not needed anymore, so it is removed, and seccomp_parse_syscall_filter_full() is renamed to take its place.
Diffstat (limited to 'src/shared/seccomp-util.h')
-rw-r--r--src/shared/seccomp-util.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/shared/seccomp-util.h b/src/shared/seccomp-util.h
index 31c6c211fd..14dbc42691 100644
--- a/src/shared/seccomp-util.h
+++ b/src/shared/seccomp-util.h
@@ -70,13 +70,13 @@ typedef enum SeccompParseFlags {
SECCOMP_PARSE_PERMISSIVE = 1 << 3,
} SeccompParseFlags;
-int seccomp_parse_syscall_filter_full(
- const char *name, int errno_num, Hashmap *filter, SeccompParseFlags flags,
- const char *unit, const char *filename, unsigned line);
-
-static inline int seccomp_parse_syscall_filter(const char *name, int errno_num, Hashmap *filter, SeccompParseFlags flags) {
- return seccomp_parse_syscall_filter_full(name, errno_num, filter, flags, NULL, NULL, 0);
-}
+int seccomp_parse_syscall_filter(
+ const char *name,
+ int errno_num,
+ Hashmap *filter,
+ SeccompParseFlags flags,
+ const char *unit,
+ const char *filename, unsigned line);
int seccomp_restrict_archs(Set *archs);
int seccomp_restrict_namespaces(unsigned long retain);