SHA256
1
0
forked from pool/libselinux

Accepting request 978290 from home:jsegitz:branches:security:SELinux

- Update to version 3.4:
  * Use PCRE2 by default
  * Make selinux_log() and is_context_customizable() thread-safe
  * Prevent leakeing file descriptors
  * Correctly hash specfiles larger than 4G
- Refreshed skip_cycles.patch

- Update to version 3.4:
  * Use PCRE2 by default
  * Make selinux_log() and is_context_customizable() thread-safe
  * Prevent leakeing file descriptors
  * Correctly hash specfiles larger than 4G
- Refreshed skip_cycles.patch

OBS-URL: https://build.opensuse.org/request/show/978290
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=141
This commit is contained in:
Johannes Segitz 2022-05-20 14:53:35 +00:00 committed by Git OBS Bridge
parent bf12ad7659
commit 0b9c3483a5
9 changed files with 232 additions and 26 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:acfdee27633d2496508c28727c3d41d3748076f66d42fccde2e6b9f3463a7057
size 206826

3
libselinux-3.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77c294a927e6795c2e98f74b5c3adde9c8839690e9255b767c5fca6acff9b779
size 210061

16
libselinux-3.4.tar.gz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE1qW2HJpVNBaCkttnviIJHj72InUFAmKFCEsACgkQviIJHj72
InXlLhAAtklDK8OvcL08fYu8Hw2EYI6wWopn4KctGiZN0axNRxLTqzljWJCU2MjM
jqRDqQ4M1i+Bp4NKDKxYLJSMq8gABoC3L9pvM5Tm24Lw9R/A85FcBtTAr7fSevd1
hu42yDrjZI1pdAY1kSATipo57JiL4O8WA4qJdNGxJepsMNG49dFSezhO2VyBj4Tl
IVG4smxF/5PEPGVJfjH0dorYarRtsXVVQxrzT739x/9jE8YBe0ONbGrnzxL6ga5G
dlAMEyRyHTn1sLBp6mxi3KxvkgkLZ8hFH28JeQ+8zyOs/FjCQOSk/akOewsLOUMV
S/f4ydgaPHSjmN+etv03P1iOPWxiH8DdIez/GA7DRrwY80xfbIfO5M51fNKIBzXM
M2Co24kGHyaythzzFgwClw41SLB3SGkHPQcb0Hm1uFeSVCdIPUCwCWmQcFABZaZ0
SHDC47zZ0E22A4y33tT0/SbYtqEJLPfVCBYGWK+wRnKzGMTdUYzVoW4tr9p+yDhQ
SN0+m84Ryz8cfYWuE3WB53V4z0Pk5alk43XkmtHXNRgI2hGjXs1Q3UxEdB/YEpun
tGh6oA4oMj4brPWXb6PE/egpvYJzW6k6Z1JHAIY8Sj2zx5LtJgf5yfiX3iI9kfSf
2iF9s6Y+eNgTceKkQ55PIOI0NhcArMQxwIlBZb63xsrYqTTA+xw=
=Oane
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon May 9 10:23:32 UTC 2022 - Johannes Segitz <jsegitz@suse.com>
- Update to version 3.4:
* Use PCRE2 by default
* Make selinux_log() and is_context_customizable() thread-safe
* Prevent leakeing file descriptors
* Correctly hash specfiles larger than 4G
- Refreshed skip_cycles.patch
-------------------------------------------------------------------
Thu Nov 11 13:25:30 UTC 2021 - Johannes Segitz <jsegitz@suse.com>

View File

@ -17,18 +17,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define libsepol_ver 3.3
%define libsepol_ver 3.4
Name: libselinux-bindings
Version: 3.3
Version: 3.4
Release: 0
Summary: SELinux runtime library and simple utilities
License: SUSE-Public-Domain
Group: Development/Libraries/C and C++
URL: https://github.com/SELinuxProject/selinux/wiki/Releases
# embedded is the MD5
Source: libselinux-%{version}.tar.gz
Source1: selinux-ready
Source2: baselibs.conf
Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/libselinux-%{version}.tar.gz
Source1: https://github.com/SELinuxProject/selinux/releases/download/%{version}/libselinux-%{version}.tar.gz.asc
Source2: libselinux.keyring
Source3: selinux-ready
Source4: baselibs.conf
# PATCH-FIX-UPSTREAM Include <sys/uio.h> for readv prototype
Patch4: readv-proto.patch
# PATCH-FIX-UPSTREAM python3.8-compat.patch mcepl@suse.com

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon May 9 10:23:32 UTC 2022 - Johannes Segitz <jsegitz@suse.com>
- Update to version 3.4:
* Use PCRE2 by default
* Make selinux_log() and is_context_customizable() thread-safe
* Prevent leakeing file descriptors
* Correctly hash specfiles larger than 4G
- Refreshed skip_cycles.patch
-------------------------------------------------------------------
Tue Feb 15 07:49:43 UTC 2022 - Johannes Segitz <jsegitz@suse.com>

