diff options
Diffstat (limited to 'src/firejail/sandbox.c')
-rw-r--r-- | src/firejail/sandbox.c | 9 |
1 files changed, 7 insertions, 2 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 |