summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2017-09-08 10:44:23 -0500
committerMark Hatle <mark.hatle@windriver.com>2017-09-14 08:29:01 -0500
commit4fefe83c3203c11fadbe43637a3058284b60427b (patch)
treeaf4b33f05100c12ed16851f5dd4129f0e176da25 /recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch
parent694b8d1f1a590083e4445d6941f24b412ec0f206 (diff)
downloadmeta-selinux-4fefe83c3203c11fadbe43637a3058284b60427b.tar.gz
Refactor to conform to YP Compat requirements
Change the references to check for the distribution flag of 'selinux' being set before taking any action within the bbappends. This prevents the signature from being modified. Also remove PR changes, as they are no longer allowed. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch')
-rw-r--r--recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch b/recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch
new file mode 100644
index 0000000..b87c414
--- /dev/null
+++ b/recipes-devtools/e2fsprogs/files/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch
@@ -0,0 +1,20 @@
1Add xattr name index for xattrs with the 'security' prefix. These are defined
2in the ext(2|3|4)/xattr.h in the kernel. We use the EXT2 prefix for consistency
3with e2fslibs naming.
4
5Signed-off-by: Philip Tricca <flihp@twobit.us>
6
7Index: e2fsprogs-1.42.9/lib/ext2fs/ext2_ext_attr.h
8===================================================================
9--- e2fsprogs-1.42.9.orig/lib/ext2fs/ext2_ext_attr.h
10+++ e2fsprogs-1.42.9/lib/ext2fs/ext2_ext_attr.h
11@@ -15,6 +15,9 @@
12 /* Maximum number of references to one attribute block */
13 #define EXT2_EXT_ATTR_REFCOUNT_MAX 1024
14
15+/* Name indexes */
16+#define EXT2_XATTR_INDEX_SECURITY 6
17+
18 struct ext2_ext_attr_header {
19 __u32 h_magic; /* magic number for identification */
20 __u32 h_refcount; /* reference count */