From f484a64c12e4eaba005a93813a030601827091283090e5d8526ed7575500c729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 9 Mar 2018 07:25:24 +0000 Subject: [PATCH 1/4] Accepting request 584523 from home:goldwynr:branches:security:SELinux update to v2.7 OBS-URL: https://build.opensuse.org/request/show/584523 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=65 --- libsemanage-2.6.tar.gz | 3 --- libsemanage-2.7.tar.gz | 3 +++ libsemanage.changes | 7 +++++++ libsemanage.spec | 8 ++++---- python-semanage.changes | 7 +++++++ python-semanage.spec | 8 ++++---- 6 files changed, 25 insertions(+), 11 deletions(-) delete mode 100644 libsemanage-2.6.tar.gz create mode 100644 libsemanage-2.7.tar.gz diff --git a/libsemanage-2.6.tar.gz b/libsemanage-2.6.tar.gz deleted file mode 100644 index 39b530a..0000000 --- a/libsemanage-2.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f81541047290b751f2ffb926fcd381c186f22db18d9fe671b0b4a6a54e8cfce -size 155897 diff --git a/libsemanage-2.7.tar.gz b/libsemanage-2.7.tar.gz new file mode 100644 index 0000000..321bf2e --- /dev/null +++ b/libsemanage-2.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07e9477714ce6a4557a1fe924ea4cb06501b62d0fa0e3c0dc32a2cf47cb8d476 +size 153465 diff --git a/libsemanage.changes b/libsemanage.changes index fd92cd3..cbe8a31 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Mar 8 19:07:16 UTC 2018 - rgoldwyn@suse.com + +- Update to version 2.7. Changes: + * IB support + * saves linked policy and skips relinking whenever possible + ------------------------------------------------------------------- Fri Nov 24 09:14:13 UTC 2017 - jsegitz@suse.com diff --git a/libsemanage.spec b/libsemanage.spec index b9be10e..0b51fd4 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -1,7 +1,7 @@ # # spec file for package libsemanage # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,13 @@ Name: libsemanage -Version: 2.6 +Version: 2.7 Release: 0 Summary: SELinux policy management library -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Development/Libraries/C and C++ Url: https://github.com/SELinuxProject/selinux/wiki/Releases -Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/%{name}-%{version}.tar.gz +Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/%{name}-%{version}.tar.gz Source1: baselibs.conf Source2: semanage.conf Patch0: suse_path.patch diff --git a/python-semanage.changes b/python-semanage.changes index e91f6bc..97ff9a0 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Mar 8 19:07:16 UTC 2018 - rgoldwyn@suse.com + +- Update to version 2.7. Changes: + * IB support + * saves linked policy and skips relinking whenever possible + ------------------------------------------------------------------- Fri Nov 24 09:14:13 UTC 2017 - jsegitz@suse.com diff --git a/python-semanage.spec b/python-semanage.spec index de1b0d2..d5d9992 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -1,7 +1,7 @@ # # spec file for package python-semanage # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-semanage -Version: 2.6 +Version: 2.7 Release: 0 Summary: Python bindings for SELinux's policy management library -License: LGPL-2.1 +License: LGPL-2.1-only Group: Development/Languages/Python Url: https://github.com/SELinuxProject/selinux -Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/libsemanage-%{version}.tar.gz +Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/libsemanage-%{version}.tar.gz Source1: baselibs.conf Patch0: suse_path.patch BuildRequires: %{python_module devel} 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 2/4] 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 From 2e104018fc340ad2ee21e420ea5df81f3220503be41cdcb8229736be890c4a1e Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Thu, 8 Nov 2018 07:52:17 +0000 Subject: [PATCH 3/4] Accepting request 647227 from home:jsegitz:branches:security:SELinux - Adjusted source urls (bsc#1115052) - Adjusted source urls (bsc#1115052) OBS-URL: https://build.opensuse.org/request/show/647227 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=67 --- libsemanage.changes | 5 +++++ libsemanage.spec | 2 +- python-semanage.changes | 5 +++++ python-semanage.spec | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libsemanage.changes b/libsemanage.changes index e241424..83a4573 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 8 07:19:24 UTC 2018 - jsegitz@suse.com + +- Adjusted source urls (bsc#1115052) + ------------------------------------------------------------------- Thu Sep 27 13:19:59 UTC 2018 - pmonrealgonzalez@suse.com diff --git a/libsemanage.spec b/libsemanage.spec index e3cc8eb..c976797 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -23,7 +23,7 @@ Summary: SELinux policy management library License: LGPL-2.1-or-later Group: Development/Libraries/C and C++ Url: https://github.com/SELinuxProject/selinux/wiki/Releases -Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/%{name}-%{version}.tar.gz +Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/%{name}-%{version}.tar.gz Source1: baselibs.conf Source2: semanage.conf Patch0: suse_path.patch diff --git a/python-semanage.changes b/python-semanage.changes index 1737dc5..987ecf4 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 8 07:19:24 UTC 2018 - jsegitz@suse.com + +- Adjusted source urls (bsc#1115052) + ------------------------------------------------------------------- Thu Sep 27 13:19:59 UTC 2018 - pmonrealgonzalez@suse.com diff --git a/python-semanage.spec b/python-semanage.spec index c891a8a..fbdf606 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -24,7 +24,7 @@ Summary: Python bindings for SELinux's policy management library License: LGPL-2.1-only Group: Development/Languages/Python Url: https://github.com/SELinuxProject/selinux -Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/libsemanage-%{version}.tar.gz +Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/libsemanage-%{version}.tar.gz Source1: baselibs.conf Patch0: suse_path.patch BuildRequires: %{python_module devel} From c6afe434d2d52a9f0c0a77c9fc92804fbd72113fb2f1fc80f8b3d8b4e1173785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 8 Nov 2018 11:21:37 +0000 Subject: [PATCH 4/4] Accepting request 647269 from home:jengelh:branches:security:SELinux Use more %make_install. OBS-URL: https://build.opensuse.org/request/show/647269 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=68 --- libsemanage.changes | 5 +++++ libsemanage.spec | 4 ++-- python-semanage.changes | 5 +++++ python-semanage.spec | 7 +++---- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/libsemanage.changes b/libsemanage.changes index 83a4573..e3d9f3b 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 8 09:31:42 UTC 2018 - Jan Engelhardt + +- Use more %make_install. + ------------------------------------------------------------------- Thu Nov 8 07:19:24 UTC 2018 - jsegitz@suse.com diff --git a/libsemanage.spec b/libsemanage.spec index c976797..92cdd7e 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -102,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="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_libdir}" install +%make_install LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_libdir}" ln -sf %{_libdir}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so cp %{SOURCE2} %{buildroot}%{_sysconfdir}/selinux/semanage.conf # Remove duplicate files diff --git a/python-semanage.changes b/python-semanage.changes index 987ecf4..0f3b957 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 8 09:31:42 UTC 2018 - Jan Engelhardt + +- Use more %make_install. + ------------------------------------------------------------------- Thu Nov 8 07:19:24 UTC 2018 - jsegitz@suse.com diff --git a/python-semanage.spec b/python-semanage.spec index fbdf606..b5873d3 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -65,11 +65,10 @@ mkdir -p %{buildroot}/%{_lib} mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_includedir} %{python_expand # loop over possible pythons -make PYTHON=$python DESTDIR=%{buildroot} \ +%make_install install-pywrap PYTHON="$python" \ LIBDIR="%{_libdir}" \ LIBEXECDIR="%{_libexecdir}" \ - SHLIBDIR="%{_libdir}" \ - install install-pywrap + SHLIBDIR="%{_libdir}" } # remove files contained in other packages