From f80cff1a4aaf48ca9696bb8821d50ccac610e4659e6850dd20e199cef2f798ef Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Wed, 23 May 2018 07:59:14 +0000 Subject: [PATCH 1/5] Accepting request 609004 from home:mcepl:SELinux Rebase to 2.7 OBS-URL: https://build.opensuse.org/request/show/609004 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=96 --- libselinux-2.6.tar.gz | 3 --- libselinux-2.7.tar.gz | 3 +++ libselinux-bindings.changes | 7 +++++++ libselinux-bindings.spec | 38 +++++++++++++++++++++---------------- libselinux.changes | 7 +++++++ libselinux.spec | 14 +++++++++----- python3.patch | 8 ++++---- 7 files changed, 52 insertions(+), 28 deletions(-) delete mode 100644 libselinux-2.6.tar.gz create mode 100644 libselinux-2.7.tar.gz diff --git a/libselinux-2.6.tar.gz b/libselinux-2.6.tar.gz deleted file mode 100644 index 7602e2b..0000000 --- a/libselinux-2.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4ea2dde50665c202253ba5caac7738370ea0337c47b251ba981c60d24e1a118a -size 203119 diff --git a/libselinux-2.7.tar.gz b/libselinux-2.7.tar.gz new file mode 100644 index 0000000..0b07a4b --- /dev/null +++ b/libselinux-2.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0fec0769b3ad60aa7baf9b9a4b7a056827769dc2dadda0dc0eb59b3d1c18c57 +size 187574 diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes index e23b0dc..b1122ac 100644 --- a/libselinux-bindings.changes +++ b/libselinux-bindings.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 14 22:50:42 UTC 2018 - mcepl@cepl.eu + +- Update to version 2.7. + * %files needed to be heavily modified + * Based expressly on python3, not just python + ------------------------------------------------------------------- Fri Mar 16 15:25:10 UTC 2018 - jsegitz@suse.com diff --git a/libselinux-bindings.spec b/libselinux-bindings.spec index 29a2990..9631dcb 100644 --- a/libselinux-bindings.spec +++ b/libselinux-bindings.spec @@ -18,23 +18,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define libsepol_ver 2.6 +%define libsepol_ver 2.7 Name: libselinux-bindings -Version: 2.6 +Version: 2.7 Release: 0 Summary: SELinux runtime library and simple utilities -License: GPL-2.0 and SUSE-Public-Domain +License: GPL-2.0-only AND SUSE-Public-Domain Group: Development/Libraries/C and C++ Url: https://github.com/SELinuxProject/selinux/wiki/Releases # embedded is the MD5 -Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/libselinux-%{version}.tar.gz +Source: https://github.com/SELinuxProject/selinux/archive/libselinux-%{version}.tar.gz Source1: selinux-ready Source2: baselibs.conf +Patch3: python3.patch # PATCH-FIX-UPSTREAM Include for readv prototype Patch4: readv-proto.patch -Patch5: python3.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libsepol-devel-static >= %{libsepol_ver} BuildRequires: pcre-devel @@ -82,25 +82,31 @@ language. %prep %setup -q -n libselinux-%{version} +%patch3 -p1 %patch4 -p1 -%patch5 -p1 %build -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src swigify -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" PYTHON=/usr/bin/python3 -C src pywrap -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src rubywrap +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src swigify V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src pywrap V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src rubywrap V=1 %install -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" -C src install -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" -C src install-pywrap -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" -C src install-rubywrap -rm -rf $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_libdir}/libselinux.* $RPM_BUILD_ROOT%{_libdir}/pkgconfig +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" \ + SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ + -C src install V=1 +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" \ + SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ + -C src install-pywrap V=1 +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" \ + SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ + -C src install-rubywrap V=1 +rm -rf $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_libdir}/libselinux.* \ + $RPM_BUILD_ROOT%{_libdir}/pkgconfig %files -n python3-selinux %defattr(-,root,root,-) -%{python3_sitearch}/selinux/ -%{python3_sitearch}/_selinux.so +%{python3_sitearch}/*selinux* %files -n ruby-selinux %defattr(-,root,root,-) diff --git a/libselinux.changes b/libselinux.changes index fdc217a..9ce5271 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 14 22:45:54 UTC 2018 - mcepl@cepl.eu + +- Update to version 2.7. + * %files needed to be heavily modified + * Based expressly on python3, not just python + ------------------------------------------------------------------- Fri Nov 24 09:09:02 UTC 2017 - jsegitz@suse.com diff --git a/libselinux.spec b/libselinux.spec index 08a338e..e7c315d 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -16,19 +16,20 @@ # -%define libsepol_ver 2.6 +%define libsepol_ver 2.7 Name: libselinux -Version: 2.6 +Version: 2.7 Release: 0 Summary: SELinux runtime library and utilities -License: GPL-2.0 and SUSE-Public-Domain +License: GPL-2.0-only AND SUSE-Public-Domain 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://github.com/SELinuxProject/selinux/archive/libselinux-%{version}.tar.gz Source1: selinux-ready Source2: baselibs.conf +Patch3: python3.patch # PATCH-FIX-UPSTREAM Include for readv prototype Patch4: readv-proto.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -36,6 +37,7 @@ BuildRequires: fdupes BuildRequires: libsepol-devel >= %{libsepol_ver} BuildRequires: pcre-devel BuildRequires: pkg-config +BuildRequires: python3 %description libselinux provides an interface to get and set process and file @@ -97,6 +99,7 @@ necessary to develop your own software using libselinux. %prep %setup -q +%patch3 -p1 %patch4 -p1 %build @@ -139,6 +142,7 @@ install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/selinux-ready %{_sbindir}/matchpathcon %{_sbindir}/selabel_digest %{_sbindir}/selabel_lookup +%{_sbindir}/selinux_check_access %{_sbindir}/selabel_lookup_best_match %{_sbindir}/selabel_partial_match %{_sbindir}/selinuxconlist @@ -146,7 +150,7 @@ install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/selinux-ready %{_sbindir}/selinuxenabled %{_sbindir}/setenforce %{_sbindir}/togglesebool -%{_sbindir}/selinux_restorecon +#%#{_sbindir}/selinux_restorecon %{_sbindir}/selinux-ready %{_sbindir}/selinuxexeccon %{_sbindir}/sefcontext_compile diff --git a/python3.patch b/python3.patch index ae023b5..58a2136 100644 --- a/python3.patch +++ b/python3.patch @@ -1,13 +1,13 @@ -Index: libselinux-2.6/src/Makefile +Index: libselinux-2.7/src/Makefile =================================================================== ---- libselinux-2.6.orig/src/Makefile 2016-10-14 17:31:26.000000000 +0200 -+++ libselinux-2.6/src/Makefile 2018-03-22 11:33:36.527385495 +0100 +--- libselinux-2.7.orig/src/Makefile ++++ libselinux-2.7/src/Makefile @@ -1,7 +1,7 @@ # Support building the Python bindings multiple times, against various Python # runtimes (e.g. Python 2 vs Python 3) by optionally prefixing the build # targets with "PYPREFIX": -PYTHON ?= python +PYTHON ?= python3 - PYPREFIX ?= $(notdir $(PYTHON)) + PYPREFIX ?= $(shell $(PYTHON) -c 'import sys;print("python-%d.%d" % sys.version_info[:2])') RUBY ?= ruby RUBYPREFIX ?= $(notdir $(RUBY)) From a92929b64dc4230735f6b670cd8c314f7ab3e264b530e495d14fcaf2d1c35d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20=C4=8C=C3=AD=C5=BEek?= Date: Tue, 23 Oct 2018 12:13:57 +0000 Subject: [PATCH 2/5] Accepting request 642651 from home:jsegitz:branches:security:SELinux - Update to version 2.8 (bsc#1111732) - Update to version 2.8 (bsc#1111732) OBS-URL: https://build.opensuse.org/request/show/642651 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=97 --- libselinux-2.7.tar.gz | 3 --- libselinux-2.8.tar.gz | 3 +++ libselinux-bindings.changes | 5 +++++ libselinux-bindings.spec | 16 ++++++++-------- libselinux.changes | 5 +++++ libselinux.spec | 6 +++--- 6 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 libselinux-2.7.tar.gz create mode 100644 libselinux-2.8.tar.gz diff --git a/libselinux-2.7.tar.gz b/libselinux-2.7.tar.gz deleted file mode 100644 index 0b07a4b..0000000 --- a/libselinux-2.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d0fec0769b3ad60aa7baf9b9a4b7a056827769dc2dadda0dc0eb59b3d1c18c57 -size 187574 diff --git a/libselinux-2.8.tar.gz b/libselinux-2.8.tar.gz new file mode 100644 index 0000000..8bfdf6e --- /dev/null +++ b/libselinux-2.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31db96ec7643ce10912b3c3f98506a08a9116dcfe151855fd349c3fda96187e1 +size 187759 diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes index b1122ac..3838865 100644 --- a/libselinux-bindings.changes +++ b/libselinux-bindings.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 17 11:48:30 UTC 2018 - jsegitz@suse.com + +- Update to version 2.8 (bsc#1111732) + ------------------------------------------------------------------- Mon May 14 22:50:42 UTC 2018 - mcepl@cepl.eu diff --git a/libselinux-bindings.spec b/libselinux-bindings.spec index 9631dcb..30b992c 100644 --- a/libselinux-bindings.spec +++ b/libselinux-bindings.spec @@ -18,10 +18,10 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define libsepol_ver 2.7 +%define libsepol_ver 2.8 Name: libselinux-bindings -Version: 2.7 +Version: 2.8 Release: 0 Summary: SELinux runtime library and simple utilities License: GPL-2.0-only AND SUSE-Public-Domain @@ -92,14 +92,14 @@ make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src pywrap V make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src rubywrap V=1 %install -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" \ - SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ + SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ -C src install V=1 -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" \ - SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ + SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ -C src install-pywrap V=1 -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" \ - SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ + SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ -C src install-rubywrap V=1 rm -rf $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_libdir}/libselinux.* \ $RPM_BUILD_ROOT%{_libdir}/pkgconfig diff --git a/libselinux.changes b/libselinux.changes index 9ce5271..3711232 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 17 11:48:30 UTC 2018 - jsegitz@suse.com + +- Update to version 2.8 (bsc#1111732) + ------------------------------------------------------------------- Mon May 14 22:45:54 UTC 2018 - mcepl@cepl.eu diff --git a/libselinux.spec b/libselinux.spec index e7c315d..ef10510 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -16,10 +16,10 @@ # -%define libsepol_ver 2.7 +%define libsepol_ver 2.8 Name: libselinux -Version: 2.7 +Version: 2.8 Release: 0 Summary: SELinux runtime library and utilities License: GPL-2.0-only AND SUSE-Public-Domain @@ -110,7 +110,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_lib} mkdir -p $RPM_BUILD_ROOT%{_libdir} mkdir -p $RPM_BUILD_ROOT%{_includedir} mkdir -p $RPM_BUILD_ROOT%{_sbindir} -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" BINDIR="$RPM_BUILD_ROOT%{_sbindir}" install +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" BINDIR="%{_sbindir}" install rm -f $RPM_BUILD_ROOT%{_sbindir}/compute_* rm -f $RPM_BUILD_ROOT%{_sbindir}/deftype rm -f $RPM_BUILD_ROOT%{_sbindir}/execcon From f0b2b5c4baf398e2e337c1d28641416007e1661b92e30a8cbeb29f6a8bea7ec8 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 23 Nov 2018 15:27:12 +0000 Subject: [PATCH 3/5] Accepting request 651402 from home:jsegitz:branches:security:SELinux OBS-URL: https://build.opensuse.org/request/show/651402 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=98 --- libselinux-bindings.changes | 325 ------------------------------------ libselinux-bindings.spec | 115 ------------- libselinux.changes | 5 + libselinux.spec | 72 +++++++- 4 files changed, 73 insertions(+), 444 deletions(-) delete mode 100644 libselinux-bindings.changes delete mode 100644 libselinux-bindings.spec diff --git a/libselinux-bindings.changes b/libselinux-bindings.changes deleted file mode 100644 index 3838865..0000000 --- a/libselinux-bindings.changes +++ /dev/null @@ -1,325 +0,0 @@ -------------------------------------------------------------------- -Wed Oct 17 11:48:30 UTC 2018 - jsegitz@suse.com - -- Update to version 2.8 (bsc#1111732) - -------------------------------------------------------------------- -Mon May 14 22:50:42 UTC 2018 - mcepl@cepl.eu - -- Update to version 2.7. - * %files needed to be heavily modified - * Based expressly on python3, not just python - -------------------------------------------------------------------- -Fri Mar 16 15:25:10 UTC 2018 - jsegitz@suse.com - -- Updated spec file to use python3. Added python3.patch to fix - build - -------------------------------------------------------------------- -Fri Nov 24 09:09:02 UTC 2017 - jsegitz@suse.com - -- Update to version 2.6. Notable changes: - * selinux_restorecon: fix realpath logic - * sefcontext_compile: invert semantics of "-r" flag - * sefcontext_compile: Add "-i" flag - * Introduce configurable backends - * Add function to find security.restorecon_last entries - * Add openrc_contexts functions - * Add support for pcre2 - * Handle NULL pcre study data - * Add setfiles support to selinux_restorecon(3) - * Evaluate inodes in selinux_restorecon(3) - * Change the location of _selinux.so - * Explain how to free policy type from selinux_getpolicytype() - * Compare absolute pathname in matchpathcon -V - * Add selinux_snapperd_contexts_path() - * Modify audit2why analyze function to use loaded policy - * Avoid mounting /proc outside of selinux_init_load_policy() - * Fix location of selinuxfs mount point - * Only mount /proc if necessary - * procattr: return einval for <= 0 pid args - * procattr: return error on invalid pid_t input -- Dropped - * libselinux-2.2-ruby.patch - * libselinux-proc-mount-only-if-needed.patch - * python-selinux-swig-3.10.patch - -------------------------------------------------------------------- -Wed Jul 5 10:30:57 UTC 2017 - schwab@suse.de - -- readv-proto.patch: include for readv prototype - -------------------------------------------------------------------- -Sun Jul 17 15:30:05 UTC 2016 - jengelh@inai.de - -- Update RPM groups, trim description and combine filelist entries. - -------------------------------------------------------------------- -Thu Jul 14 07:59:04 UTC 2016 - jsegitz@novell.com - -- Adjusted source link - -------------------------------------------------------------------- -Tue Jul 5 16:44:44 UTC 2016 - i@marguerite.su - -- add patch: python-selinux-swig-3.10.patch, fixed boo#985368 - * swig-3.10 in Factory use importlib instead of imp to find - _selinux.so. imp searched the same directory as __init__.py - is while importlib searchs only standard paths. so we have - to move _selinux.so. fixed by upstream -- update version 2.5 - * Add selinux_restorecon function - * read_spec_entry: fail on non-ascii - * Add man information about thread specific functions - * Don't wrap rpm_execcon with DISABLE_RPM with SWIG - * Correct line count for property and service context files - * label_file: fix memory leaks and uninitialized jump - * Replace selabel_digest hash function - * Fix selabel_open(3) services if no digest requested - * Add selabel_digest function - * Flush the class/perm string mapping cache on policy reload - * Fix restorecon when path has no context - * Free memory when processing media and x specfiles - * Fix mmap memory release for file labeling - * Add policy context validation to sefcontext_compile - * Do not treat an empty file_contexts(.local) as an error - * Fail hard on invalid property_contexts entries - * Fail hard on invalid file_contexts entries - * Support context validation on file_contexts.bin - * Add selabel_cmp interface and label_file backend - * Support specifying file_contexts.bin file path - * Support file_contexts.bin without file_contexts - * Simplify procattr cache - * Use /proc/thread-self when available - * Add const to selinux_opt for label backends - * Fix binary file labels for regexes with metachars - * Fix file labels for regexes with metachars - * Fix if file_contexts not '\n' terminated - * Enhance file context support - * Fix property processing and cleanup formatting - * Add read_spec_entries function to replace sscanf - * Support consistent mode size for bin files - * Fix more bin file processing core dumps - * add selinux_openssh_contexts_path() - * setrans_client: minimize overhead when mcstransd is not present - * Ensure selabel_lookup_best_match links NULL terminated - * Fix core dumps with corrupt *.bin files - * Add selabel partial and best match APIs - * Use os.walk() instead of the deprecated os.path.walk() - * Remove deprecated mudflap option - * Mount procfs before checking /proc/filesystems - * Fix -Wformat errors with gcc-5.0.0 - * label_file: handle newlines in file names - * Fix audit2why error handling if SELinux is disabled - * pcre_study can return NULL without error - * Only check SELinux enabled status once in selinux_check_access -- changes in 2.4 - * Remove assumption that SHLIBDIR is ../../ relative to LIBDIR - * Fix bugs found by hardened gcc flags - * Set the system to permissive if failing to disable SELinux because - policy has already been loaded - * Add db_exception and db_datatype support to label_db backend - * Log an error on unknown classes and permissions - * Add pcre version string to the compiled file_contexts format - * Deprecate use of flask.h and av_permissions.h - * Compiled file_context files and the original should have the same DAC - permissions -------------------------------------------------------------------- -Wed May 27 11:53:54 UTC 2015 - dimstar@opensuse.org - -- Update libselinux-2.2-ruby.patch: use RbConfig instead of - deprecated Config. - -------------------------------------------------------------------- -Sun May 18 00:15:17 UTC 2014 - crrodriguez@opensuse.org - -- Update to version 2.3 -* Get rid of security_context_t and fix const declarations. -* Refactor rpm_execcon() into a new setexecfilecon() from Guillem Jover. - -------------------------------------------------------------------- -Thu Oct 31 13:43:41 UTC 2013 - p.drouand@gmail.com - -- Update to version 2.2 - * Fix avc_has_perm() returns -1 even when SELinux is in permissive mode. - * Support overriding Makefile RANLIB - * Update pkgconfig definition - * Mount sysfs before trying to mount selinuxfs. - * Fix man pages - * Support overriding PATH and LIBBASE in Makefile - * Fix LDFLAGS usage - * Avoid shadowing stat in load_mmap - * Support building on older PCRE libraries - * Fix handling of temporary file in sefcontext_compile - * Fix procattr cache - * Define python constants for getenforce result - * Fix label substitution handling of / - * Add selinux_current_policy_path from - * Change get_context_list to only return good matches - * Support udev-197 and higher - * Add support for local substitutions - * Change setfilecon to not return ENOSUP if context is already correct - * Python wrapper leak fixes - * Export SELINUX_TRANS_DIR definition in selinux.h - * Add selinux_systemd_contexts_path - * Add selinux_set_policy_root - * Add man page for sefcontext_compile -- Remove libselinux-rhat.patch; merged on upstream -- Adapt libselinux-ruby.patch to upstream changes -- Use fdupes to symlink duplicate manpages - -------------------------------------------------------------------- -Thu Jun 27 14:57:53 UTC 2013 - vcizek@suse.com - -- change the source url to the official 2.1.13 release tarball - -------------------------------------------------------------------- -Wed Jan 30 12:33:45 UTC 2013 - vcizek@suse.com - -- update to 2.1.12 -- added BuildRequires: pcre-devel - -------------------------------------------------------------------- -Mon Jan 7 22:34:03 UTC 2013 - jengelh@inai.de - -- Remove obsolete defines/sections - -------------------------------------------------------------------- -Wed Jul 25 11:15:02 UTC 2012 - meissner@suse.com - -- updated to 2.1.9 again (see below) - -------------------------------------------------------------------- -Fri Jun 1 18:34:04 CEST 2012 - mls@suse.de - -- update to libselinux-2.1.9 - * better man pages - * selinux_status interfaces - * simple interface for access checks - * multiple bug fixes -- fix build for ruby-1.9 - -------------------------------------------------------------------- -Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de - -- use %_smp_mflags - -------------------------------------------------------------------- -Thu Feb 25 14:57:16 UTC 2010 - prusnak@suse.cz - -- updated to 2.0.91 - * changes too numerous to list - -------------------------------------------------------------------- -Sat Dec 12 16:43:54 CET 2009 - jengelh@medozas.de - -- add baselibs.conf as a source - -------------------------------------------------------------------- -Fri Jul 24 17:09:50 CEST 2009 - thomas@novell.com - -- updated selinux-ready script - -------------------------------------------------------------------- -Wed Jul 22 15:17:25 CEST 2009 - prusnak@suse.cz - -- change libsepol-devel to libsepol-devel-static in dependencies - of python bindings - -------------------------------------------------------------------- -Wed Jul 1 12:26:48 CEST 2009 - prusnak@suse.cz - -- put libsepol-devel back to Requires of libselinux-devel - -------------------------------------------------------------------- -Mon Jun 29 21:24:16 CEST 2009 - prusnak@suse.cz - -- added selinux-ready tool to selinux-tools package - -------------------------------------------------------------------- -Tue Jun 9 20:17:54 CEST 2009 - crrodriguez@suse.de - -- remove static libraries -- libselinux-devel does not require libsepol-devel - -------------------------------------------------------------------- -Wed May 27 14:06:14 CEST 2009 - prusnak@suse.cz - -- updated to 2.0.80 - * deny_unknown wrapper function from KaiGai Kohei - * security_compute_av_flags API from KaiGai Kohei - * Netlink socket management and callbacks from KaiGai Kohei - * Netlink socket handoff patch from Adam Jackson - * AVC caching of compute_create results by Eric Paris - * fix incorrect conversion in discover_class code - -------------------------------------------------------------------- -Fri Apr 17 17:12:06 CEST 2009 - prusnak@suse.cz - -- fixed memory leak (memleak.patch) - -------------------------------------------------------------------- -Wed Jan 14 14:04:30 CET 2009 - prusnak@suse.cz - -- updated to 2.0.77 - * add new function getseuser which will take username and service - and return seuser and level; ipa will populate file in future - * change selinuxdefcon to return just the context by default - * fix segfault if seusers file does not work - * strip trailing / for matchpathcon - * fix restorecon python code - -------------------------------------------------------------------- -Mon Dec 1 11:32:50 CET 2008 - prusnak@suse.cz - -- updated to 2.0.76 - * allow shell-style wildcarding in X names - * add Restorecon/Install python functions - * correct message types in AVC log messages - * make matchpathcon -V pass mode - * add man page for selinux_file_context_cmp - * update flask headers from refpolicy trunk - -------------------------------------------------------------------- -Wed Oct 22 16:28:59 CEST 2008 - mrueckert@suse.de - -- fix debug_packages_requires define - -------------------------------------------------------------------- -Tue Sep 23 12:51:10 CEST 2008 - prusnak@suse.cz - -- require only version, not release [bnc#429053] - -------------------------------------------------------------------- -Tue Sep 2 12:09:22 CEST 2008 - prusnak@suse.cz - -- updated to 2.0.71 - * Add group support to seusers using %groupname syntax from Dan Walsh. - * Mark setrans socket close-on-exec from Stephen Smalley. - * Only apply nodups checking to base file contexts from Stephen Smalley. - * Merge ruby bindings from Dan Walsh. - -------------------------------------------------------------------- -Mon Sep 1 07:35:00 CEST 2008 - aj@suse.de - -- Fix build of debuginfo. - -------------------------------------------------------------------- -Fri Aug 22 14:45:29 CEST 2008 - prusnak@suse.cz - -- added baselibs.conf file -- split bindings into separate subpackage (libselinux-bindings) -- split tools into separate subpackage (selinux-tools) - -------------------------------------------------------------------- -Fri Aug 1 17:32:20 CEST 2008 - ro@suse.de - -- fix requires for debuginfo package - -------------------------------------------------------------------- -Tue Jul 15 16:26:31 CEST 2008 - prusnak@suse.cz - -- initial version 2.0.67 - * based on Fedora package by Dan Walsh - diff --git a/libselinux-bindings.spec b/libselinux-bindings.spec deleted file mode 100644 index 30b992c..0000000 --- a/libselinux-bindings.spec +++ /dev/null @@ -1,115 +0,0 @@ -# -# spec file for package libselinux-bindings -# -# 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 -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# 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/ -# - - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} - -%define libsepol_ver 2.8 - -Name: libselinux-bindings -Version: 2.8 -Release: 0 -Summary: SELinux runtime library and simple utilities -License: GPL-2.0-only AND SUSE-Public-Domain -Group: Development/Libraries/C and C++ -Url: https://github.com/SELinuxProject/selinux/wiki/Releases - -# embedded is the MD5 -Source: https://github.com/SELinuxProject/selinux/archive/libselinux-%{version}.tar.gz -Source1: selinux-ready -Source2: baselibs.conf -Patch3: python3.patch -# PATCH-FIX-UPSTREAM Include for readv prototype -Patch4: readv-proto.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: libsepol-devel-static >= %{libsepol_ver} -BuildRequires: pcre-devel -BuildRequires: python-rpm-macros -BuildRequires: python3-devel -BuildRequires: ruby-devel -BuildRequires: swig - -%description -libselinux provides an interface to get and set process and file -security contexts and to obtain security policy decisions. - -%package -n python3-selinux -Summary: Python bindings for the SELinux runtime library -License: SUSE-Public-Domain -Group: Development/Libraries/Python -%define oldpython python -%ifpython2 -Obsoletes: %{oldpython}-selinux < %{version} -Provides: %{oldpython}-selinux = %{version} -%endif -Requires: libselinux1 = %{version} -Requires: python3 - -%description -n python3-selinux -libselinux provides an interface to get and set process and file -security contexts and to obtain security policy decisions. - -This subpackage contains Python extensions to use SELinux from that -language. - -%package -n ruby-selinux -Summary: Ruby bindings for the SELinux runtime library -License: SUSE-Public-Domain -Group: Development/Languages/Ruby -Requires: libselinux1 = %{version} -Requires: ruby - -%description -n ruby-selinux -libselinux provides an interface to get and set process and file -security contexts and to obtain security policy decisions. - -This subpackage contains Ruby extensions to use SELinux from that -language. - -%prep -%setup -q -n libselinux-%{version} -%patch3 -p1 -%patch4 -p1 - -%build -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src V=1 -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src swigify V=1 -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src pywrap V=1 -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src rubywrap V=1 - -%install -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ - SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ - -C src install V=1 -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ - SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ - -C src install-pywrap V=1 -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ - SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ - -C src install-rubywrap V=1 -rm -rf $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_libdir}/libselinux.* \ - $RPM_BUILD_ROOT%{_libdir}/pkgconfig - -%files -n python3-selinux -%defattr(-,root,root,-) -%{python3_sitearch}/*selinux* - -%files -n ruby-selinux -%defattr(-,root,root,-) -%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/selinux.so - -%changelog diff --git a/libselinux.changes b/libselinux.changes index 3711232..3f877ff 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 21 10:38:23 UTC 2018 - jsegitz@suse.com + +- Merged libselinux-bindings back into main spec file + ------------------------------------------------------------------- Wed Oct 17 11:48:30 UTC 2018 - jsegitz@suse.com diff --git a/libselinux.spec b/libselinux.spec index ef10510..4a5c4ad 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -17,6 +17,7 @@ %define libsepol_ver 2.8 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: libselinux Version: 2.8 @@ -25,8 +26,7 @@ Summary: SELinux runtime library and utilities License: GPL-2.0-only AND SUSE-Public-Domain Group: Development/Libraries/C and C++ Url: https://github.com/SELinuxProject/selinux/wiki/Releases - -Source: https://github.com/SELinuxProject/selinux/archive/libselinux-%{version}.tar.gz +Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/libselinux-%{version}.tar.gz Source1: selinux-ready Source2: baselibs.conf Patch3: python3.patch @@ -35,9 +35,14 @@ Patch4: readv-proto.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: libsepol-devel >= %{libsepol_ver} +BuildRequires: libsepol-devel-static >= %{libsepol_ver} BuildRequires: pcre-devel BuildRequires: pkg-config +BuildRequires: python-rpm-macros BuildRequires: python3 +BuildRequires: python3-devel +BuildRequires: ruby-devel +BuildRequires: swig %description libselinux provides an interface to get and set process and file @@ -45,6 +50,7 @@ security contexts and to obtain security policy decisions. %package -n libselinux1 Summary: SELinux runtime library +License: GPL-2.0-only AND SUSE-Public-Domain Group: System/Libraries %description -n libselinux1 @@ -58,6 +64,7 @@ Security.) %package -n selinux-tools Summary: SELinux command-line utilities +License: GPL-2.0-only AND SUSE-Public-Domain Group: System/Base %description -n selinux-tools @@ -71,6 +78,7 @@ system's SELinux state. %package devel Summary: Development files for the SELinux runtime library +License: GPL-2.0-only AND SUSE-Public-Domain Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libselinux1 = %{version} @@ -85,6 +93,7 @@ necessary to develop your own software using libselinux. %package devel-static Summary: Static archives for the SELinux runtime +License: GPL-2.0-only AND SUSE-Public-Domain Group: Development/Libraries/C and C++ Requires: libselinux-devel = %{version} Requires: pkgconfig(libpcre) @@ -98,12 +107,16 @@ This package contains the static development files, which are necessary to develop your own software using libselinux. %prep -%setup -q +%setup -q -n libselinux-%{version} %patch3 -p1 %patch4 -p1 %build -make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS" +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}" +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src swigify V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src pywrap V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src rubywrap V=1 %install mkdir -p $RPM_BUILD_ROOT/%{_lib} @@ -127,6 +140,16 @@ rm -f $RPM_BUILD_ROOT%{_sbindir}/selinux_check_securetty_context mv $RPM_BUILD_ROOT%{_sbindir}/getdefaultcon $RPM_BUILD_ROOT%{_sbindir}/selinuxdefcon mv $RPM_BUILD_ROOT%{_sbindir}/getconlist $RPM_BUILD_ROOT%{_sbindir}/selinuxconlist install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/selinux-ready + +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ + SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ + -C src install V=1 +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ + SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ + -C src install-pywrap V=1 +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ + SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ + -C src install-rubywrap V=1 # Remove duplicate files %fdupes -s %{buildroot}%{_mandir} @@ -172,4 +195,45 @@ install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/selinux-ready %defattr(-,root,root,-) %{_libdir}/libselinux.a +%package -n python3-selinux +Summary: Python bindings for the SELinux runtime library +License: SUSE-Public-Domain +Group: Development/Libraries/Python +%define oldpython python +%ifpython2 +Obsoletes: %{oldpython}-selinux < %{version} +Provides: %{oldpython}-selinux = %{version} +%endif +Requires: libselinux1 = %{version} +Requires: python3 + +%description -n python3-selinux +libselinux provides an interface to get and set process and file +security contexts and to obtain security policy decisions. + +This subpackage contains Python extensions to use SELinux from that +language. + +%package -n ruby-selinux +Summary: Ruby bindings for the SELinux runtime library +License: SUSE-Public-Domain +Group: Development/Languages/Ruby +Requires: libselinux1 = %{version} +Requires: ruby + +%description -n ruby-selinux +libselinux provides an interface to get and set process and file +security contexts and to obtain security policy decisions. + +This subpackage contains Ruby extensions to use SELinux from that +language. + +%files -n python3-selinux +%defattr(-,root,root,-) +%{python3_sitearch}/*selinux* + +%files -n ruby-selinux +%defattr(-,root,root,-) +%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/selinux.so + %changelog From 4d22c060dd698a154b7716b42b47744d5f4030218b828500ef5d1b902f567e94 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Sat, 1 Dec 2018 07:36:52 +0000 Subject: [PATCH 4/5] Accepting request 652674 from home:jengelh:branches:security:SELinux - Replace old $RPM_* shell vars. OBS-URL: https://build.opensuse.org/request/show/652674 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=99 --- libselinux.changes | 5 ++++ libselinux.spec | 62 +++++++++++++++++++++++----------------------- 2 files changed, 36 insertions(+), 31 deletions(-) diff --git a/libselinux.changes b/libselinux.changes index 3f877ff..0b650f5 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 29 19:10:14 UTC 2018 - Jan Engelhardt + +- Replace old $RPM_* shell vars. + ------------------------------------------------------------------- Wed Nov 21 10:38:23 UTC 2018 - jsegitz@suse.com diff --git a/libselinux.spec b/libselinux.spec index 4a5c4ad..9a964f3 100644 --- a/libselinux.spec +++ b/libselinux.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/ # @@ -112,42 +112,42 @@ necessary to develop your own software using libselinux. %patch4 -p1 %build -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}" -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src V=1 -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src swigify V=1 -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src pywrap V=1 -make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src rubywrap V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" CC="%{__cc}" +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" -C src V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" -C src swigify V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" -C src pywrap V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" -C src rubywrap V=1 %install -mkdir -p $RPM_BUILD_ROOT/%{_lib} -mkdir -p $RPM_BUILD_ROOT%{_libdir} -mkdir -p $RPM_BUILD_ROOT%{_includedir} -mkdir -p $RPM_BUILD_ROOT%{_sbindir} -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" BINDIR="%{_sbindir}" install -rm -f $RPM_BUILD_ROOT%{_sbindir}/compute_* -rm -f $RPM_BUILD_ROOT%{_sbindir}/deftype -rm -f $RPM_BUILD_ROOT%{_sbindir}/execcon -rm -f $RPM_BUILD_ROOT%{_sbindir}/getenforcemode -rm -f $RPM_BUILD_ROOT%{_sbindir}/getfilecon -rm -f $RPM_BUILD_ROOT%{_sbindir}/getpidcon -rm -f $RPM_BUILD_ROOT%{_sbindir}/mkdircon -rm -f $RPM_BUILD_ROOT%{_sbindir}/policyvers -rm -f $RPM_BUILD_ROOT%{_sbindir}/setfilecon -rm -f $RPM_BUILD_ROOT%{_sbindir}/selinuxconfig -rm -f $RPM_BUILD_ROOT%{_sbindir}/selinuxdisable -rm -f $RPM_BUILD_ROOT%{_sbindir}/getseuser -rm -f $RPM_BUILD_ROOT%{_sbindir}/selinux_check_securetty_context -mv $RPM_BUILD_ROOT%{_sbindir}/getdefaultcon $RPM_BUILD_ROOT%{_sbindir}/selinuxdefcon -mv $RPM_BUILD_ROOT%{_sbindir}/getconlist $RPM_BUILD_ROOT%{_sbindir}/selinuxconlist -install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/selinux-ready +mkdir -p %{buildroot}/%{_lib} +mkdir -p %{buildroot}/%{_libdir} +mkdir -p %{buildroot}/%{_includedir} +mkdir -p %{buildroot}/%{_sbindir} +%make_install LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" BINDIR="%{_sbindir}" +rm -f %{buildroot}/%{_sbindir}/compute_* +rm -f %{buildroot}/%{_sbindir}/deftype +rm -f %{buildroot}/%{_sbindir}/execcon +rm -f %{buildroot}/%{_sbindir}/getenforcemode +rm -f %{buildroot}/%{_sbindir}/getfilecon +rm -f %{buildroot}/%{_sbindir}/getpidcon +rm -f %{buildroot}/%{_sbindir}/mkdircon +rm -f %{buildroot}/%{_sbindir}/policyvers +rm -f %{buildroot}/%{_sbindir}/setfilecon +rm -f %{buildroot}/%{_sbindir}/selinuxconfig +rm -f %{buildroot}/%{_sbindir}/selinuxdisable +rm -f %{buildroot}/%{_sbindir}/getseuser +rm -f %{buildroot}/%{_sbindir}/selinux_check_securetty_context +mv %{buildroot}/%{_sbindir}/getdefaultcon %{buildroot}/%{_sbindir}/selinuxdefcon +mv %{buildroot}/%{_sbindir}/getconlist %{buildroot}/%{_sbindir}/selinuxconlist +install -m 0755 %{SOURCE1} %{buildroot}/%{_sbindir}/selinux-ready -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ +%make_install LIBDIR="%{_libdir}" \ SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ - -C src install V=1 -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ + -C src V=1 +make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" \ SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ -C src install-pywrap V=1 -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="%{_libdir}" \ +make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" \ SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ -C src install-rubywrap V=1 # Remove duplicate files From 8b14e338537a72b9ac12e2e01ce68095fde96323d174738149d247c1e6668c77 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Thu, 6 Dec 2018 14:43:31 +0000 Subject: [PATCH 5/5] OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=100 --- libselinux.changes | 6 +++++- libselinux.spec | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libselinux.changes b/libselinux.changes index 0b650f5..a94eadd 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -11,7 +11,9 @@ Wed Nov 21 10:38:23 UTC 2018 - jsegitz@suse.com ------------------------------------------------------------------- Wed Oct 17 11:48:30 UTC 2018 - jsegitz@suse.com -- Update to version 2.8 (bsc#1111732) +- Update to version 2.8 (bsc#1111732). + For changes please see + https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/RELEASE-20180524.txt ------------------------------------------------------------------- Mon May 14 22:45:54 UTC 2018 - mcepl@cepl.eu @@ -19,6 +21,8 @@ Mon May 14 22:45:54 UTC 2018 - mcepl@cepl.eu - Update to version 2.7. * %files needed to be heavily modified * Based expressly on python3, not just python + For changes please see + https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/RELEASE-20170804.txt ------------------------------------------------------------------- Fri Nov 24 09:09:02 UTC 2017 - jsegitz@suse.com diff --git a/libselinux.spec b/libselinux.spec index 9a964f3..c517097 100644 --- a/libselinux.spec +++ b/libselinux.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 https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ #