diff options
| author | Wenzong Fan <wenzong.fan@windriver.com> | 2018-08-17 15:32:14 +0800 |
|---|---|---|
| committer | Joe MacDonald <joe_macdonald@mentor.com> | 2018-08-17 08:39:15 -0400 |
| commit | f10e98292917fb452a6f7d438897f46eb992421d (patch) | |
| tree | 5d4d1d01a381b5fa22589360855f417033d3bf2e | |
| parent | de0374b2c332e33b93902176c1f3473a31069c7b (diff) | |
| download | meta-selinux-f10e98292917fb452a6f7d438897f46eb992421d.tar.gz | |
policycoreutils: add PACKAGECONFIG for libpam, audit
* make pam and audit support configurable;
* remove INITDIR from EXTRA_OEMAKE, the variable is not supported now.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
| -rw-r--r-- | recipes-security/selinux/policycoreutils.inc | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/recipes-security/selinux/policycoreutils.inc b/recipes-security/selinux/policycoreutils.inc index 7825a6c..b7cb510 100644 --- a/recipes-security/selinux/policycoreutils.inc +++ b/recipes-security/selinux/policycoreutils.inc | |||
| @@ -21,8 +21,6 @@ DEPENDS += "${@['', '${EXTRA_DEPENDS}']['${PN}' != '${BPN}-native']}" | |||
| 21 | 21 | ||
| 22 | inherit selinux pythonnative | 22 | inherit selinux pythonnative |
| 23 | 23 | ||
| 24 | DEPENDS += "${@target_selinux(d, 'libpam audit')}" | ||
| 25 | |||
| 26 | RDEPENDS_${BPN}-fixfiles += "\ | 24 | RDEPENDS_${BPN}-fixfiles += "\ |
| 27 | ${BPN}-setfiles \ | 25 | ${BPN}-setfiles \ |
| 28 | grep \ | 26 | grep \ |
| @@ -118,11 +116,20 @@ export STAGING_LIBDIR | |||
| 118 | export BUILD_SYS | 116 | export BUILD_SYS |
| 119 | export HOST_SYS | 117 | export HOST_SYS |
| 120 | 118 | ||
| 121 | AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" | 119 | PACKAGECONFIG_class-target ?= "\ |
| 122 | PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" | 120 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} \ |
| 123 | EXTRA_OEMAKE += "${@target_selinux(d, 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ')} INOTIFYH=n" | 121 | audit \ |
| 124 | EXTRA_OEMAKE += "PREFIX=${D}" | 122 | " |
| 125 | EXTRA_OEMAKE += "INITDIR=${D}/etc/init.d" | 123 | |
| 124 | PACKAGECONFIG[libpam] = ",,libpam," | ||
| 125 | PACKAGECONFIG[audit] = ",,audit," | ||
| 126 | |||
| 127 | EXTRA_OEMAKE += "\ | ||
| 128 | ${@bb.utils.contains('PACKAGECONFIG', 'libpam', 'PAMH=y', 'PAMH=', d)} \ | ||
| 129 | ${@bb.utils.contains('PACKAGECONFIG', 'audit', 'AUDITH=y', 'AUDITH=', d)} \ | ||
| 130 | INOTIFYH=n \ | ||
| 131 | PREFIX=${D} \ | ||
| 132 | " | ||
| 126 | 133 | ||
| 127 | BBCLASSEXTEND = "native" | 134 | BBCLASSEXTEND = "native" |
| 128 | 135 | ||
