Skip to contentSkip to conversation

Load libsepol.so.1 instead of libsepol.so

PATCH In review Laurent Bigonville 2 participants 2 messages Oct 27, 2015 – Oct 28, 2015 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Load libsepol.so.1 instead of libsepol.so

From: Laurent Bigonville <[email protected]>

libsepol.so symlink is usually part of the development package, try to load the library directly instead.

---
 libsemanage/utils/semanage_migrate_store | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libsemanage/utils/semanage_migrate_store +1 -1
index b5eefaa..0ebd285 100755
@@ -10,7 +10,7 @@ from optparse import OptionParser
 
 import ctypes
 
-sepol = ctypes.cdll.LoadLibrary('libsepol.so')
+sepol = ctypes.cdll.LoadLibrary('libsepol.so.1')
 
 try:
 	import selinux
Signature · 1 line
2.6.2
#1 lore raw
Quoted 4 lines · Laurent Bigonville

From: Laurent Bigonville <[email protected]>

libsepol.so symlink is usually part of the development package, try to load the library directly instead.

Thanks, applied. Next time, please remember to add your Signed-off-by and include a prefix in the subject line indicating the component affected (e.g. [PATCH] libsemanage: semanage_migrate_store: Load libsepol.so.1 instead of libsepol.so).

Quoted 18 lines
---
  libsemanage/utils/semanage_migrate_store | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
libsemanage/utils/semanage_migrate_store +1 -1
index b5eefaa..0ebd285 100755
@@ -10,7 +10,7 @@ from optparse import OptionParser
 
  import ctypes
 
-sepol = ctypes.cdll.LoadLibrary('libsepol.so')
+sepol = ctypes.cdll.LoadLibrary('libsepol.so.1')
 
  try:
  	import selinux