forked from pool/policycoreutils
- Update to version 3.7 https://github.com/SELinuxProject/selinux/releases/tag/3.7 User-visible changes: * audit2allow -C for CIL output mode * sepolgen: adjust parse for refpolicy * Bugfixes: * fixfiles: drop unnecessary \ line endings * setfiles: avoid unsigned integer underflow * python/semanage: Do not sort local fcontext definitions * python/semanage: Allow modifying records on "add" - Refresh get_os_version.patch OBS-URL: https://build.opensuse.org/request/show/1184297 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/policycoreutils?expand=0&rev=187
15 lines
670 B
Diff
15 lines
670 B
Diff
Index: policycoreutils-3.7/selinux-python-3.7/sepolicy/sepolicy/__init__.py
|
|
===================================================================
|
|
--- policycoreutils-3.7.orig/selinux-python-3.7/sepolicy/sepolicy/__init__.py
|
|
+++ policycoreutils-3.7/selinux-python-3.7/sepolicy/sepolicy/__init__.py
|
|
@@ -1245,7 +1245,8 @@ def get_os_version():
|
|
import distro
|
|
system_release = distro.name(pretty=True)
|
|
except (ModuleNotFoundError, OSError, IOError, UnicodeError, subprocess.CalledProcessError):
|
|
- system_release = "Misc"
|
|
+ # make SUSE the default return value on SUSE systems
|
|
+ system_release = "SUSE"
|
|
|
|
return system_release
|
|
|