aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/profile.c
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2019-02-05 22:22:32 +0100
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2019-02-05 22:22:32 +0100
commite0d0ec7dd066d8f80c963d20127b23ed80744ce9 (patch)
treebd33beed22bf27f97a840a454fc182cff9fbe9f3 /src/firejail/profile.c
parentcnt only used for debugging (diff)
downloadfirejail-e0d0ec7dd066d8f80c963d20127b23ed80744ce9.tar.gz
firejail-e0d0ec7dd066d8f80c963d20127b23ed80744ce9.tar.zst
firejail-e0d0ec7dd066d8f80c963d20127b23ed80744ce9.zip
variable only used when whitelisting enabled
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r--src/firejail/profile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index bc66aca78..26b915602 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -241,7 +241,9 @@ error:
241// return 1 if the command is to be added to the linked list of profile commands 241// return 1 if the command is to be added to the linked list of profile commands
242// return 0 if the command was already executed inside the function 242// return 0 if the command was already executed inside the function
243int profile_check_line(char *ptr, int lineno, const char *fname) { 243int profile_check_line(char *ptr, int lineno, const char *fname) {
244#ifdef HAVE_WHITELIST
244 static int whitelist_warning_printed = 0; 245 static int whitelist_warning_printed = 0;
246#endif
245 EUID_ASSERT(); 247 EUID_ASSERT();
246 248
247 // check and process conditional profile lines 249 // check and process conditional profile lines