sysvinit: remove permissions override
PATCH 1/6 sysvinit: remove permissions override
This leads to shutdown command being executable by everybody, which is a huge security issue. If there are issues related to the way this is configured in the main recipe, they should be handled differently.
--- meta-cgl-common/recipes-core/sysvinit/sysvinit_2.%.bbappend | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 meta-cgl-common/recipes-core/sysvinit/sysvinit_2.%.bbappend
meta-cgl-common/recipes-core/sysvinit/sysvinit_2.%.bbappend deleted +0 -3
@@ -1,3 +0,0 @@ -do_install_append(){ - chmod o+x ${D}${base_sbindir}/shutdown -}
Signature · 1 line
1.9.1
PATCH 4/6 makedumpfile: compile with shared libraries
poky distro doesn't include static libraries by defaule anymore, so we should use shared libraries. If at a later point it proves that we must compile with static library we can override the no-static-libs include in our distro definition.
--- meta-cgl-common/recipes-cgl/makedumpfile/makedumpfile_1.5.8.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-cgl-common/recipes-cgl/makedumpfile/makedumpfile_1.5.8.bb +1 -1
@@ -12,7 +12,7 @@ SRC_URI[makedumpfile.sha256sum] = "dd9c6c40c1ae6774b61bbe7b53f5ebbee9734f576d8ec DEPENDS = "zlib elfutils bzip2" -EXTRA_OEMAKE = "TARGET=${TARGET_ARCH}" +EXTRA_OEMAKE = "TARGET=${TARGET_ARCH} LINKTYPE=dynamic" do_install() { install -d ${D}${bindir}/
Signature · 1 line
1.9.1
PATCH 2/6 packagegroup-cgl-middleware: update drbd package name
In reply to Adrian Dudaudrbd recipe has been renamed to drbd-utils in meta-networking
--- meta-cgl-common/packagegroups/packagegroup-cgl-middleware.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-cgl-common/packagegroups/packagegroup-cgl-middleware.bb +1 -1
@@ -57,7 +57,7 @@ RDEPENDS_packagegroup-cgl-middleware = "\ cluster-glue \ resource-agents \ ifenslave \ - drbd \ + drbd-utils \ openl2tp \ umip \ dmidecode \
Signature · 1 line
1.9.1
PATCH 3/6 remove lksctp-tools from meta-cgl
In reply to Adrian Dudaulksctp-tools was initially added with the aim to fulfill STD.3.1. The Linux kernel >2.6 includes support for the base features of SCTP, so there is no need for the package.
Besides that, there is already a recipe defined in meta-networking that is kept up to date. If a P2 requirement will require lksctp-tools, we can add it from there.
CGL requirement STD.3.1
--- .../packagegroups/packagegroup-cgl-middleware.bb | 1 - .../lksctp-tools/files/static-libraries-fix.patch | 60 ---------------------- .../recipes-cgl/lksctp-tools/lksctp-tools.inc | 47 ----------------- .../recipes-cgl/lksctp-tools/lksctp-tools_1.0.7.bb | 38 -------------- 4 files changed, 146 deletions(-) delete mode 100644 meta-cgl-common/recipes-cgl/lksctp-tools/files/static-libraries-fix.patch delete mode 100644 meta-cgl-common/recipes-cgl/lksctp-tools/lksctp-tools.inc delete mode 100644 meta-cgl-common/recipes-cgl/lksctp-tools/lksctp-tools_1.0.7.bb
meta-cgl-common/packagegroups/packagegroup-cgl-middleware.bb +0 -1
@@ -49,7 +49,6 @@ RDEPENDS_packagegroup-cgl-middleware = "\ vlan \ corosync \ iscsi-initiator-utils \ - lksctp-tools \ openais \ openipmi \ openhpi \
meta-cgl-common/recipes-cgl/lksctp-tools/files/static-libraries-fix.patch deleted +0 -60
60 lines not on this page · raw message
meta-cgl-common/recipes-cgl/lksctp-tools/lksctp-tools.inc deleted +0 -47
47 lines not on this page · raw message
meta-cgl-common/recipes-cgl/lksctp-tools/lksctp-tools_1.0.7.bb deleted +0 -38
@@ -1,38 +0,0 @@ -require lksctp-tools.inc - -FILESEXTRAPATHS_prepend = "${THISDIR}/files:" -SRC_URI += " \ - ${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-${PV}.tar.gz \ - file://static-libraries-fix.patch \ - " - -inherit pkgconfig autotools - -SRC_URI[md5sum] = "047562b40537eb3be5d5ec3ae0a2198b" -SRC_URI[sha256sum] = "e920e89d110cff9847f1d86a1d7a23a156a8abcc9e65a35655d687fd08377595" - -FILES_${PN}-dev += " \ - ${libdir}/lksctp-tools/*.so \ - ${libdir}/*.so \ - ${base_libdir}/*.so \ - ${base_libdir}/lksctp-tools/*.so \ - /usr/lib/lksctp-tools/*.so" -FILES_${PN}-staticdev = " \ - ${libdir}/lksctp-tools/*.a \ - ${libdir}/*.a \ - ${base_libdir}/*.a \ - ${base_libdir}/lksctp-tools/*.a \ - /usr/lib/lksctp-tools/*.a" - -FILES_${PN}-withsctp-dev = " \ - ${libdir}/lksctp-tools/*.so \ - ${libdir}/*.so \ - ${base_libdir}/*.so \ - ${base_libdir}/lksctp-tools/*.so \ - /usr/lib/lksctp-tools/*.so" -FILES_${PN}-withsctp-staticdev = " \ - ${libdir}/lksctp-tools/*.a \ - ${libdir}/*.a \ - ${base_libdir}/*.a \ - ${base_libdir}/lksctp-tools/*.a \ - /usr/lib/lksctp-tools/*.a"
Signature · 1 line
1.9.1
PATCH 5/6 cgl_common_security_flags.inc: Add linker override for audit
In reply to Adrian DudauBuilding audit with -fstack-protector-strong throws link errors on the native compiler. Add exception to avoid that.
--- meta-cgl-common/conf/distro/include/cgl_common_security_flags.inc | 1 + 1 file changed, 1 insertion(+)
meta-cgl-common/conf/distro/include/cgl_common_security_flags.inc +1 -0
@@ -1 +1,2 @@ SECURITY_CFLAGS_pn-openhpi = "${SECURITY_NO_PIE_CFLAGS}" +SECURITY_LDFLAGS_remove_pn-audit = "-fstack-protector-strong"
Signature · 1 line
1.9.1
PATCH 6/6 cgl_common_security_flags.inc: Remove compiler override for openhpi
In reply to Adrian DudauCompiling openhpi with -fPIE works well now, so the override doesn't seem necessary anymore.
--- meta-cgl-common/conf/distro/include/cgl_common_security_flags.inc | 1 - 1 file changed, 1 deletion(-)
meta-cgl-common/conf/distro/include/cgl_common_security_flags.inc +0 -1
@@ -1,2 +1 @@ -SECURITY_CFLAGS_pn-openhpi = "${SECURITY_NO_PIE_CFLAGS}" SECURITY_LDFLAGS_remove_pn-audit = "-fstack-protector-strong"
Signature · 1 line
1.9.1