summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>2017-03-23 21:23:08 +0300
committerPanu Matilainen <pmatilai@redhat.com>2017-03-24 12:51:39 +0200
commita0c138592d507a34511c3d18ce6955b781096c89 (patch)
treefe185380ebee58c35090772d5d53480f67150cc0
parentcf6c87997f199b7681934b5d7c524bfff178b848 (diff)
downloadrpm-a0c138592d507a34511c3d18ce6955b781096c89.tar.gz
Include system.h in ima and syslog plugins
Currently, there is no harm if config.h is not included in these files because they are not sensitive to macros defined in config.h, but any code added later or any plugin created using these plugins as examples might be affected by these macros and therefore has to include config.h. An example of bug when this header is not included properly can be seen in the previous commit. Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
-rw-r--r--plugins/ima.c2
-rw-r--r--plugins/syslog.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/ima.c b/plugins/ima.c
index 55a4b271e..fe6d3ad7f 100644
--- a/plugins/ima.c
+++ b/plugins/ima.c
@@ -1,3 +1,5 @@
+#include "system.h"
+
#include <errno.h>
#include <sys/xattr.h>
diff --git a/plugins/syslog.c b/plugins/syslog.c
index caae0166c..5f22f981c 100644
--- a/plugins/syslog.c
+++ b/plugins/syslog.c
@@ -1,3 +1,5 @@
+#include "system.h"
+
#include <syslog.h>
#include <rpm/rpmts.h>