commit c774beb176a8ab82495770118ee6b54f060e2ad02e4f84c6e8fcb516a0ae271c Author: Johannes Segitz Date: Fri Nov 23 15:27:18 2018 +0000 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/restorecond?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/restorecond-2.8.tar.gz b/restorecond-2.8.tar.gz new file mode 100644 index 0000000..fec6658 --- /dev/null +++ b/restorecond-2.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:323cab1128e5308cd85fea0e5c98e3c8973e1ada0b659f2fce76187e192271bf +size 17740 diff --git a/restorecond.spec b/restorecond.spec new file mode 100644 index 0000000..0d6be29 --- /dev/null +++ b/restorecond.spec @@ -0,0 +1,69 @@ +# +# spec file for package restorecond +# +# 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/ +# + + +%define libselinux_ver 2.8 +Name: restorecond +Version: 2.8 +Release: 0 +Summary: Daemon to restore SELinux contextsrestorecond daemon +License: GPL-2.0-or-later +Group: Productivity/Security +URL: https://github.com/SELinuxProject/selinux.git +Source0: https://github.com/SELinuxProject/selinux/releases/download/20180524/restorecond-%{version}.tar.gz +BuildRequires: dbus-1-glib-devel +BuildRequires: libselinux-devel >= %{libselinux_ver} +Requires: selinux-tools >= %{libselinux_ver} +Requires: libselinux1 >= %{libselinux_ver} + +%description +Daemon that watches for file creation and then sets the default SELinux file context + +%prep +%setup -q + +%build +make %{?_smp_mflags} LSPP_PRIV=y all + +%install +make DESTDIR=%{buildroot} SHLIBDIR=/%{_lib} install +rm %{buildroot}%{_sysconfdir}/rc.d/init.d/restorecond +ln -s /sbin/service %{buildroot}%{_sbindir}/rcrestorecond + +%pre +%service_add_pre restorecond.service + +%post +%service_add_post restorecond.service + +%preun +%service_del_preun restorecond.service + +%postun +%service_del_postun restorecond.service + +%files +%config %{_sysconfdir}/selinux/restorecond.conf +%config(noreplace) %{_sysconfdir}/selinux/restorecond_user.conf +%{_sysconfdir}/xdg/autostart/restorecond.desktop +%{_libexecdir}/systemd/system/restorecond.service +%{_sbindir}/restorecond +%{_sbindir}/rcrestorecond +%{_datadir}/dbus-1/services/org.selinux.Restorecond.service +%{_mandir}/man8/restorecond.8%{?ext_man} + +%changelog