aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2020-08-25 20:31:03 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2020-08-25 20:31:03 +0200
commit93f6aa85cfe69ad0bbf7d6e8ae9b6d2e96c507d7 (patch)
treec73f791d62810db95f265229a613f77f2e61e05f /src
parentwusc whitelists /usr/share/perl{,5} now (diff)
downloadfirejail-93f6aa85cfe69ad0bbf7d6e8ae9b6d2e96c507d7.tar.gz
firejail-93f6aa85cfe69ad0bbf7d6e8ae9b6d2e96c507d7.tar.zst
firejail-93f6aa85cfe69ad0bbf7d6e8ae9b6d2e96c507d7.zip
cat fixes
Diffstat (limited to 'src')
-rw-r--r--src/firejail/sandbox.c9
-rw-r--r--src/firemon/procevent.c2
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