3
0
forked from pool/libselinux

Compare commits

...

4 Commits

Author SHA256 Message Date
Ana Guerrero
468acd7c9b Accepting request 1222034 from security:SELinux
- Drop check_runlevel from selinux-ready script and remove restorecond
  from check_packages as we don't require it to be selinux-ready.

OBS-URL: https://build.opensuse.org/request/show/1222034
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libselinux?expand=0&rev=81
2024-11-08 10:56:25 +00:00
Hu
841c1458f2 - Drop check_runlevel from selinux-ready script and remove restorecond
from check_packages as we don't require it to be selinux-ready.

OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=176
2024-11-07 08:26:58 +00:00
Ana Guerrero
495bb74c28 Accepting request 1208113 from security:SELinux
OBS-URL: https://build.opensuse.org/request/show/1208113
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libselinux?expand=0&rev=80
2024-10-16 21:35:03 +00:00
Hu
3ca1190ad0 - Add 1231587-build-libselinux-with-swig-4.3.0.patch to fix build
failure with swig 4.3.0 (bsc#1231587)

OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=174
2024-10-15 11:58:51 +00:00
5 changed files with 38 additions and 12 deletions

View File

@ -0,0 +1,22 @@
Index: libselinux-3.7/src/selinuxswig_python.i
===================================================================
--- libselinux-3.7.orig/src/selinuxswig_python.i
+++ libselinux-3.7/src/selinuxswig_python.i
@@ -71,7 +71,7 @@ def install(src, dest):
for (i = 0; i < *$2; i++) {
PyList_SetItem(list, i, PyString_FromString((*$1)[i]));
}
- $result = SWIG_Python_AppendOutput($result, list);
+ $result = SWIG_Python_AppendOutput($result, list, $isvoid);
}
/* return a sid along with the result */
@@ -108,7 +108,7 @@ def install(src, dest):
plist = PyList_New(0);
}
- $result = SWIG_Python_AppendOutput($result, plist);
+ $result = SWIG_Python_AppendOutput($result, plist, $isvoid);
}
/* Makes functions in get_context_list.h return a Python list of contexts */

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 15 11:42:31 UTC 2024 - Cathy Hu <cathy.hu@suse.com>
- Add 1231587-build-libselinux-with-swig-4.3.0.patch to fix build
failure with swig 4.3.0 (bsc#1231587)
-------------------------------------------------------------------
Mon Jul 1 07:53:14 UTC 2024 - Cathy Hu <cathy.hu@suse.com>

View File

@ -39,6 +39,9 @@ Patch5: skip_cycles.patch
# Make linking working even when default pkg-config doesnt provide -lpython<ver>
Patch6: python3.8-compat.patch
Patch7: swig4_moduleimport.patch
%if %{pkg_vcmp swig > 4.2.1}
Patch8: 1231587-build-libselinux-with-swig-4.3.0.patch
%endif
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 7 08:24:33 UTC 2024 - Cathy Hu <cathy.hu@suse.com>
- Drop check_runlevel from selinux-ready script and remove restorecond
from check_packages as we don't require it to be selinux-ready.
-------------------------------------------------------------------
Thu Jul 11 19:47:41 UTC 2024 - Cathy Hu <cathy.hu@suse.com>

View File

@ -167,19 +167,9 @@ check_initupstart()
fi
}
check_runlevel()
{
if [ "$(systemctl is-enabled restorecond.service 2>/dev/null)" == "enabled" ]; then
printf "\tcheck_runlevel: OK. restorecond is enabled on your system\n"
return 0;
fi
printf "\tcheck_runlevel: ERR. please enable restorecond with systemctl enable restorecond.service.\n"
return 1
}
check_packages()
{
PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol2 libsemanage2 restorecond"
PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol2 libsemanage2"
FAIL=0
for i in $PKGLST
@ -240,6 +230,5 @@ check_packages
check_config
check_initupstart
check_pam
check_runlevel
rm -rf $TD