1 Summary: MCS (Multiple Category System) SELinux service
2 Summary(pl.UTF-8): Usługa SELinuksa MCS (Multiple Category System)
8 #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
9 Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/mcstrans-%{version}.tar.gz
10 # Source0-md5: 3a0edb2a8b6a255199824abd58c0906c
11 Patch0: mcstrans-init.patch
12 URL: https://github.com/SELinuxProject/selinux/wiki
13 BuildRequires: gcc >= 6:3.4
14 BuildRequires: libcap-devel
15 BuildRequires: libselinux-devel >= 2.8
16 BuildRequires: libsepol-static >= 2.8
17 BuildRequires: pcre-devel
18 Requires(post,preun): /sbin/chkconfig
19 Requires: libselinux >= 2.8
21 Obsoletes: policycoreutils-mcstrans < 2.7
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Security-enhanced Linux is a patch of the Linux kernel and a number of
26 utilities with enhanced security functionality designed to add
27 mandatory access controls to Linux. The Security-enhanced Linux kernel
28 contains new architectural components originally developed to improve
29 the security of the Flask operating system. These architectural
30 components provide general support for the enforcement of many kinds
31 of mandatory access control policies, including those based on the
32 concepts of Type Enforcement, Role-based Access Control, and
35 This package contains MCS (Multiple Category System) SELinux service.
37 %description -l pl.UTF-8
38 Security-enhanced Linux jest prototypem jądra Linuksa i wielu
39 aplikacji użytkowych o funkcjach podwyższonego bezpieczeństwa.
40 Zaprojektowany jest tak, aby w prosty sposób ukazać znaczenie
41 obowiązkowej kontroli dostępu dla społeczności linuksowej. Ukazuje
42 również jak taką kontrolę można dodać do istniejącego systemu typu
43 Linux. Jądro SELinux zawiera nowe składniki architektury pierwotnie
44 opracowane w celu ulepszenia bezpieczeństwa systemu operacyjnego
45 Flask. Te elementy zapewniają ogólne wsparcie we wdrażaniu wielu typów
46 polityk obowiązkowej kontroli dostępu, włączając te wzorowane na: Type
47 Enforcement (TE), kontroli dostępu opartej na rolach (RBAC) i
48 zabezpieczeniach wielopoziomowych.
50 Ten pakiet zawiera usługę SELinuksa MCS (Multiple Category System).
53 %setup -q -n mcstrans-%{version}
57 CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute" \
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT \
68 SYSTEMDDIR=/lib/systemd
71 rm -rf $RPM_BUILD_ROOT
74 /sbin/chkconfig --add mcstrans
75 %service mcstrans restart
78 if [ "$1" = "0" ]; then
79 %service mcstrans stop
80 /sbin/chkconfig --del mcstrans
84 %defattr(644,root,root,755)
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*