diff options
author | Philip Tricca <flihp@twobit.us> | 2015-06-17 15:30:55 -0700 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-08-08 16:43:23 -0400 |
commit | b2ce05b5c18289a895f32fa30d8b47c44aa1de53 (patch) | |
tree | d5f3a42891f5d38100d62e6d0ccfbeb192b1fba4 | |
parent | e9b28794f168ca20fc5477f46a65135eb19248a4 (diff) | |
download | meta-selinux-b2ce05b5c18289a895f32fa30d8b47c44aa1de53.tar.gz |
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>
-rw-r--r-- | recipes-devtools/e2fsprogs/e2fsprogs/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch | 20 | ||||
-rw-r--r-- | recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/recipes-devtools/e2fsprogs/e2fsprogs/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch b/recipes-devtools/e2fsprogs/e2fsprogs/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch new file mode 100644 index 0000000..b87c414 --- /dev/null +++ b/recipes-devtools/e2fsprogs/e2fsprogs/lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | Add xattr name index for xattrs with the 'security' prefix. These are defined | ||
2 | in the ext(2|3|4)/xattr.h in the kernel. We use the EXT2 prefix for consistency | ||
3 | with e2fslibs naming. | ||
4 | |||
5 | Signed-off-by: Philip Tricca <flihp@twobit.us> | ||
6 | |||
7 | Index: 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 */ | ||
diff --git a/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend b/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend index 3950bf7..a4576b1 100644 --- a/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend +++ b/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bbappend | |||
@@ -3,4 +3,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | |||
3 | SRC_URI += " \ | 3 | SRC_URI += " \ |
4 | file://misc-xattr-add-xattr-module-stub.patch \ | 4 | file://misc-xattr-add-xattr-module-stub.patch \ |
5 | file://mke2fs.c-create_inode.c-copy-xattrs.patch \ | 5 | file://mke2fs.c-create_inode.c-copy-xattrs.patch \ |
6 | file://lib-ext2fs-ext2_ext_attr.h-add-xattr-index.patch \ | ||
6 | " | 7 | " |