]> git.pld-linux.org Git - packages/selinux-mcstrans.git/blob - selinux-mcstrans.spec
- updated to 2.8
[packages/selinux-mcstrans.git] / selinux-mcstrans.spec
1 Summary:        MCS (Multiple Category System) SELinux service
2 Summary(pl.UTF-8):      Usługa SELinuksa MCS (Multiple Category System)
3 Name:           selinux-mcstrans
4 Version:        2.8
5 Release:        1
6 License:        GPL v2
7 Group:          Daemons
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
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 \
67         LIBDIR=%{_libdir} \
68         SYSTEMDDIR=/lib/systemd
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*
This page took 0.078566 seconds and 3 git commands to generate.