diff options
author | Jason Andryuk <jandryuk@gmail.com> | 2021-10-27 10:03:55 -0400 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2021-11-23 12:29:30 -0500 |
commit | 0de5dc55459c0a8eb8527ea03521af2ee5793b39 (patch) | |
tree | 1130a4387380b279dbe394c5a2177953d3255424 | |
parent | 46bcf059a131843e18df65056de520ab24861182 (diff) | |
download | meta-selinux-0de5dc55459c0a8eb8527ea03521af2ee5793b39.tar.gz |
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.
Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | recipes-devtools/e2fsprogs/e2fsprogs_selinux.inc | 2 | ||||
-rw-r--r-- | recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch | 45 |
2 files changed, 0 insertions, 47 deletions
diff --git a/recipes-devtools/e2fsprogs/e2fsprogs_selinux.inc b/recipes-devtools/e2fsprogs/e2fsprogs_selinux.inc index 9cbb7fe..81fe7b7 100644 --- a/recipes-devtools/e2fsprogs/e2fsprogs_selinux.inc +++ b/recipes-devtools/e2fsprogs/e2fsprogs_selinux.inc | |||
@@ -1,3 +1 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | |
2 | |||
3 | SRC_URI += "file://misc_create_inode.c-label_rootfs.patch" | ||
diff --git a/recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch b/recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch deleted file mode 100644 index 046e521..0000000 --- a/recipes-devtools/e2fsprogs/files/misc_create_inode.c-label_rootfs.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | From: Philip Tricca <flihp@twobit.us> | ||
2 | To: tytso@mit.edu | ||
3 | Cc: liezhi.yang@windriver.com | ||
4 | Date: Sat, 20 Feb 2016 18:58:58 +0000 | ||
5 | Subject: [PATCH] misc/create_inode.c: Copy xattrs from root directory when populating fs. | ||
6 | |||
7 | When copying a file system using the -d option the xattrs from the root | ||
8 | directory need to be copied before the populate_fs recusion starts. | ||
9 | |||
10 | Signed-off-by: Philip Tricca <flihp@twobit.us> | ||
11 | Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> | ||
12 | |||
13 | --- | ||
14 | misc/create_inode.c | 8 ++++++++ | ||
15 | 1 file changed, 8 insertions(+) | ||
16 | |||
17 | diff --git a/misc/create_inode.c b/misc/create_inode.c | ||
18 | index a7b6d348..cfd15922 100644 | ||
19 | --- a/misc/create_inode.c | ||
20 | +++ b/misc/create_inode.c | ||
21 | @@ -979,6 +979,13 @@ errcode_t populate_fs2(ext2_filsys fs, ext2_ino_t parent_ino, | ||
22 | return retval; | ||
23 | } | ||
24 | |||
25 | + retval = set_inode_xattr(fs, root, source_dir); | ||
26 | + if (retval) { | ||
27 | + com_err(__func__, retval, | ||
28 | + _("while setting xattrs for \"%s\""), source_dir); | ||
29 | + goto out; | ||
30 | + } | ||
31 | + | ||
32 | file_info.path_len = 0; | ||
33 | file_info.path_max_len = 255; | ||
34 | file_info.path = calloc(file_info.path_max_len, 1); | ||
35 | @@ -987,6 +994,7 @@ errcode_t populate_fs2(ext2_filsys fs, ext2_ino_t parent_ino, | ||
36 | &file_info, fs_callbacks); | ||
37 | |||
38 | free(file_info.path); | ||
39 | +out: | ||
40 | free(hdlinks.hdl); | ||
41 | return retval; | ||
42 | } | ||
43 | -- | ||
44 | 2.11.1 | ||
45 | |||