aboutsummaryrefslogtreecommitdiffstats
path: root/src/profstats/main.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2021-11-30 09:28:07 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2021-11-30 09:28:07 -0500
commitf91526a6a9c428f41654c54f7c4a8fcff6213f60 (patch)
treed7cd331e95e8e77dc99b92c86b6edd6ced20469e /src/profstats/main.c
parentinstall profstats in /etc/firejail directory - undocumented, used only for d... (diff)
downloadfirejail-f91526a6a9c428f41654c54f7c4a8fcff6213f60.tar.gz
firejail-f91526a6a9c428f41654c54f7c4a8fcff6213f60.tar.zst
firejail-f91526a6a9c428f41654c54f7c4a8fcff6213f60.zip
more profstats
Diffstat (limited to 'src/profstats/main.c')
-rw-r--r--src/profstats/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/profstats/main.c b/src/profstats/main.c
index 72c0710fe..4e642f634 100644
--- a/src/profstats/main.c
+++ b/src/profstats/main.c
@@ -87,8 +87,8 @@ static void usage(void) {
87 printf(" --private-dev - print profiles without private-dev\n"); 87 printf(" --private-dev - print profiles without private-dev\n");
88 printf(" --private-etc - print profiles without private-etc\n"); 88 printf(" --private-etc - print profiles without private-etc\n");
89 printf(" --private-tmp - print profiles without private-tmp\n"); 89 printf(" --private-tmp - print profiles without private-tmp\n");
90 printf(" --print-blacklist - print all blacklists for a profile\n"); 90 printf(" --print-blacklist - print all --blacklists for a profile\n");
91 printf(" --print-whitelist - print all whitelists for a profile\n"); 91 printf(" --print-whitelist - print all --private and --whitelist for a profile\n");
92 printf(" --seccomp - print profiles without seccomp\n"); 92 printf(" --seccomp - print profiles without seccomp\n");
93 printf(" --memory-deny-write-execute - profile without \"memory-deny-write-execute\"\n"); 93 printf(" --memory-deny-write-execute - profile without \"memory-deny-write-execute\"\n");
94 printf(" --whitelist-home - print profiles whitelisting home directory\n"); 94 printf(" --whitelist-home - print profiles whitelisting home directory\n");
@@ -134,7 +134,8 @@ void process_file(const char *fname) {
134 } 134 }
135 else if (arg_print_whitelist) { 135 else if (arg_print_whitelist) {
136 if (strncmp(ptr, "whitelist", 9) == 0 || 136 if (strncmp(ptr, "whitelist", 9) == 0 ||
137 strncmp(ptr, "nowhitelist", 11) == 0) 137 strncmp(ptr, "nowhitelist", 11) == 0 ||
138 strncmp(ptr, "private", 7) == 0)
138 printf("%s: %s\n", fname, ptr); 139 printf("%s: %s\n", fname, ptr);
139 } 140 }
140 141