2012-07-18 19:07:51 +02:00
|
|
|
#pragma once
|
2010-08-12 01:03:24 +02:00
|
|
|
|
|
|
|
/***
|
|
|
|
This file is part of systemd.
|
|
|
|
|
|
|
|
Copyright 2010 Lennart Poettering
|
|
|
|
|
|
|
|
systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 00:20:58 +02:00
|
|
|
under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2.1 of the License, or
|
2010-08-12 01:03:24 +02:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
systemd is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2012-04-12 00:20:58 +02:00
|
|
|
Lesser General Public License for more details.
|
2010-08-12 01:03:24 +02:00
|
|
|
|
2012-04-12 00:20:58 +02:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
2010-08-12 01:03:24 +02:00
|
|
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
***/
|
|
|
|
|
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 10:41:51 +02:00
|
|
|
#if HAVE_IMA
|
2012-03-15 19:06:11 +01:00
|
|
|
#define _IMA_FEATURE_ "+IMA"
|
|
|
|
#else
|
|
|
|
#define _IMA_FEATURE_ "-IMA"
|
|
|
|
#endif
|
|
|
|
|
2017-10-03 10:41:51 +02:00
|
|
|
#if HAVE_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 10:41:51 +02:00
|
|
|
#if HAVE_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
|
|
|
|
|
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_ " " \
|
|
|
|
_CGROUP_HIEARCHY_
|