286b5423e6
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/libselinux.git#8899502a2886da0bc266ad0ddb79351d4e1a6c90
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
From 4a142ac46a116feb9f978eaec68a30efef979c73 Mon Sep 17 00:00:00 2001
|
|
From: Petr Lautrbach <plautrba@redhat.com>
|
|
Date: Fri, 9 Oct 2020 15:00:49 +0200
|
|
Subject: [PATCH] libsepol: Bump libsepol.so version
|
|
|
|
Previous commits removed some symbols and broke ABI, therefore we need to change
|
|
SONAME.
|
|
|
|
See the following quotes from distribution guidelines:
|
|
|
|
https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#run-time-shared-libraries
|
|
|
|
Every time the shared library ABI changes in a way that may break
|
|
binaries linked against older versions of the shared library, the SONAME
|
|
of the library and the corresponding name for the binary package
|
|
containing the runtime shared library should change.
|
|
|
|
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_downstream_so_name_versioning
|
|
|
|
When new versions of the library are released, you should use an ABI
|
|
comparison tool to check for ABI differences in the built shared
|
|
libraries. If it detects any incompatibilities, bump the n number by
|
|
one.
|
|
|
|
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
|
|
---
|
|
libselinux/src/load_policy.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libselinux/src/load_policy.c b/libselinux/src/load_policy.c
|
|
index 2aea826f863e..0034fa53d6e6 100644
|
|
--- a/libselinux/src/load_policy.c
|
|
+++ b/libselinux/src/load_policy.c
|
|
@@ -76,7 +76,7 @@ int selinux_mkload_policy(int preservebools __attribute__((unused)))
|
|
#ifdef SHARED
|
|
char *errormsg = NULL;
|
|
void *libsepolh = NULL;
|
|
- libsepolh = dlopen("libsepol.so.1", RTLD_NOW);
|
|
+ libsepolh = dlopen("libsepol.so.2", RTLD_NOW);
|
|
if (libsepolh) {
|
|
usesepol = 1;
|
|
dlerror();
|
|
--
|
|
2.29.0
|
|
|