policycoreutils: update AUDITH, PAMH
PATCH 1/1 policycoreutils: update AUDITH, PAMH
From: Wenzong Fan <[email protected]>
Update definition of AUDITH, PAMH according to the upstream changes for Makefiles:
commit 89ce96cac6ce5eeed78cb39c58514cd68494d7aa ... -ifeq ($(PAMH), /usr/include/security/pam_appl.h) +ifeq ($(PAMH), y) ... -ifeq ($(AUDITH), /usr/include/libaudit.h) +ifeq ($(AUDITH), y)
--- recipes-security/selinux/policycoreutils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-security/selinux/policycoreutils.inc +2 -2
@@ -118,8 +118,8 @@ export STAGING_LIBDIR export BUILD_SYS export HOST_SYS -AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" -PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" +AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo y`" +PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo y`" EXTRA_OEMAKE += "${@target_selinux(d, 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ')} INOTIFYH=n" EXTRA_OEMAKE += "PREFIX=${D}" EXTRA_OEMAKE += "INITDIR=${D}/etc/init.d"
Signature · 1 line
2.13.0
This is incorrect. You are not allowed to dynamically determine capabilities like this. Because if another component changes, the system has no way to determine if this package should also be recompiled.
policycoreutils should be using 'PACKAGECONFIG', with an audit and pam option. Then set a default with them enabled, allowing a user to override the settings.
--Mark
Quoted 34 lines · On 10/10/17 2:46 AM, [email protected] wrote:
From: Wenzong Fan <[email protected]>
Update definition of AUDITH, PAMH according to the upstream changes for Makefiles:
commit 89ce96cac6ce5eeed78cb39c58514cd68494d7aa ... -ifeq ($(PAMH), /usr/include/security/pam_appl.h) +ifeq ($(PAMH), y) ... -ifeq ($(AUDITH), /usr/include/libaudit.h) +ifeq ($(AUDITH), y)Signed-off-by Wenzong Fan <[email protected]>--- recipes-security/selinux/policycoreutils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-security/selinux/policycoreutils.inc +2
-2@@ -118,8 +118,8 @@ export STAGING_LIBDIR export BUILD_SYS export HOST_SYS -AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" -PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" +AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo y`" +PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo y`" EXTRA_OEMAKE += "${@target_selinux(d, 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ')} INOTIFYH=n" EXTRA_OEMAKE += "PREFIX=${D}" EXTRA_OEMAKE += "INITDIR=${D}/etc/init.d"
Quoted 6 lines · Mark Hatle
This is incorrect. You are not allowed to dynamically determine capabilities like this. Because if another component changes, the system has no way to determine if this package should also be recompiled.
policycoreutils should be using 'PACKAGECONFIG', with an audit and pam option. Then set a default with them enabled, allowing a user to override the settings.
Ok, I'll update the patch with 'PACKAGECONFIG' options.
Thanks
Wenzong
Quoted 40 lines
--Mark
Quoted 34 lines · On 10/10/17 2:46 AM, [email protected] wrote:
From: Wenzong Fan <[email protected]>
Update definition of AUDITH, PAMH according to the upstream changes for Makefiles:
commit 89ce96cac6ce5eeed78cb39c58514cd68494d7aa ... -ifeq ($(PAMH), /usr/include/security/pam_appl.h) +ifeq ($(PAMH), y) ... -ifeq ($(AUDITH), /usr/include/libaudit.h) +ifeq ($(AUDITH), y)Signed-off-by Wenzong Fan <[email protected]>--- recipes-security/selinux/policycoreutils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-security/selinux/policycoreutils.inc +2
-2@@ -118,8 +118,8 @@ export STAGING_LIBDIR export BUILD_SYS export HOST_SYS -AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" -PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" +AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo y`" +PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo y`" EXTRA_OEMAKE += "${@target_selinux(d, 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ')} INOTIFYH=n" EXTRA_OEMAKE += "PREFIX=${D}" EXTRA_OEMAKE += "INITDIR=${D}/etc/init.d"