2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2012-07-18 19:07:51 +02:00
|
|
|
#pragma once
|
2010-08-12 01:03:24 +02:00
|
|
|
|
2018-12-20 20:35:25 +01:00
|
|
|
#include "version.h"
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_PAM
|
2010-08-12 01:03:24 +02:00
|
|
|
#define _PAM_FEATURE_ "+PAM"
|
|
|
|
#else
|
|
|
|
#define _PAM_FEATURE_ "-PAM"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_AUDIT
|
2010-08-12 01:03:24 +02:00
|
|
|
#define _AUDIT_FEATURE_ "+AUDIT"
|
|
|
|
#else
|
|
|
|
#define _AUDIT_FEATURE_ "-AUDIT"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_SELINUX
|
2010-08-12 01:03:24 +02:00
|
|
|
#define _SELINUX_FEATURE_ "+SELINUX"
|
|
|
|
#else
|
|
|
|
#define _SELINUX_FEATURE_ "-SELINUX"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_APPARMOR
|
2014-02-20 16:19:44 +01:00
|
|
|
#define _APPARMOR_FEATURE_ "+APPARMOR"
|
|
|
|
#else
|
|
|
|
#define _APPARMOR_FEATURE_ "-APPARMOR"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 12:20:49 +02:00
|
|
|
#if ENABLE_IMA
|
2012-03-15 19:06:11 +01:00
|
|
|
#define _IMA_FEATURE_ "+IMA"
|
|
|
|
#else
|
|
|
|
#define _IMA_FEATURE_ "-IMA"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 12:22:40 +02:00
|
|
|
#if ENABLE_SMACK
|
2014-08-20 00:47:43 +02:00
|
|
|
#define _SMACK_FEATURE_ "+SMACK"
|
|
|
|
#else
|
|
|
|
#define _SMACK_FEATURE_ "-SMACK"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_SYSV_COMPAT
|
2010-09-21 05:23:12 +02:00
|
|
|
#define _SYSVINIT_FEATURE_ "+SYSVINIT"
|
|
|
|
#else
|
|
|
|
#define _SYSVINIT_FEATURE_ "-SYSVINIT"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 12:19:30 +02:00
|
|
|
#if ENABLE_UTMP
|
2014-09-24 17:25:00 +02:00
|
|
|
#define _UTMP_FEATURE_ "+UTMP"
|
|
|
|
#else
|
|
|
|
#define _UTMP_FEATURE_ "-UTMP"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_LIBCRYPTSETUP
|
2010-11-18 00:39:09 +01:00
|
|
|
#define _LIBCRYPTSETUP_FEATURE_ "+LIBCRYPTSETUP"
|
|
|
|
#else
|
|
|
|
#define _LIBCRYPTSETUP_FEATURE_ "-LIBCRYPTSETUP"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_GCRYPT
|
2012-08-20 16:51:46 +02:00
|
|
|
#define _GCRYPT_FEATURE_ "+GCRYPT"
|
|
|
|
#else
|
|
|
|
#define _GCRYPT_FEATURE_ "-GCRYPT"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_GNUTLS
|
2014-08-20 00:47:43 +02:00
|
|
|
#define _GNUTLS_FEATURE_ "+GNUTLS"
|
|
|
|
#else
|
|
|
|
#define _GNUTLS_FEATURE_ "-GNUTLS"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_ACL
|
2012-08-20 16:51:46 +02:00
|
|
|
#define _ACL_FEATURE_ "+ACL"
|
|
|
|
#else
|
|
|
|
#define _ACL_FEATURE_ "-ACL"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_XZ
|
2012-08-20 16:51:46 +02:00
|
|
|
#define _XZ_FEATURE_ "+XZ"
|
|
|
|
#else
|
|
|
|
#define _XZ_FEATURE_ "-XZ"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_LZ4
|
2014-08-20 00:47:43 +02:00
|
|
|
#define _LZ4_FEATURE_ "+LZ4"
|
|
|
|
#else
|
|
|
|
#define _LZ4_FEATURE_ "-LZ4"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_SECCOMP
|
2014-02-12 01:29:54 +01:00
|
|
|
#define _SECCOMP_FEATURE_ "+SECCOMP"
|
|
|
|
#else
|
|
|
|
#define _SECCOMP_FEATURE_ "-SECCOMP"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_BLKID
|
2014-08-20 00:47:43 +02:00
|
|
|
#define _BLKID_FEATURE_ "+BLKID"
|
|
|
|
#else
|
|
|
|
#define _BLKID_FEATURE_ "-BLKID"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_ELFUTILS
|
2014-08-20 00:47:43 +02:00
|
|
|
#define _ELFUTILS_FEATURE_ "+ELFUTILS"
|
|
|
|
#else
|
|
|
|
#define _ELFUTILS_FEATURE_ "-ELFUTILS"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_KMOD
|
2014-08-20 00:47:43 +02:00
|
|
|
#define _KMOD_FEATURE_ "+KMOD"
|
|
|
|
#else
|
|
|
|
#define _KMOD_FEATURE_ "-KMOD"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_LIBIDN2
|
2017-05-10 03:56:34 +02:00
|
|
|
#define _IDN2_FEATURE_ "+IDN2"
|
|
|
|
#else
|
|
|
|
#define _IDN2_FEATURE_ "-IDN2"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_LIBIDN
|
2014-08-20 00:47:43 +02:00
|
|
|
#define _IDN_FEATURE_ "+IDN"
|
|
|
|
#else
|
|
|
|
#define _IDN_FEATURE_ "-IDN"
|
|
|
|
#endif
|
|
|
|
|
2018-01-12 05:47:17 +01:00
|
|
|
#if HAVE_PCRE2
|
|
|
|
#define _PCRE2_FEATURE_ "+PCRE2"
|
|
|
|
#else
|
|
|
|
#define _PCRE2_FEATURE_ "-PCRE2"
|
|
|
|
#endif
|
|
|
|
|
2017-02-19 05:28:01 +01:00
|
|
|
#define _CGROUP_HIEARCHY_ "default-hierarchy=" DEFAULT_HIERARCHY_NAME
|
|
|
|
|
2014-08-20 00:47:43 +02:00
|
|
|
#define SYSTEMD_FEATURES \
|
|
|
|
_PAM_FEATURE_ " " \
|
|
|
|
_AUDIT_FEATURE_ " " \
|
|
|
|
_SELINUX_FEATURE_ " " \
|
|
|
|
_IMA_FEATURE_ " " \
|
|
|
|
_APPARMOR_FEATURE_ " " \
|
|
|
|
_SMACK_FEATURE_ " " \
|
|
|
|
_SYSVINIT_FEATURE_ " " \
|
2014-09-24 17:25:00 +02:00
|
|
|
_UTMP_FEATURE_ " " \
|
2014-08-20 00:47:43 +02:00
|
|
|
_LIBCRYPTSETUP_FEATURE_ " " \
|
|
|
|
_GCRYPT_FEATURE_ " " \
|
|
|
|
_GNUTLS_FEATURE_ " " \
|
|
|
|
_ACL_FEATURE_ " " \
|
|
|
|
_XZ_FEATURE_ " " \
|
|
|
|
_LZ4_FEATURE_ " " \
|
|
|
|
_SECCOMP_FEATURE_ " " \
|
|
|
|
_BLKID_FEATURE_ " " \
|
|
|
|
_ELFUTILS_FEATURE_ " " \
|
|
|
|
_KMOD_FEATURE_ " " \
|
2017-05-10 03:56:34 +02:00
|
|
|
_IDN2_FEATURE_ " " \
|
2017-02-19 05:28:01 +01:00
|
|
|
_IDN_FEATURE_ " " \
|
2018-01-12 05:47:17 +01:00
|
|
|
_PCRE2_FEATURE_ " " \
|
2017-02-19 05:28:01 +01:00
|
|
|
_CGROUP_HIEARCHY_
|