]> git.pld-linux.org Git - packages/selinux-restorecond.git/blame - selinux-restorecond.spec
- updated to 2.9
[packages/selinux-restorecond.git] / selinux-restorecond.spec
CommitLineData
1f82d141
JB
1%include /usr/lib/rpm/macros.perl
2Summary: restorecond - daemon which corrects contexts of newly created files
3Summary(pl.UTF-8): restorecond - demon poprawiający konteksty nowo tworzonych plików
4Name: selinux-restorecond
45cbcf63 5Version: 2.9
1f82d141
JB
6Release: 1
7License: GPL v2+
8Group: Daemons
9#Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
45cbcf63
JB
10Source0: https://github.com/SELinuxProject/selinux/releases/download/20190315/restorecond-%{version}.tar.gz
11# Source0-md5: 1a24cb2a23d8bd01d3f8d9bb2031981f
1f82d141
JB
12Patch0: restorecond-init.patch
13URL: https://github.com/SELinuxProject/selinux/wiki
14BuildRequires: dbus-glib-devel
15BuildRequires: glibc-devel >= 6:2.4
16BuildRequires: pkgconfig
17BuildRequires: pcre-devel
45cbcf63 18BuildRequires: libselinux-devel >= 2.9
1f82d141 19Requires(post,preun): /sbin/chkconfig
45cbcf63 20Requires: libselinux >= 2.9
1f82d141
JB
21Requires: rc-scripts
22Obsoletes: policycoreutils-restorecond < 2.7
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Security-enhanced Linux is a patch of the Linux kernel and a number of
27utilities with enhanced security functionality designed to add
28mandatory access controls to Linux. The Security-enhanced Linux kernel
29contains new architectural components originally developed to improve
30the security of the Flask operating system. These architectural
31components provide general support for the enforcement of many kinds
32of mandatory access control policies, including those based on the
33concepts of Type Enforcement, Role-based Access Control, and
34Multi-level Security.
35
36restorecond daemon uses inotify to watch files listed in the
37/etc/selinux/restorecond.conf, when they are created, this daemon will
38make sure they have the correct file context associated with the
39policy.
40
41%description -l pl.UTF-8
42Security-enhanced Linux jest prototypem jądra Linuksa i wielu
43aplikacji użytkowych o funkcjach podwyższonego bezpieczeństwa.
44Zaprojektowany jest tak, aby w prosty sposób ukazać znaczenie
45obowiązkowej kontroli dostępu dla społeczności linuksowej. Ukazuje
46również jak taką kontrolę można dodać do istniejącego systemu typu
47Linux. Jądro SELinux zawiera nowe składniki architektury pierwotnie
48opracowane w celu ulepszenia bezpieczeństwa systemu operacyjnego
49Flask. Te elementy zapewniają ogólne wsparcie we wdrażaniu wielu typów
50polityk obowiązkowej kontroli dostępu, włączając te wzorowane na: Type
51Enforcement (TE), kontroli dostępu opartej na rolach (RBAC) i
52zabezpieczeniach wielopoziomowych.
53
54Demon restorecond używa inotify do śledzenia plików wymienionych w
55pliku /etc/selinux/restorecond.conf, aby przy ich tworzeniu upewnić
56się, że mają przypisane właściwe konteksty plików z polityki.
57
58%prep
59%setup -q -n restorecond-%{version}
60%patch0 -p1
61
62%build
63CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -W" \
64%{__make} \
65 CC="%{__cc}" \
66 LDFLAGS="%{rpmldflags}"
67
68%install
69rm -rf $RPM_BUILD_ROOT
70
71%{__make} install \
72 DESTDIR=$RPM_BUILD_ROOT \
8b11b9be
JB
73 MANDIR=%{_mandir} \
74 SYSTEMDDIR=/lib/systemd
1f82d141
JB
75
76%clean
77rm -rf $RPM_BUILD_ROOT
78
79%post
80/sbin/chkconfig --add restorecond
81%service restorecond restart
82
83%preun
84if [ "$1" = "0" ]; then
85 %service restorecond stop
86 /sbin/chkconfig --del restorecond
87fi
88
89%files
90%defattr(644,root,root,755)
91%attr(755,root,root) %{_sbindir}/restorecond
92%attr(754,root,root) /etc/rc.d/init.d/restorecond
93%{systemdunitdir}/restorecond.service
94%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/selinux/restorecond.conf
95%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/selinux/restorecond_user.conf
96%{_mandir}/man8/restorecond.8*
45cbcf63 97%lang(ru) %{_mandir}/ru/man8/restorecond.8*
1f82d141
JB
98%{_sysconfdir}/xdg/autostart/restorecond.desktop
99%{_datadir}/dbus-1/services/org.selinux.Restorecond.service
This page took 0.102439 seconds and 4 git commands to generate.