]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: s/HAVE_IMA/ENABLE_IMA/
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 3 Oct 2017 10:20:49 +0000 (12:20 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 4 Oct 2017 10:09:50 +0000 (12:09 +0200)
Same justification as for HAVE_UTMP.

meson.build
src/basic/build.h
src/core/ima-setup.c

index 5c98c937b763cac9ac9a59d4a685847fa2da8fcd..26aa6993ee476155f0939b02d3cf289b118263d0 100644 (file)
@@ -1062,7 +1062,7 @@ foreach pair : [['utmp',          'ENABLE_UTMP'],
                 ['ldconfig',      'ENABLE_LDCONFIG'],
                 ['efi',           'ENABLE_EFI'],
                 ['tpm',           'ENABLE_TPM'],
-                ['ima',           'HAVE_IMA'],
+                ['ima',           'ENABLE_IMA'],
                 ['smack',         'HAVE_SMACK'],
                 ['gshadow',       'ENABLE_GSHADOW'],
                 ['idn',           'ENABLE_IDN'],
index 522974b5e447b0bfb005d3ac8f279c5db1e2741b..bb65a2e42efa71c96114fd467da30e08b8918261 100644 (file)
@@ -43,7 +43,7 @@
 #define _APPARMOR_FEATURE_ "-APPARMOR"
 #endif
 
-#if HAVE_IMA
+#if ENABLE_IMA
 #define _IMA_FEATURE_ "+IMA"
 #else
 #define _IMA_FEATURE_ "-IMA"
index 1aaae9f49ea6b9ed05c5e88965a50fcd8cf83ad4..6c7b209977b1d6851fc3d70a9b4edc90760fc475 100644 (file)
@@ -33,7 +33,7 @@
 #define IMA_POLICY_PATH "/etc/ima/ima-policy"
 
 int ima_setup(void) {
-#if HAVE_IMA
+#if ENABLE_IMA
         _cleanup_fclose_ FILE *input = NULL;
         _cleanup_close_ int imafd = -1;
         unsigned lineno = 0;
@@ -93,6 +93,6 @@ int ima_setup(void) {
 
 done:
         log_info("Successfully loaded the IMA custom policy "IMA_POLICY_PATH".");
-#endif /* HAVE_IMA */
+#endif /* ENABLE_IMA */
         return 0;
 }