Skip to contentSkip to conversation

sysvinit: remove permissions override

PATCH New Adrian Dudau 1 participant 6 messages Mar 14, 2016

lore
Share & tools
lore
#0 lore raw

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
deleted file mode 100644
index 4fd3c00..0000000
@@ -1,3 +0,0 @@
-do_install_append(){
-        chmod o+x ${D}${base_sbindir}/shutdown
-}
Signature · 1 line
1.9.1
#3 lore raw

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
index 6c32306..21e0954 100644
@@ -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
#1 lore raw

PATCH 2/6 packagegroup-cgl-middleware: update drbd package name

In reply to Adrian Dudau

drbd 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
index 9d9790e..23735f3 100644
@@ -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
#2 lore raw

PATCH 3/6 remove lksctp-tools from meta-cgl

In reply to Adrian Dudau

lksctp-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
index 23735f3..448e038 100644
@@ -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
deleted file mode 100644
index 454c9ff..0000000
@@ -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
#4 lore raw

PATCH 5/6 cgl_common_security_flags.inc: Add linker override for audit

In reply to Adrian Dudau

Building 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
index 358ce58..563a6e4 100644
@@ -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
#5 lore raw

PATCH 6/6 cgl_common_security_flags.inc: Remove compiler override for openhpi

In reply to Adrian Dudau

Compiling 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
index 563a6e4..42c612c 100644
@@ -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