Same justification as for HAVE_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'],
#define _APPARMOR_FEATURE_ "-APPARMOR"
#endif
-#if HAVE_IMA
+#if ENABLE_IMA
#define _IMA_FEATURE_ "+IMA"
#else
#define _IMA_FEATURE_ "-IMA"
#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;
done:
log_info("Successfully loaded the IMA custom policy "IMA_POLICY_PATH".");
-#endif /* HAVE_IMA */
+#endif /* ENABLE_IMA */
return 0;
}