libsemanage-2.7-5.fc28
- free genhomedircon fallback user - Rebuild with libsepol-2.7-3 and libselinux-2.7-6
This commit is contained in:
parent
7e4d093f54
commit
6561fe9a7f
@ -147,7 +147,7 @@ index 0b063b1..98490ab 100644
|
|||||||
+ return dbase_list(handle, dconfig, records, count);
|
+ return dbase_list(handle, dconfig, records, count);
|
||||||
+}
|
+}
|
||||||
diff --git libsemanage-2.7/src/genhomedircon.c libsemanage-2.7/src/genhomedircon.c
|
diff --git libsemanage-2.7/src/genhomedircon.c libsemanage-2.7/src/genhomedircon.c
|
||||||
index b9a74b7..27a269e 100644
|
index b9a74b7..d09d82f 100644
|
||||||
--- libsemanage-2.7/src/genhomedircon.c
|
--- libsemanage-2.7/src/genhomedircon.c
|
||||||
+++ libsemanage-2.7/src/genhomedircon.c
|
+++ libsemanage-2.7/src/genhomedircon.c
|
||||||
@@ -1345,8 +1345,8 @@ int semanage_genhomedircon(semanage_handle_t * sh,
|
@@ -1345,8 +1345,8 @@ int semanage_genhomedircon(semanage_handle_t * sh,
|
||||||
@ -161,6 +161,17 @@ index b9a74b7..27a269e 100644
|
|||||||
|
|
||||||
s.fallback = calloc(1, sizeof(genhomedircon_user_entry_t));
|
s.fallback = calloc(1, sizeof(genhomedircon_user_entry_t));
|
||||||
if (s.fallback == NULL) {
|
if (s.fallback == NULL) {
|
||||||
|
@@ -1385,7 +1385,9 @@ done:
|
||||||
|
if (out != NULL)
|
||||||
|
fclose(out);
|
||||||
|
|
||||||
|
- pop_user_entry(&(s.fallback));
|
||||||
|
+ while (s.fallback)
|
||||||
|
+ pop_user_entry(&(s.fallback));
|
||||||
|
+
|
||||||
|
ignore_free();
|
||||||
|
|
||||||
|
return retval;
|
||||||
diff --git libsemanage-2.7/src/handle.h libsemanage-2.7/src/handle.h
|
diff --git libsemanage-2.7/src/handle.h libsemanage-2.7/src/handle.h
|
||||||
index 889871d..1780ac8 100644
|
index 889871d..1780ac8 100644
|
||||||
--- libsemanage-2.7/src/handle.h
|
--- libsemanage-2.7/src/handle.h
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")}
|
||||||
|
|
||||||
%define libsepolver 2.7-2
|
%define libsepolver 2.7-3
|
||||||
%define libselinuxver 2.7-5
|
%define libselinuxver 2.7-6
|
||||||
|
|
||||||
Summary: SELinux binary policy manipulation library
|
Summary: SELinux binary policy manipulation library
|
||||||
Name: libsemanage
|
Name: libsemanage
|
||||||
Version: 2.7
|
Version: 2.7
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/libsemanage-2.7.tar.gz
|
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/libsemanage-2.7.tar.gz
|
||||||
# download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh
|
# download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh
|
||||||
# run:
|
# run:
|
||||||
# $ VERSION=2.7 ./make-fedora-selinux-patch.sh libsemanage
|
# $ VERSION=2.7 ./make-fedora-selinux-patch.sh libsemanage
|
||||||
# HEAD https://github.com/fedora-selinux/selinux/commit/4247fad665261169b430895f0ab10f56eb33dd10
|
# HEAD https://github.com/fedora-selinux/selinux/commit/2d0b90c1d95ec908f94c06337ec07a96b7d1205e
|
||||||
Patch1: libsemanage-fedora.patch
|
Patch1: libsemanage-fedora.patch
|
||||||
URL: https://github.com/SELinuxProject/selinux/wiki
|
URL: https://github.com/SELinuxProject/selinux/wiki
|
||||||
Source1: semanage.conf
|
Source1: semanage.conf
|
||||||
@ -206,6 +206,10 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%endif # if with_python3
|
%endif # if with_python3
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 22 2017 Petr Lautrbach <plautrba@redhat.com> - 2.7-5
|
||||||
|
- free genhomedircon fallback user
|
||||||
|
- Rebuild with libsepol-2.7-3 and libselinux-2.7-6
|
||||||
|
|
||||||
* Fri Oct 20 2017 Petr Lautrbach <plautrba@redhat.com> - 2.7-4
|
* Fri Oct 20 2017 Petr Lautrbach <plautrba@redhat.com> - 2.7-4
|
||||||
- Add support for listing fcontext.homedirs file (#1409813)
|
- Add support for listing fcontext.homedirs file (#1409813)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user