summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2023-12-16 16:21:30 +0800
committerJoe MacDonald <joe@deserted.net>2023-12-18 11:06:30 -0500
commit62b9c816a5000dc01b28e78213bde26b58cbca9d (patch)
tree15c1874f9ce12e9751b83584da40bf32629779f4 /recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch
parent1b43d4d92102ac8aa11fc5da566f28035232ec05 (diff)
downloadmeta-selinux-62b9c816a5000dc01b28e78213bde26b58cbca9d.tar.gz
libselinux: upgrade 3.5 -> 3.6
* Refresh patches. * Merge libselinux and libselinux-python. The previous libselinux recipe was split into libselinux and libselinux-python due to loop dependency[1]. Now this error is gone, we can merge these two recipes into one again. [1] https://git.yoctoproject.org/meta-selinux/commit/?id=7bb1507928f2e0f54ff8eac4135e15e821cdb1e2 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch')
-rw-r--r--recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch21
1 files changed, 11 insertions, 10 deletions
diff --git a/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch b/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch
index 5b37395..0cd8f20 100644
--- a/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch
+++ b/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch
@@ -1,4 +1,4 @@
1From a822176c6f181d1e6989900dfc58bbdab6d9065a Mon Sep 17 00:00:00 2001 1From 6c2af45ec8cff9b282d599dc098db0ca127bdc59 Mon Sep 17 00:00:00 2001
2From: Renato Caldas <renato@calgera.com> 2From: Renato Caldas <renato@calgera.com>
3Date: Thu, 29 Jun 2023 13:59:11 +0100 3Date: Thu, 29 Jun 2023 13:59:11 +0100
4Subject: [PATCH] libselinux: restore: drop the obsolete LSF transitional API. 4Subject: [PATCH] libselinux: restore: drop the obsolete LSF transitional API.
@@ -10,23 +10,23 @@ Upstream-Status: Submitted [https://github.com/SELinuxProject/selinux/pull/401]
10 10
11Signed-off-by: Renato Caldas <renato@calgera.com> 11Signed-off-by: Renato Caldas <renato@calgera.com>
12--- 12---
13 libselinux/src/selinux_restorecon.c | 4 ++-- 13 src/selinux_restorecon.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-) 14 1 file changed, 2 insertions(+), 2 deletions(-)
15 15
16diff --git a/libselinux/src/selinux_restorecon.c b/libselinux/src/selinux_restorecon.c 16diff --git a/src/selinux_restorecon.c b/src/selinux_restorecon.c
17index 7ef2d45d..2ff920b0 100644 17index 38f10f1..5b3d035 100644
18--- a/src/selinux_restorecon.c 18--- a/src/selinux_restorecon.c
19+++ b/src/selinux_restorecon.c 19+++ b/src/selinux_restorecon.c
20@@ -437,7 +437,7 @@ static int filespec_add(ino_t ino, const char *con, const char *file, 20@@ -436,7 +436,7 @@ static int filespec_add(ino_t ino, const char *con, const char *file,
21 file_spec_t *prevfl, *fl; 21 file_spec_t *prevfl, *fl;
22 uint32_t h; 22 uint32_t h;
23 int ret; 23 int ret;
24- struct stat64 sb; 24- struct stat64 sb;
25+ struct stat sb; 25+ struct stat sb;
26 26
27 __pthread_mutex_lock(&fl_mutex); 27 __pthread_mutex_lock(&fl_mutex);
28 28
29@@ -451,7 +451,7 @@ static int filespec_add(ino_t ino, const char *con, const char *file, 29@@ -450,7 +450,7 @@ static int filespec_add(ino_t ino, const char *con, const char *file,
30 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; 30 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl;
31 prevfl = fl, fl = fl->next) { 31 prevfl = fl, fl = fl->next) {
32 if (ino == fl->ino) { 32 if (ino == fl->ino) {
@@ -35,5 +35,6 @@ index 7ef2d45d..2ff920b0 100644
35 if (ret < 0 || sb.st_ino != ino) { 35 if (ret < 0 || sb.st_ino != ino) {
36 freecon(fl->con); 36 freecon(fl->con);
37 free(fl->file); 37 free(fl->file);
38-- 38--
392.41.0 392.25.1
40