Accepting request 879862 from security:SELinux
OBS-URL: https://build.opensuse.org/request/show/879862 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libselinux?expand=0&rev=65
This commit is contained in:
commit
97f837bbb9
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ea5dcbb4d859e3f999c26a13c630da2f16dff9462e3cc8cb7b458ac157d112e7
|
|
||||||
size 204703
|
|
3
libselinux-3.2.tar.gz
Normal file
3
libselinux-3.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:df758ef1d9d4811051dd901ea6b029ae334ffd7c671c128beb16bce1e25ac161
|
||||||
|
size 206380
|
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 17 15:17:27 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Switch to pcre2:
|
||||||
|
+ Replace pcre-devel BuildRequires with pkgconfig(libpcre2-8)
|
||||||
|
+ Pass USE_PCRE2=y to make.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 9 09:01:15 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
- Update to version 3.2:
|
||||||
|
* Use mmap()'ed kernel status page instead of netlink by default.
|
||||||
|
See "KERNEL STATUS PAGE" section in avc_init(3) for more details.
|
||||||
|
* New log callback levels for enforcing and policy load notices -
|
||||||
|
SELINUX_POLICYLOAD, SELINUX_SETENFORCE
|
||||||
|
* Changed userspace AVC setenforce and policy load messages to audit
|
||||||
|
format.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 14 08:24:20 UTC 2020 - Johannes Segitz <jsegitz@suse.com>
|
Tue Jul 14 08:24:20 UTC 2020 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define libsepol_ver 3.1
|
%define libsepol_ver 3.2
|
||||||
Name: libselinux-bindings
|
Name: libselinux-bindings
|
||||||
Version: 3.1
|
Version: 3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: SELinux runtime library and simple utilities
|
Summary: SELinux runtime library and simple utilities
|
||||||
License: SUSE-Public-Domain
|
License: SUSE-Public-Domain
|
||||||
@ -36,11 +36,11 @@ Patch4: readv-proto.patch
|
|||||||
Patch5: python3.8-compat.patch
|
Patch5: python3.8-compat.patch
|
||||||
Patch6: swig4_moduleimport.patch
|
Patch6: swig4_moduleimport.patch
|
||||||
BuildRequires: libsepol-devel-static >= %{libsepol_ver}
|
BuildRequires: libsepol-devel-static >= %{libsepol_ver}
|
||||||
BuildRequires: pcre-devel
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: ruby-devel
|
BuildRequires: ruby-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
|
BuildRequires: pkgconfig(libpcre2-8)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libselinux provides an interface to get and set process and file
|
libselinux provides an interface to get and set process and file
|
||||||
@ -83,15 +83,13 @@ language.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" -C src V=1
|
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" swigify V=1 USE_PCRE2=y
|
||||||
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" -C src swigify V=1
|
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" pywrap V=1 USE_PCRE2=y
|
||||||
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" -C src pywrap V=1
|
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" rubywrap V=1 USE_PCRE2=y
|
||||||
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} -fno-semantic-interposition" -C src rubywrap V=1
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a -C src install V=1
|
make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a install-pywrap V=1
|
||||||
make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a -C src install-pywrap V=1
|
make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a install-rubywrap V=1
|
||||||
make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a -C src install-rubywrap V=1
|
|
||||||
rm -rf %{buildroot}/%{_lib} %{buildroot}%{_libdir}/libselinux.* %{buildroot}%{_libdir}/pkgconfig
|
rm -rf %{buildroot}/%{_lib} %{buildroot}%{_libdir}/libselinux.* %{buildroot}%{_libdir}/pkgconfig
|
||||||
|
|
||||||
%files -n python3-selinux
|
%files -n python3-selinux
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 17 15:13:16 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Switch to pcre2:
|
||||||
|
+ Replace pcre-devel BuildRequires with pkgconfig(libpcre2-8)
|
||||||
|
+ Pass USE_PCRE2=y to make.
|
||||||
|
+ Replace pkgconfig(libpcre) Requires in -devel static with
|
||||||
|
pkgconfig(libpcre2-8).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 9 09:01:15 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
- Update to version 3.2:
|
||||||
|
* Use mmap()'ed kernel status page instead of netlink by default.
|
||||||
|
See "KERNEL STATUS PAGE" section in avc_init(3) for more details.
|
||||||
|
* New log callback levels for enforcing and policy load notices -
|
||||||
|
SELINUX_POLICYLOAD, SELINUX_SETENFORCE
|
||||||
|
* Changed userspace AVC setenforce and policy load messages to audit
|
||||||
|
format.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Feb 6 13:54:41 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
Sat Feb 6 13:54:41 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -16,15 +16,15 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define libsepol_ver 3.1
|
%define libsepol_ver 3.2
|
||||||
Name: libselinux
|
Name: libselinux
|
||||||
Version: 3.1
|
Version: 3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: SELinux runtime library and utilities
|
Summary: SELinux runtime library and utilities
|
||||||
License: SUSE-Public-Domain
|
License: SUSE-Public-Domain
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
URL: https://github.com/SELinuxProject/selinux/wiki/Releases
|
URL: https://github.com/SELinuxProject/selinux/wiki/Releases
|
||||||
Source: https://github.com/SELinuxProject/selinux/releases/download/20200710/%{name}-%{version}.tar.gz
|
Source: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: selinux-ready
|
Source1: selinux-ready
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
# PATCH-FIX-UPSTREAM Include <sys/uio.h> for readv prototype
|
# PATCH-FIX-UPSTREAM Include <sys/uio.h> for readv prototype
|
||||||
@ -32,8 +32,8 @@ Patch4: readv-proto.patch
|
|||||||
Patch5: skip_cycles.patch
|
Patch5: skip_cycles.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libsepol-devel >= %{libsepol_ver}
|
BuildRequires: libsepol-devel >= %{libsepol_ver}
|
||||||
BuildRequires: pcre-devel
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(libpcre2-8)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libselinux provides an interface to get and set process and file
|
libselinux provides an interface to get and set process and file
|
||||||
@ -84,7 +84,7 @@ necessary to develop your own software using libselinux.
|
|||||||
Summary: Static archives for the SELinux runtime
|
Summary: Static archives for the SELinux runtime
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libselinux-devel = %{version}
|
Requires: libselinux-devel = %{version}
|
||||||
Requires: pkgconfig(libpcre)
|
Requires: pkgconfig(libpcre2-8)
|
||||||
Requires: pkgconfig(libsepol)
|
Requires: pkgconfig(libsepol)
|
||||||
|
|
||||||
%description devel-static
|
%description devel-static
|
||||||
@ -101,7 +101,7 @@ necessary to develop your own software using libselinux.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} -fno-semantic-interposition"
|
make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} -fno-semantic-interposition" USE_PCRE2=y
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/%{_lib}
|
mkdir -p %{buildroot}/%{_lib}
|
||||||
|
@ -206,7 +206,7 @@ check_runlevel()
|
|||||||
|
|
||||||
check_packages()
|
check_packages()
|
||||||
{
|
{
|
||||||
PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol1 libsemanage1 restorecond"
|
PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol2 libsemanage2 restorecond"
|
||||||
FAIL=0
|
FAIL=0
|
||||||
|
|
||||||
for i in $PKGLST
|
for i in $PKGLST
|
||||||
|
Loading…
Reference in New Issue
Block a user