e2fsprogs: Add xattr security prefix data to lib/ext2fs/ext2_ext_attr.h

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
Philip Tricca 2015-06-17 15:30:55 -07:00 committed by Joe MacDonald
parent e9b28794f1
commit b2ce05b5c1
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
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 <flihp@twobit.us>
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 */

View File

@ -3,4 +3,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += " \
file://misc-xattr-add-xattr-module-stub.patch \
file://mke2fs.c-create_inode.c-copy-xattrs.patch \
file://lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch \
"