diff options
author | 2016-11-11 09:44:45 -0500 | |
---|---|---|
committer | 2016-11-11 09:44:45 -0500 | |
commit | c8f8341c277acc6a424be0777681455e0d07fd72 (patch) | |
tree | 4b169090b18c076b5832028d44852848c0bb635f /src/firejail/caps.c | |
parent | hidepid part 2 (diff) | |
download | firejail-c8f8341c277acc6a424be0777681455e0d07fd72.tar.gz firejail-c8f8341c277acc6a424be0777681455e0d07fd72.tar.zst firejail-c8f8341c277acc6a424be0777681455e0d07fd72.zip |
hidepid part 3
Diffstat (limited to 'src/firejail/caps.c')
-rw-r--r-- | src/firejail/caps.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/firejail/caps.c b/src/firejail/caps.c index 2d42c7d8a..3fd8b576e 100644 --- a/src/firejail/caps.c +++ b/src/firejail/caps.c | |||
@@ -401,22 +401,6 @@ static uint64_t extract_caps(int pid) { | |||
401 | exit(1); | 401 | exit(1); |
402 | } | 402 | } |
403 | 403 | ||
404 | |||
405 | void caps_print_filter_name(const char *name) { | ||
406 | EUID_ASSERT(); | ||
407 | if (!name || strlen(name) == 0) { | ||
408 | fprintf(stderr, "Error: invalid sandbox name\n"); | ||
409 | exit(1); | ||
410 | } | ||
411 | pid_t pid; | ||
412 | if (name2pid(name, &pid)) { | ||
413 | fprintf(stderr, "Error: cannot find sandbox %s\n", name); | ||
414 | exit(1); | ||
415 | } | ||
416 | |||
417 | caps_print_filter(pid); | ||
418 | } | ||
419 | |||
420 | void caps_print_filter(pid_t pid) { | 404 | void caps_print_filter(pid_t pid) { |
421 | EUID_ASSERT(); | 405 | EUID_ASSERT(); |
422 | 406 | ||