diff options
author | smitsohu <smitsohu@gmail.com> | 2021-01-15 14:31:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 14:31:16 +0100 |
commit | 1e136df0f0f1c86d0181d796f5719c42164bab1e (patch) | |
tree | 122f4874026666ff7a539cb5e4096223ef799abd /src/include/common.h | |
parent | bug_report.md: improve wording (upstream/duplicates) (diff) | |
parent | fix broken tests and regression on 45304621a6c600d8e30e98bfbef05149caaf56c5 (diff) | |
download | firejail-1e136df0f0f1c86d0181d796f5719c42164bab1e.tar.gz firejail-1e136df0f0f1c86d0181d796f5719c42164bab1e.tar.zst firejail-1e136df0f0f1c86d0181d796f5719c42164bab1e.zip |
Merge pull request #3867 from smitsohu/non-dumpable
return to non-dumpable plugins
Diffstat (limited to 'src/include/common.h')
-rw-r--r-- | src/include/common.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/include/common.h b/src/include/common.h index 5df51c5a9..5497929c7 100644 --- a/src/include/common.h +++ b/src/include/common.h | |||
@@ -38,11 +38,6 @@ | |||
38 | 38 | ||
39 | #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) | 39 | #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) |
40 | 40 | ||
41 | // check if processes run with dumpable flag set | ||
42 | // currently we get "Error fseccomp: I am dumpable" every time we run a firejail build on Debian 8, | ||
43 | // regardless what Debian version we run the build on | ||
44 | //#define WARN_DUMPABLE | ||
45 | |||
46 | // macro to print ip addresses in a printf statement | 41 | // macro to print ip addresses in a printf statement |
47 | #define PRINT_IP(A) \ | 42 | #define PRINT_IP(A) \ |
48 | ((int) (((A) >> 24) & 0xFF)), ((int) (((A) >> 16) & 0xFF)), ((int) (((A) >> 8) & 0xFF)), ((int) ( (A) & 0xFF)) | 43 | ((int) (((A) >> 24) & 0xFF)), ((int) (((A) >> 16) & 0xFF)), ((int) (((A) >> 8) & 0xFF)), ((int) ( (A) & 0xFF)) |
@@ -126,4 +121,6 @@ char *pid_proc_comm(const pid_t pid); | |||
126 | char *pid_proc_cmdline(const pid_t pid); | 121 | char *pid_proc_cmdline(const pid_t pid); |
127 | int pid_proc_cmdline_x11_xpra_xephyr(const pid_t pid); | 122 | int pid_proc_cmdline_x11_xpra_xephyr(const pid_t pid); |
128 | int pid_hidepid(void); | 123 | int pid_hidepid(void); |
124 | void warn_dumpable(void); | ||
125 | const char *gnu_basename(const char *path); | ||
129 | #endif | 126 | #endif |