Toolchain 3.9 update OBS-URL: https://build.opensuse.org/request/show/1294340 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/policycoreutils?expand=0&rev=205
15 lines
670 B
Diff
15 lines
670 B
Diff
Index: policycoreutils-3.9/selinux-python-3.9/sepolicy/sepolicy/__init__.py
|
|
===================================================================
|
|
--- policycoreutils-3.9.orig/selinux-python-3.9/sepolicy/sepolicy/__init__.py
|
|
+++ policycoreutils-3.9/selinux-python-3.9/sepolicy/sepolicy/__init__.py
|
|
@@ -1246,7 +1246,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
|
|
|