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.8 * libsemanage: Preserve file context and ownership in policy store * libselinux: deprecate security_disable(3) * libsepol: Support nlmsg extended permissions * libsepol: Add policy capability netlink_xperm * libsemanage: Optionally allow duplicate declarations * policycoreutils: introduce unsetfiles * libselinux/utils: introduce selabel_compare * improved selabel_lookup performance * libselinux: support parallel usage of selabel_lookup(3) * libsepol: add support for xperms in conditional policies * Improved man pages * Code improvements and bug fixes * Always build for LFS mode on 32-bit archs. * libsemanage: Mute error messages from selinux_restorecon introduced in 3.8-rc1 * Regex spec ordering is restored to pre 3.8-rc1 * Binary fcontext files format changed, files using old format are ignored * Code improvements and bug fixes License-Update: White space cleanup for libsemanage/LICENSE Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From f33b426680492629d3d8ed664049cbe584f26f18 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>
|
|
---
|
|
src/selinux_restorecon.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/selinux_restorecon.c b/src/selinux_restorecon.c
|
|
index bc6ed93..3bc0d8d 100644
|
|
--- a/src/selinux_restorecon.c
|
|
+++ b/src/selinux_restorecon.c
|
|
@@ -438,7 +438,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);
|
|
|
|
@@ -452,7 +452,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.25.1
|
|
|