Load libsepol.so.1 instead of libsepol.so
libsepol.so symlink is usually part of the development package, try to load the library directly instead.
This commit is contained in:
parent
a0e52def36
commit
d92388a8b0
|
@ -10,7 +10,7 @@ from optparse import OptionParser
|
||||||
|
|
||||||
import ctypes
|
import ctypes
|
||||||
|
|
||||||
sepol = ctypes.cdll.LoadLibrary('libsepol.so')
|
sepol = ctypes.cdll.LoadLibrary('libsepol.so.1')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import selinux
|
import selinux
|
||||||
|
|
Loading…
Reference in New Issue