aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2020-08-17 17:08:43 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2020-08-17 17:08:43 +0200
commit9e3b7b90cf9aad35fc8db2eabdeb9e1ed038acea (patch)
treec6732e4a925e5f594cf30db251db9e8e65d3b0e7 /src/include
parentvarious x11 xorg enhancements (diff)
downloadfirejail-9e3b7b90cf9aad35fc8db2eabdeb9e1ed038acea.tar.gz
firejail-9e3b7b90cf9aad35fc8db2eabdeb9e1ed038acea.tar.zst
firejail-9e3b7b90cf9aad35fc8db2eabdeb9e1ed038acea.zip
add dumpable warnings
Diffstat (limited to 'src/include')
-rw-r--r--src/include/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/common.h b/src/include/common.h
index c65ba0d55..025f3c247 100644
--- a/src/include/common.h
+++ b/src/include/common.h
@@ -34,6 +34,9 @@
34 34
35#define errExit(msg) do { char msgout[500]; snprintf(msgout, 500, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __FUNCTION__); perror(msgout); exit(1);} while (0) 35#define errExit(msg) do { char msgout[500]; snprintf(msgout, 500, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __FUNCTION__); perror(msgout); exit(1);} while (0)
36 36
37// check if processes run with dumpable flag set
38#define WARN_DUMPABLE
39
37// macro to print ip addresses in a printf statement 40// macro to print ip addresses in a printf statement
38#define PRINT_IP(A) \ 41#define PRINT_IP(A) \
39((int) (((A) >> 24) & 0xFF)), ((int) (((A) >> 16) & 0xFF)), ((int) (((A) >> 8) & 0xFF)), ((int) ( (A) & 0xFF)) 42((int) (((A) >> 24) & 0xFF)), ((int) (((A) >> 16) & 0xFF)), ((int) (((A) >> 8) & 0xFF)), ((int) ( (A) & 0xFF))