diff options
Diffstat (limited to 'src/firejail/seccomp.c')
-rw-r--r-- | src/firejail/seccomp.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/firejail/seccomp.c b/src/firejail/seccomp.c index 20807f5b1..4a2221e98 100644 --- a/src/firejail/seccomp.c +++ b/src/firejail/seccomp.c | |||
@@ -232,21 +232,6 @@ int seccomp_filter_keep(void) { | |||
232 | return seccomp_load(RUN_SECCOMP_CFG); | 232 | return seccomp_load(RUN_SECCOMP_CFG); |
233 | } | 233 | } |
234 | 234 | ||
235 | void seccomp_print_filter_name(const char *name) { | ||
236 | EUID_ASSERT(); | ||
237 | if (!name || strlen(name) == 0) { | ||
238 | fprintf(stderr, "Error: invalid sandbox name\n"); | ||
239 | exit(1); | ||
240 | } | ||
241 | pid_t pid; | ||
242 | if (name2pid(name, &pid)) { | ||
243 | fprintf(stderr, "Error: cannot find sandbox %s\n", name); | ||
244 | exit(1); | ||
245 | } | ||
246 | |||
247 | seccomp_print_filter(pid); | ||
248 | } | ||
249 | |||
250 | void seccomp_print_filter(pid_t pid) { | 235 | void seccomp_print_filter(pid_t pid) { |
251 | EUID_ASSERT(); | 236 | EUID_ASSERT(); |
252 | 237 | ||