aboutsummaryrefslogtreecommitdiffstats
path: root/src/faudit/pid.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-07-05 07:24:10 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-07-05 07:24:10 -0400
commit3f8d6787b7ccff3ed7ff77a3b474856ae1be6a9b (patch)
tree15b9f2e7810b0812eaa9827a4ee668ee29b6551f /src/faudit/pid.c
parentsrc/faudit/dbus.c (diff)
downloadfirejail-3f8d6787b7ccff3ed7ff77a3b474856ae1be6a9b.tar.gz
firejail-3f8d6787b7ccff3ed7ff77a3b474856ae1be6a9b.tar.zst
firejail-3f8d6787b7ccff3ed7ff77a3b474856ae1be6a9b.zip
faudit: dbus
Diffstat (limited to 'src/faudit/pid.c')
-rw-r--r--src/faudit/pid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/faudit/pid.c b/src/faudit/pid.c
index 57947418e..2770daece 100644
--- a/src/faudit/pid.c
+++ b/src/faudit/pid.c
@@ -69,7 +69,7 @@ void pid_test(void) {
69 if (strncmp(buf, kern_proc[j], strlen(kern_proc[j])) == 0) { 69 if (strncmp(buf, kern_proc[j], strlen(kern_proc[j])) == 0) {
70 fclose(fp); 70 fclose(fp);
71 free(fname); 71 free(fname);
72 printf("BAD: Process PID %d, not running in a PID namespace\n", getpid()); 72 printf("BAD: Process %d, not running in a PID namespace. ", getpid());
73 printf("Are you sure you're running in a sandbox?\n"); 73 printf("Are you sure you're running in a sandbox?\n");
74 return; 74 return;
75 } 75 }
@@ -81,10 +81,10 @@ void pid_test(void) {
81 } 81 }
82 82
83 83
84 printf("GOOD: process PID %d, running in a PID namespace\n", getpid()); 84 printf("GOOD: process %d running in a PID namespace.\n", getpid());
85 85
86 // try to guess the type of container/sandbox 86 // try to guess the type of container/sandbox
87 char *str = getenv("container"); 87 char *str = getenv("container");
88 if (str) 88 if (str)
89 printf("INFO: container/sandbox %s\n", str); 89 printf("INFO: container/sandbox %s.\n", str);
90} 90}