]> git.pld-linux.org Git - packages/selinux-mcstrans.git/blame - selinux-mcstrans.spec
- updated to 2.9
[packages/selinux-mcstrans.git] / selinux-mcstrans.spec
CommitLineData
0871a493
JB
1Summary: MCS (Multiple Category System) SELinux service
2Summary(pl.UTF-8): Usługa SELinuksa MCS (Multiple Category System)
3Name: selinux-mcstrans
54bbeb8a 4Version: 2.9
0871a493
JB
5Release: 1
6License: GPL v2
7Group: Daemons
8#Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
54bbeb8a
JB
9Source0: https://github.com/SELinuxProject/selinux/releases/download/20190315/mcstrans-%{version}.tar.gz
10# Source0-md5: 0f70a1eb6565a9f61a017cc408ea4c7a
0871a493
JB
11Patch0: mcstrans-init.patch
12URL: https://github.com/SELinuxProject/selinux/wiki
13BuildRequires: gcc >= 6:3.4
14BuildRequires: libcap-devel
54bbeb8a
JB
15BuildRequires: libselinux-devel >= 2.9
16BuildRequires: libsepol-static >= 2.9
0871a493
JB
17BuildRequires: pcre-devel
18Requires(post,preun): /sbin/chkconfig
54bbeb8a 19Requires: libselinux >= 2.9
0871a493
JB
20Requires: rc-scripts
21Obsoletes: policycoreutils-mcstrans < 2.7
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Security-enhanced Linux is a patch of the Linux kernel and a number of
26utilities with enhanced security functionality designed to add
27mandatory access controls to Linux. The Security-enhanced Linux kernel
28contains new architectural components originally developed to improve
29the security of the Flask operating system. These architectural
30components provide general support for the enforcement of many kinds
31of mandatory access control policies, including those based on the
32concepts of Type Enforcement, Role-based Access Control, and
33Multi-level Security.
34
35This package contains MCS (Multiple Category System) SELinux service.
36
37%description -l pl.UTF-8
38Security-enhanced Linux jest prototypem jądra Linuksa i wielu
39aplikacji użytkowych o funkcjach podwyższonego bezpieczeństwa.
40Zaprojektowany jest tak, aby w prosty sposób ukazać znaczenie
41obowiązkowej kontroli dostępu dla społeczności linuksowej. Ukazuje
42również jak taką kontrolę można dodać do istniejącego systemu typu
43Linux. Jądro SELinux zawiera nowe składniki architektury pierwotnie
44opracowane w celu ulepszenia bezpieczeństwa systemu operacyjnego
45Flask. Te elementy zapewniają ogólne wsparcie we wdrażaniu wielu typów
46polityk obowiązkowej kontroli dostępu, włączając te wzorowane na: Type
47Enforcement (TE), kontroli dostępu opartej na rolach (RBAC) i
48zabezpieczeniach wielopoziomowych.
49
50Ten pakiet zawiera usługę SELinuksa MCS (Multiple Category System).
51
52%prep
53%setup -q -n mcstrans-%{version}
54%patch0 -p1
55
56%build
57CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute" \
58%{__make} \
59 CC="%{__cc}" \
60 LIBDIR="%{_libdir}"
61
62%install
63rm -rf $RPM_BUILD_ROOT
64
65%{__make} install \
66 DESTDIR=$RPM_BUILD_ROOT \
9fd3f4a2
JB
67 LIBDIR=%{_libdir} \
68 SYSTEMDDIR=/lib/systemd
0871a493
JB
69
70%clean
71rm -rf $RPM_BUILD_ROOT
72
73%post
74/sbin/chkconfig --add mcstrans
75%service mcstrans restart
76
77%preun
78if [ "$1" = "0" ]; then
79 %service mcstrans stop
80 /sbin/chkconfig --del mcstrans
81fi
82
83%files
84%defattr(644,root,root,755)
85%doc TODO
86%attr(755,root,root) /sbin/mcstransd
87%attr(754,root,root) /etc/rc.d/init.d/mcstrans
88%{systemdunitdir}/mcstrans.service
89%{_mandir}/man8/mcs.8*
90%{_mandir}/man8/mcstransd.8*
91%{_mandir}/man8/setrans.conf.8*
54bbeb8a
JB
92%lang(ru) %{_mandir}/ru/man8/mcs.8*
93%lang(ru) %{_mandir}/ru/man8/mcstransd.8*
94%lang(ru) %{_mandir}/ru/man8/setrans.conf.8*
This page took 0.066948 seconds and 4 git commands to generate.