mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
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:
parent
e9b28794f1
commit
b2ce05b5c1
|
|
@ -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 */
|
||||
|
|
@ -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 \
|
||||
"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user