]>
Commit | Line | Data |
---|---|---|
95e9033f | 1 | Summary: SELinux binary policy manipulation library |
e12ada4d | 2 | Summary(pl.UTF-8): Biblioteka do obróbki polityk SELinuksa w postaci binarnej |
95e9033f | 3 | Name: libsepol |
a366db2a | 4 | Version: 2.9 |
35de5ad4 | 5 | Release: 1 |
d8c67fc4 | 6 | License: LGPL v2.1+ |
95e9033f | 7 | Group: Libraries |
35de5ad4 | 8 | #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases |
a366db2a MK |
9 | Source0: https://github.com/SELinuxProject/selinux/releases/download/20190315/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 2fdefe870a61424d8f2d5d37551c6259 | |
35de5ad4 | 11 | URL: https://github.com/SELinuxProject/selinux/wiki |
a77ecd41 | 12 | BuildRequires: flex |
95e9033f JB |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
20b0dd8a | 16 | Security-enhanced Linux is a patch of the Linux kernel and a number of |
17 | utilities with enhanced security functionality designed to add | |
95e9033f JB |
18 | mandatory access controls to Linux. The Security-enhanced Linux kernel |
19 | contains new architectural components originally developed to improve | |
20 | the security of the Flask operating system. These architectural | |
21 | components provide general support for the enforcement of many kinds | |
22 | of mandatory access control policies, including those based on the | |
23 | concepts of Type Enforcement, Role-based Access Control, and | |
24 | Multi-level Security. | |
25 | ||
26 | libsepol provides an API for the manipulation of SELinux binary | |
27 | policies. It is used by checkpolicy (the policy compiler) and similar | |
28 | tools, as well as by programs like load_policy that need to perform | |
29 | specific transformations on binary policies such as customizing policy | |
30 | boolean settings. | |
31 | ||
f76253ec JR |
32 | %description -l pl.UTF-8 |
33 | Security-enhanced Linux jest prototypem jądra Linuksa i wielu | |
34 | aplikacji użytkowych o funkcjach podwyższonego bezpieczeństwa. | |
35 | Zaprojektowany jest tak, aby w prosty sposób ukazać znaczenie | |
36 | obowiązkowej kontroli dostępu dla społeczności linuksowej. Ukazuje | |
37 | również jak taką kontrolę można dodać do istniejącego systemu typu | |
38 | Linux. Jądro SELinux zawiera nowe składniki architektury pierwotnie | |
39 | opracowane w celu ulepszenia bezpieczeństwa systemu operacyjnego | |
40 | Flask. Te elementy zapewniają ogólne wsparcie we wdrażaniu wielu typów | |
41 | polityk obowiązkowej kontroli dostępu, włączając te wzorowane na: Type | |
42 | Enforcement (TE), kontroli dostępu opartej na rolach (RBAC) i | |
95e9033f JB |
43 | zabezpieczeniach wielopoziomowych. |
44 | ||
f76253ec JR |
45 | libsepol dostarcza API do obróbki polityk SELinuksa w postaci |
46 | binarnej. Jest używane przez checkpolicy (kompilator polityk) i | |
47 | podobne narzędzia, a także przez programy w rodzaju load_policy, | |
48 | potrzebne do wykonywania określonych przekształceń na binarnych | |
49 | politykach, takich jak dostosowywanie logicznych ustawień polityki. | |
95e9033f JB |
50 | |
51 | %package devel | |
52 | Summary: Header files used to build policy manipulation tools | |
e12ada4d | 53 | Summary(pl.UTF-8): Pliki nagłówkowe do budowania narzędzi obrabiających politykę |
95e9033f JB |
54 | Group: Development/Libraries |
55 | Requires: %{name} = %{version}-%{release} | |
56 | ||
57 | %description devel | |
58 | This package contains the header files needed for developing | |
59 | applications that manipulate binary policies. | |
60 | ||
f76253ec JR |
61 | %description devel -l pl.UTF-8 |
62 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
63 | obrabiających binarne polityki. | |
95e9033f JB |
64 | |
65 | %package static | |
66 | Summary: Static version of libsepol library | |
e12ada4d | 67 | Summary(pl.UTF-8): Statyczna wersja biblioteki libsepol |
95e9033f JB |
68 | Group: Development/Libraries |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static version of libsepol library. | |
73 | ||
f76253ec | 74 | %description static -l pl.UTF-8 |
95e9033f JB |
75 | Statyczna wersja biblioteki libsepol. |
76 | ||
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %{__make} \ | |
82 | CC="%{__cc}" \ | |
b37ce810 | 83 | LDFLAGS="%{rpmldflags}" \ |
e1cf1a35 | 84 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" |
95e9033f JB |
85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT \ | |
dbc22b7e JB |
91 | LIBDIR=%{_libdir} \ |
92 | SHLIBDIR=/%{_lib} | |
95e9033f JB |
93 | |
94 | # make symlink across / absolute | |
84f9e919 | 95 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libsepol.so.*) \ |
95e9033f JB |
96 | $RPM_BUILD_ROOT%{_libdir}/libsepol.so |
97 | ||
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post -p /sbin/ldconfig | |
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files | |
105 | %defattr(644,root,root,755) | |
35d3e5c1 | 106 | %attr(755,root,root) /%{_lib}/libsepol.so.1 |
95e9033f JB |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
84f9e919 | 110 | %attr(755,root,root) %{_bindir}/chkcon |
95e9033f | 111 | %attr(755,root,root) %{_libdir}/libsepol.so |
20b0dd8a | 112 | %{_pkgconfigdir}/libsepol.pc |
95e9033f | 113 | %{_includedir}/sepol |
84f9e919 JB |
114 | %{_mandir}/man3/sepol_*.3* |
115 | %{_mandir}/man8/chkcon.8* | |
116 | %{_mandir}/man8/genpolbools.8* | |
117 | %{_mandir}/man8/genpolusers.8* | |
932827f3 | 118 | %lang(ru) %{_mandir}/ru/man8/chkcon.8* |
95e9033f JB |
119 | |
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libsepol.a |