diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/sandbox.c | 9 | ||||
-rw-r--r-- | src/firemon/procevent.c | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index 81d535762..0965b1017 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c | |||
@@ -148,8 +148,13 @@ void seccomp_debug(void) { | |||
148 | EUID_USER(); | 148 | EUID_USER(); |
149 | printf("Seccomp directory:\n"); | 149 | printf("Seccomp directory:\n"); |
150 | ls(RUN_SECCOMP_DIR); | 150 | ls(RUN_SECCOMP_DIR); |
151 | printf("Active seccomp files:\n"); | 151 | struct stat s; |
152 | cat(RUN_SECCOMP_LIST); | 152 | if (stat(RUN_SECCOMP_LIST, &s) == 0) { |
153 | printf("Active seccomp files:\n"); | ||
154 | cat(RUN_SECCOMP_LIST); | ||
155 | } | ||
156 | else | ||
157 | printf("No active seccomp files\n"); | ||
153 | EUID_ROOT(); | 158 | EUID_ROOT(); |
154 | } | 159 | } |
155 | #endif | 160 | #endif |
diff --git a/src/firemon/procevent.c b/src/firemon/procevent.c index 45964d3a2..b64b6210d 100644 --- a/src/firemon/procevent.c +++ b/src/firemon/procevent.c | |||
@@ -100,7 +100,7 @@ static int pid_is_firejail(pid_t pid) { | |||
100 | // debug | 100 | // debug |
101 | "debug-caps", "debug-errnos", "debug-protocols", "debug-syscalls", "debug-syscalls32", | 101 | "debug-caps", "debug-errnos", "debug-protocols", "debug-syscalls", "debug-syscalls32", |
102 | // file transfer | 102 | // file transfer |
103 | "ls", "get", "put", | 103 | "ls", "get", "put", "cat", |
104 | // stats | 104 | // stats |
105 | "tree", "list", "top", | 105 | "tree", "list", "top", |
106 | // network | 106 | // network |