Skip to content

Commit

Permalink
cat fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smitsohu committed Aug 25, 2020
1 parent c6e1558 commit 93f6aa8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/firejail/sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,13 @@ void seccomp_debug(void) {
EUID_USER();
printf("Seccomp directory:\n");
ls(RUN_SECCOMP_DIR);
printf("Active seccomp files:\n");
cat(RUN_SECCOMP_LIST);
struct stat s;
if (stat(RUN_SECCOMP_LIST, &s) == 0) {
printf("Active seccomp files:\n");
cat(RUN_SECCOMP_LIST);
}
else
printf("No active seccomp files\n");
EUID_ROOT();
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/firemon/procevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int pid_is_firejail(pid_t pid) {
// debug
"debug-caps", "debug-errnos", "debug-protocols", "debug-syscalls", "debug-syscalls32",
// file transfer
"ls", "get", "put",
"ls", "get", "put", "cat",
// stats
"tree", "list", "top",
// network
Expand Down

0 comments on commit 93f6aa8

Please sign in to comment.