From da3f8479b67f9ea41d29e09238a9fad22caba0ddac4a070c908fb9668f3acef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20=C4=8C=C3=AD=C5=BEek?= Date: Mon, 1 Oct 2018 07:40:16 +0000 Subject: [PATCH] Accepting request 638795 from home:pmonrealgonzalez:branches:security:SELinux - update to version 2.8 * semanage fcontext -l now also lists home directory entries from file_contexts.homedirs. * libsemanage no longer deletes the tmp directory if there is an error while committing the policy transaction, so that any temporary files can be further inspected for debugging purposes (e.g. to examine a particular line of the generated CIL module). The tmp directory will be deleted upon the next transaction, so no manual removal is needed. * When overriding PREFIX, BINDIR, SBINDIR, SHLIBDIR, LIBEXECDIR, etc., DESTDIR has to be removed from the definition. For example on Arch Linux, SBINDIR="${pkgdir}/usr/bin" was changed to SBINDIR="/usr/bin". * PYSITEDIR has been renamed PYTHONLIBDIR (and its definition changed). - Clened with spec-cleaner - update to version 2.8 * semanage fcontext -l now also lists home directory entries from file_contexts.homedirs. * libsemanage no longer deletes the tmp directory if there is an error while committing the policy transaction, so that any temporary files can be further inspected for debugging purposes (e.g. to examine a particular line of the generated CIL module). The tmp directory will be deleted upon the next transaction, so no manual removal is needed. * When overriding PREFIX, BINDIR, SBINDIR, SHLIBDIR, LIBEXECDIR, etc., DESTDIR has to be removed from the definition. For example on Arch Linux, SBINDIR="${pkgdir}/usr/bin" was changed to SBINDIR="/usr/bin". * PYSITEDIR has been renamed PYTHONLIBDIR (and its definition changed). - Clened with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/638795 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=66 --- libsemanage-2.7.tar.gz | 3 --- libsemanage-2.8.tar.gz | 3 +++ libsemanage.changes | 18 ++++++++++++++++++ libsemanage.spec | 12 ++++-------- python-semanage.changes | 18 ++++++++++++++++++ python-semanage.spec | 10 ++++------ 6 files changed, 47 insertions(+), 17 deletions(-) delete mode 100644 libsemanage-2.7.tar.gz create mode 100644 libsemanage-2.8.tar.gz diff --git a/libsemanage-2.7.tar.gz b/libsemanage-2.7.tar.gz deleted file mode 100644 index 321bf2e..0000000 --- a/libsemanage-2.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07e9477714ce6a4557a1fe924ea4cb06501b62d0fa0e3c0dc32a2cf47cb8d476 -size 153465 diff --git a/libsemanage-2.8.tar.gz b/libsemanage-2.8.tar.gz new file mode 100644 index 0000000..446049d --- /dev/null +++ b/libsemanage-2.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c0de8d2c51e5460926c21e371105c84a39087dfd8f8e9f0cc1d017e4cbea8e2 +size 154200 diff --git a/libsemanage.changes b/libsemanage.changes index cbe8a31..e241424 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Thu Sep 27 13:19:59 UTC 2018 - pmonrealgonzalez@suse.com + +- update to version 2.8 + * semanage fcontext -l now also lists home directory entries from + file_contexts.homedirs. + * libsemanage no longer deletes the tmp directory if there is an error + while committing the policy transaction, so that any temporary files + can be further inspected for debugging purposes (e.g. to examine a + particular line of the generated CIL module). The tmp directory will + be deleted upon the next transaction, so no manual removal is needed. + * When overriding PREFIX, BINDIR, SBINDIR, SHLIBDIR, LIBEXECDIR, etc., + DESTDIR has to be removed from the definition. For example on Arch + Linux, SBINDIR="${pkgdir}/usr/bin" was changed to SBINDIR="/usr/bin". + * PYSITEDIR has been renamed PYTHONLIBDIR (and its definition changed). + +- Clened with spec-cleaner + ------------------------------------------------------------------- Thu Mar 8 19:07:16 UTC 2018 - rgoldwyn@suse.com diff --git a/libsemanage.spec b/libsemanage.spec index 0b51fd4..e3cc8eb 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -17,7 +17,7 @@ Name: libsemanage -Version: 2.7 +Version: 2.8 Release: 0 Summary: SELinux policy management library License: LGPL-2.1-or-later @@ -36,7 +36,6 @@ BuildRequires: libselinux-devel BuildRequires: libsepol-devel BuildRequires: libustr-devel BuildRequires: pkg-config -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description libsemanage is the policy management library. Using libsepol and @@ -92,7 +91,7 @@ stores must be migrated before any commands that modify or use the store %prep %setup -q -%patch0 -p0 +%patch0 %build make %{?_smp_mflags} clean @@ -103,7 +102,7 @@ make -j1 CFLAGS="%{optflags}" LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SH mkdir -p %{buildroot}/%{_lib} mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_includedir} -make DESTDIR=%{buildroot} LIBDIR="%{buildroot}%{_libdir}" LIBEXECDIR="%{buildroot}%{_libexecdir}" SHLIBDIR="%{buildroot}/%{_lib}" install +make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_libdir}" install ln -sf %{_libdir}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so cp %{SOURCE2} %{buildroot}%{_sysconfdir}/selinux/semanage.conf # Remove duplicate files @@ -113,13 +112,11 @@ cp %{SOURCE2} %{buildroot}%{_sysconfdir}/selinux/semanage.conf %postun -n libsemanage1 -p /sbin/ldconfig %files -n libsemanage1 -%defattr(-,root,root) %dir %{_sysconfdir}/selinux %config(noreplace) %{_sysconfdir}/selinux/semanage.conf %{_libdir}/libsemanage.so.* %files devel -%defattr(-,root,root) %{_libdir}/libsemanage.so %{_libdir}/pkgconfig/libsemanage.pc %{_includedir}/semanage/ @@ -127,11 +124,10 @@ cp %{SOURCE2} %{buildroot}%{_sysconfdir}/selinux/semanage.conf %{_mandir}/man5/* %files migrate-store -%defattr(-,root,root) +%dir %{_libexecdir}/selinux %{_libexecdir}/selinux/ %files devel-static -%defattr(-,root,root) %{_libdir}/libsemanage.a %changelog diff --git a/python-semanage.changes b/python-semanage.changes index 97ff9a0..1737dc5 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Thu Sep 27 13:19:59 UTC 2018 - pmonrealgonzalez@suse.com + +- update to version 2.8 + * semanage fcontext -l now also lists home directory entries from + file_contexts.homedirs. + * libsemanage no longer deletes the tmp directory if there is an error + while committing the policy transaction, so that any temporary files + can be further inspected for debugging purposes (e.g. to examine a + particular line of the generated CIL module). The tmp directory will + be deleted upon the next transaction, so no manual removal is needed. + * When overriding PREFIX, BINDIR, SBINDIR, SHLIBDIR, LIBEXECDIR, etc., + DESTDIR has to be removed from the definition. For example on Arch + Linux, SBINDIR="${pkgdir}/usr/bin" was changed to SBINDIR="/usr/bin". + * PYSITEDIR has been renamed PYTHONLIBDIR (and its definition changed). + +- Clened with spec-cleaner + ------------------------------------------------------------------- Thu Mar 8 19:07:16 UTC 2018 - rgoldwyn@suse.com diff --git a/python-semanage.spec b/python-semanage.spec index d5d9992..c891a8a 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-semanage -Version: 2.7 +Version: 2.8 Release: 0 Summary: Python bindings for SELinux's policy management library License: LGPL-2.1-only @@ -39,7 +39,6 @@ BuildRequires: python-rpm-macros BuildRequires: swig # Ensure same version Requires: libsemanage1 = %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description @@ -67,9 +66,9 @@ mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_includedir} %{python_expand # loop over possible pythons make PYTHON=$python DESTDIR=%{buildroot} \ - LIBDIR="%{buildroot}%{_libdir}" \ - LIBEXECDIR="%{buildroot}%{_libexecdir}" \ - SHLIBDIR="%{buildroot}/%{_lib}" \ + LIBDIR="%{_libdir}" \ + LIBEXECDIR="%{_libexecdir}" \ + SHLIBDIR="%{_libdir}" \ install install-pywrap } @@ -86,7 +85,6 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig rm -rf %{buildroot}%{_mandir} %files %{python_files} -%defattr(-,root,root) %{python_sitearch}/* %changelog