Fix dunfell build
cover Fix dunfell build
meta-selinux fails to build libselinux and e2fsprogs. These patches fix that and then removes the unused e2fsprogs overrides.
Jason Andryuk (3):
e2fsprogs: Remove misc_create_inode.c-label_rootfs.patch Remove e2fsprogs override
libselinux: Fix restorecon_set_sehandle.patch context
.../e2fsprogs/e2fsprogs_%.bbappend | 1 - .../e2fsprogs/e2fsprogs_selinux.inc | 3 -- ...t2fs-ext2_ext_attr.h-add-xattr-index.patch | 20 --------- .../misc_create_inode.c-label_rootfs.patch | 45 ------------------- ...e-in-selinux_restorecon_set_sehandle.patch | 4 +- 5 files changed, 2 insertions(+), 71 deletions(-) delete mode 100644 recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend delete mode 100644 recipes-devtools/e2fsprogs/e2fsprogs_selinux.inc delete mode 100644 recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch delete mode 100644 recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch
Signature · 1 line
2.31.1
PATCH 1/3 e2fsprogs: Remove misc_create_inode.c-label_rootfs.patch
An equivalent patch was merged into 1.45.7: commit 7616fd6a599e "create_inode: set xattrs to the root directory as well". The existing one still applies and actualy breaks building because of duplicate lables. Remove it.
--- .../e2fsprogs/e2fsprogs_selinux.inc | 2 - .../misc_create_inode.c-label_rootfs.patch | 45 ------------------- 2 files changed, 47 deletions(-) delete mode 100644 recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch
recipes-devtools/e2fsprogs/e2fsprogs_selinux.inc +0 -2
@@ -1,3 +1 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" - -SRC_URI += "file://misc_create_inode.c-label_rootfs.patch"
recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch deleted +0 -45
45 lines not on this page · raw message
Signature · 1 line
2.31.1
PATCH 2/3 Remove e2fsprogs override
In reply to Jason Andryukcommit b2b3ea27e3e3 "e2fsprogs: Superseded by upstream." removed lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch from SRC_URI. It was no longer applied, but the file was not deleted. Do that now.
e2fsprogs_%.bbappend/e2fsprogs_selinux.inc now do nothing, so remove them as well.
--- .../e2fsprogs/e2fsprogs_%.bbappend | 1 - .../e2fsprogs/e2fsprogs_selinux.inc | 1 - ...t2fs-ext2_ext_attr.h-add-xattr-index.patch | 20 ------------------- 3 files changed, 22 deletions(-) delete mode 100644 recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend delete mode 100644 recipes-devtools/e2fsprogs/e2fsprogs_selinux.inc delete mode 100644 recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch
recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend deleted +0 -1
@@ -1 +0,0 @@ -require ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', '${BPN}_selinux.inc', '', d)}
recipes-devtools/e2fsprogs/e2fsprogs_selinux.inc deleted +0 -1
@@ -1 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch deleted +0 -20
@@ -1,20 +0,0 @@ -Add xattr name index for xattrs with the 'security' prefix. These are defined -in the ext(2|3|4)/xattr.h in the kernel. We use the EXT2 prefix for consistency -with e2fslibs naming. - -Signed-off-by: Philip Tricca <[email protected]> - -Index: e2fsprogs-1.42.9/lib/ext2fs/ext2_ext_attr.h -=================================================================== ---- e2fsprogs-1.42.9.orig/lib/ext2fs/ext2_ext_attr.h -+++ e2fsprogs-1.42.9/lib/ext2fs/ext2_ext_attr.h -@@ -15,6 +15,9 @@ - /* Maximum number of references to one attribute block */ - #define EXT2_EXT_ATTR_REFCOUNT_MAX 1024 - -+/* Name indexes */ -+#define EXT2_XATTR_INDEX_SECURITY 6 -+ - struct ext2_ext_attr_header { - __u32 h_magic; /* magic number for identification */ - __u32 h_refcount; /* reference count */
Signature · 1 line
2.31.1
PATCH 3/3 libselinux: Fix restorecon_set_sehandle.patch context
In reply to Jason Andryuk0001-Fix-NULL-pointer-use-in-selinux_restorecon_set_sehandle.patch added in commit d6ff5a0e67af "libselinux: Backport NULL pointer fix from 3.1" fails to apply because there is a extra level in the patch context. The patch cannot apply and do_patch fails. Fix the context so it builds again.
--- ...-NULL-pointer-use-in-selinux_restorecon_set_sehandle.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-security/selinux/libselinux/0001-Fix-NULL-pointer-use-in-selinux_restorecon_set_sehandle.patch +2 -2
@@ -17,8 +17,8 @@ Acked-by: Stephen Smalley <[email protected]> diff --git a/libselinux/src/selinux_restorecon.c b/libselinux/src/selinux_restorecon.c index d1ce830c5..6993be6fd 100644 ---- a/libselinux/src/selinux_restorecon.c -+++ b/libselinux/src/selinux_restorecon.c +--- libselinux/src/selinux_restorecon.c ++++ libselinux/src/selinux_restorecon.c @@ -1154,6 +1154,8 @@ void selinux_restorecon_set_sehandle(struct selabel_handle *hndl) size_t num_specfiles, fc_digest_len;
Signature · 1 line
2.31.1