169
libselinux.keyring Normal file
View File

@ -0,0 +1,169 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBE97JQcBEAC/aeBxbuToAJokMiVxtMVFoUMgCbcVQDB21YhMq4i5a/HDzFno
qVPhQjGViGTKXQYR7SnT8CCfC3ggG7hqU0oaWKN3D003V6e/ivTJwMKrQRFqf5/A
vN7ELulXFxEt/ZjYmvTukpW5Li2AU7JBD0aO243Ld9jYdZOZn2zdfA8IpnE9Bmm3
K/LO1Xb2F9ujF9faI5/IlJvdUFk3uiCKTSvM8kGwOmAwBI921Z5x/CYvy5kKEazU
lUxMqECl+Tu2YS6NDhWYNkifAIZ7lsUvGjW3/wfh7AvmAQyt/CxOXu9LL2nGzFhw
CIS4jVIxy5bDswNfHcaMX7B5WEyqTPtjzPAEMiLL4yHJZrHDPd26QHSaqtilVA4K
AeTYbME8iZIdacquFEq02PO9qAM21O48OknCTSolF7z6nBkk6l26W3EL+Gz5I2Et
3S9pab3FMjiiKVavM6UA5D0DQkNxxDn9blDXZyhX4HFrk+NnoETcGYFymPbbijgi
kFC4339/Z1aK31aJLkxiana5mqLthD4jCeg3B8Cp5IurqPr8QEh3FH8ZZhtdx2fX
TXHTmGQF/lXG4tg1eH5cb6wWGU93wD+5mf6czJlUZTY+kdevKtZCQnA0/2ENCOFW
Jdm/oMTUw6ozPd474ctzWKeO78e8yMvZst/Zp3Gq6SD9kcoPgiuMQ+BOkwARAQAB
tCRQZX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BxHGYxKDFIT/ZyS2E9gGxc9a4MxhkJv
d7okxax2cIjuI+mg8UAmYh3tJYl5tdnGe2hfpjBntPHnz9AwsSrEx8QTFBMAWDz+
jC/EIbXYpqFqsuvgakvHRpTf1AQl6cbUuoYvCJCH1XGx6PD4yR5tkkTrOGztcGl6
et3lz04U61v8ajHBqX/pRfPtrraNnvAM2knD3E58Lf95f/nr7p0tV59EWP8s4i72
t4zhuhOJjZ2YaPVALQ==
=UVQc
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -16,17 +16,19 @@
#
%define libsepol_ver 3.3
%define libsepol_ver 3.4
Name: libselinux
Version: 3.3
Version: 3.4
Release: 0
Summary: SELinux runtime library and utilities
License: SUSE-Public-Domain
Group: Development/Libraries/C and C++
URL: https://github.com/SELinuxProject/selinux/wiki/Releases
Source: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: selinux-ready
Source2: baselibs.conf
Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
Source2: libselinux.keyring
Source3: selinux-ready
Source4: baselibs.conf
# PATCH-FIX-UPSTREAM Include <sys/uio.h> for readv prototype
Patch4: readv-proto.patch
Patch5: skip_cycles.patch
@ -96,7 +98,7 @@ 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}
%patch4 -p1
%patch5 -p1
@ -112,7 +114,7 @@ mkdir -p %{buildroot}%{_sbindir}
make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" BINDIR="%{_sbindir}" install
mv %{buildroot}%{_sbindir}/getdefaultcon %{buildroot}%{_sbindir}/selinuxdefcon
mv %{buildroot}%{_sbindir}/getconlist %{buildroot}%{_sbindir}/selinuxconlist
install -m 0755 %{SOURCE1} %{buildroot}%{_sbindir}/selinux-ready
install -m 0755 %{SOURCE3} %{buildroot}%{_sbindir}/selinux-ready
# Remove duplicate files
%fdupes -s %{buildroot}%{_mandir}

View File

@ -1,14 +1,12 @@
Index: libselinux-3.0/src/selinux_restorecon.c
Index: libselinux-3.4-rc3/src/selinux_restorecon.c
===================================================================
--- libselinux-3.0.orig/src/selinux_restorecon.c
+++ libselinux-3.0/src/selinux_restorecon.c
@@ -991,9 +991,8 @@ int selinux_restorecon(const char *pathn
selinux_log(SELINUX_ERROR,
"Directory cycle on %s.\n",
ftsent->fts_path);
- errno = ELOOP;
- error = -1;
- goto out;
--- libselinux-3.4-rc3.orig/src/selinux_restorecon.c
+++ libselinux-3.4-rc3/src/selinux_restorecon.c
@@ -871,7 +871,8 @@ loop_body:
errno = ELOOP;
state->error = -1;
state->abort = true;
- goto finish;
+ fts_set(fts, ftsent, FTS_SKIP);
+ continue;
case FTS_DP: