]>
Commit | Line | Data |
---|---|---|
0871a493 JB |
1 | Summary: MCS (Multiple Category System) SELinux service |
2 | Summary(pl.UTF-8): Usługa SELinuksa MCS (Multiple Category System) | |
3 | Name: selinux-mcstrans | |
54bbeb8a | 4 | Version: 2.9 |
0871a493 JB |
5 | Release: 1 |
6 | License: GPL v2 | |
7 | Group: Daemons | |
8 | #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases | |
54bbeb8a JB |
9 | Source0: https://github.com/SELinuxProject/selinux/releases/download/20190315/mcstrans-%{version}.tar.gz |
10 | # Source0-md5: 0f70a1eb6565a9f61a017cc408ea4c7a | |
0871a493 JB |
11 | Patch0: mcstrans-init.patch |
12 | URL: https://github.com/SELinuxProject/selinux/wiki | |
13 | BuildRequires: gcc >= 6:3.4 | |
14 | BuildRequires: libcap-devel | |
54bbeb8a JB |
15 | BuildRequires: libselinux-devel >= 2.9 |
16 | BuildRequires: libsepol-static >= 2.9 | |
0871a493 JB |
17 | BuildRequires: pcre-devel |
18 | Requires(post,preun): /sbin/chkconfig | |
54bbeb8a | 19 | Requires: libselinux >= 2.9 |
0871a493 JB |
20 | Requires: rc-scripts |
21 | Obsoletes: policycoreutils-mcstrans < 2.7 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
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 | |
33 | Multi-level Security. | |
34 | ||
35 | This package contains MCS (Multiple Category System) SELinux service. | |
36 | ||
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. | |
49 | ||
50 | Ten pakiet zawiera usługę SELinuksa MCS (Multiple Category System). | |
51 | ||
52 | %prep | |
53 | %setup -q -n mcstrans-%{version} | |
54 | %patch0 -p1 | |
55 | ||
56 | %build | |
57 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute" \ | |
58 | %{__make} \ | |
59 | CC="%{__cc}" \ | |
60 | LIBDIR="%{_libdir}" | |
61 | ||
62 | %install | |
63 | rm -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 | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post | |
74 | /sbin/chkconfig --add mcstrans | |
75 | %service mcstrans restart | |
76 | ||
77 | %preun | |
78 | if [ "$1" = "0" ]; then | |
79 | %service mcstrans stop | |
80 | /sbin/chkconfig --del mcstrans | |
81 | fi | |
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* |