SHA256
1
0
forked from pool/restorecond

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

- Update to version 3.1
  * `restorecond_user.service` - new systemd user service which runs
    `restorecond -u`

OBS-URL: https://build.opensuse.org/request/show/820924
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/restorecond?expand=0&rev=16
This commit is contained in:
Johannes Segitz 2020-07-14 14:13:43 +00:00 committed by Git OBS Bridge
parent 2fff5494e5
commit 6290a0b7e7
4 changed files with 15 additions and 7 deletions

View File

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

3
restorecond-3.1.tar.gz Normal file
View File

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jul 14 08:32:09 UTC 2020 - Johannes Segitz <jsegitz@suse.com>
- Update to version 3.1
* `restorecond_user.service` - new systemd user service which runs
`restorecond -u`
-------------------------------------------------------------------
Tue May 12 06:50:33 UTC 2020 - Johannes Segitz <jsegitz@suse.de>

View File

@ -16,15 +16,15 @@
#
%define libselinux_ver 3.0
%define libselinux_ver 3.1
Name: restorecond
Version: 3.0
Version: 3.1
Release: 0
Summary: Daemon to restore SELinux contexts
License: GPL-2.0-or-later
Group: Productivity/Security
URL: https://github.com/SELinuxProject/selinux.git
Source0: https://github.com/SELinuxProject/selinux/releases/download/20191204/restorecond-%{version}.tar.gz
Source0: https://github.com/SELinuxProject/selinux/releases/download/20200710/restorecond-%{version}.tar.gz
BuildRequires: dbus-1-glib-devel
BuildRequires: libselinux-devel >= %{libselinux_ver}
Requires: libselinux1 >= %{libselinux_ver}
@ -41,7 +41,7 @@ export CFLAGS="%optflags"
%make_build LSPP_PRIV=y all
%install
make DESTDIR=%{buildroot} SHLIBDIR=/%{_lib} install
make DESTDIR=%{buildroot} SHLIBDIR=/%{_lib} SYSTEMDSYSTEMUNITDIR=/usr/lib/systemd/system SYSTEMDUSERUNITDIR=/usr/lib/systemd/user install
rm %{buildroot}%{_sysconfdir}/rc.d/init.d/restorecond
ln -s /sbin/service %{buildroot}%{_sbindir}/rcrestorecond
@ -62,6 +62,7 @@ ln -s /sbin/service %{buildroot}%{_sbindir}/rcrestorecond
%config(noreplace) %{_sysconfdir}/selinux/restorecond_user.conf
%{_sysconfdir}/xdg/autostart/restorecond.desktop
%{_unitdir}/restorecond.service
/usr/lib/systemd/user/restorecond_user.service
%{_sbindir}/restorecond
%{_sbindir}/rcrestorecond