mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
ChangeLog: https://github.com/SELinuxProject/selinux/releases/tag/3.9 * Support static-only builds with DISABLE_SHARED=y * Add restore option to modify user and role portions * setfiles: Add -U option to modify user and role portions * semanage.conf: Add relabel_store config option * semodule: Add [-g PATH |--config=PATH] for an alternate path for the semanage config * libselinux: Fix local literal fcontext definitions priority * libselinux: Fix order for path substitutions * libsepol: Add new 'netif_wildcard' policy capability * checkpolicy: Add support for wildcard netifcon names * libsepol: Allow multiple policycap statements * libsepol: Support genfs_seclabel_wildcard * Replace all links to selinuxproject.org * Bug fixes Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From d555e83f8ca2482c673981250d72fbc4ce29c44c Mon Sep 17 00:00:00 2001
|
|
From: Renato Caldas <renato@calgera.com>
|
|
Date: Thu, 29 Jun 2023 13:59:11 +0100
|
|
Subject: [PATCH] libselinux: restore: drop the obsolete LSF transitional API.
|
|
|
|
The preferred way to enable LSF support on 32 bit systems is to define
|
|
_FILE_OFFSET_BITS=64 when building selinux.
|
|
|
|
Upstream-Status: Submitted [https://github.com/SELinuxProject/selinux/pull/401]
|
|
|
|
Signed-off-by: Renato Caldas <renato@calgera.com>
|
|
---
|
|
libselinux/src/selinux_restorecon.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/libselinux/src/selinux_restorecon.c b/libselinux/src/selinux_restorecon.c
|
|
index 39eabeb9..128aff4b 100644
|
|
--- a/libselinux/src/selinux_restorecon.c
|
|
+++ b/libselinux/src/selinux_restorecon.c
|
|
@@ -439,7 +439,7 @@ static int filespec_add(ino_t ino, const char *con, const char *file,
|
|
file_spec_t *prevfl, *fl;
|
|
uint32_t h;
|
|
int ret;
|
|
- struct stat64 sb;
|
|
+ struct stat sb;
|
|
|
|
__pthread_mutex_lock(&fl_mutex);
|
|
|
|
@@ -453,7 +453,7 @@ static int filespec_add(ino_t ino, const char *con, const char *file,
|
|
for (prevfl = &fl_head[h], fl = fl_head[h].next; fl;
|
|
prevfl = fl, fl = fl->next) {
|
|
if (ino == fl->ino) {
|
|
- ret = lstat64(fl->file, &sb);
|
|
+ ret = lstat(fl->file, &sb);
|
|
if (ret < 0 || sb.st_ino != ino) {
|
|
freecon(fl->con);
|
|
free(fl->file);
|
|
--
|
|
2.34.1
|
|
|