1 Summary: SELinux binary policy manipulation library
2 Summary(pl.UTF-8): Biblioteka do obróbki polityk SELinuksa w postaci binarnej
8 #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
9 Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: e0c71bc448cffada3406cc9a7ad7ea2c
11 URL: https://github.com/SELinuxProject/selinux/wiki
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Security-enhanced Linux is a patch of the Linux kernel and a number of
17 utilities with enhanced security functionality designed to add
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
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
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
43 zabezpieczeniach wielopoziomowych.
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.
52 Summary: Header files used to build policy manipulation tools
53 Summary(pl.UTF-8): Pliki nagłówkowe do budowania narzędzi obrabiających politykę
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 This package contains the header files needed for developing
59 applications that manipulate binary policies.
61 %description devel -l pl.UTF-8
62 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji
63 obrabiających binarne polityki.
66 Summary: Static version of libsepol library
67 Summary(pl.UTF-8): Statyczna wersja biblioteki libsepol
68 Group: Development/Libraries
69 Requires: %{name}-devel = %{version}-%{release}
72 Static version of libsepol library.
74 %description static -l pl.UTF-8
75 Statyczna wersja biblioteki libsepol.
78 Summary: libsepol utilitites
79 Summary(pl.UTF-8): Narzędzia dla libsepol
80 Group: Application/System
81 Requires: %{name} = %{version}-%{release}
86 %description utils -l pl.UTF-8
87 Narzędzia dla libsepol.
95 LDFLAGS="%{rpmldflags}" \
96 CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall"
99 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT \
106 # make symlink across / absolute
107 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libsepol.so.*) \
108 $RPM_BUILD_ROOT%{_libdir}/libsepol.so
111 rm -rf $RPM_BUILD_ROOT
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
117 %defattr(644,root,root,755)
118 %attr(755,root,root) /%{_lib}/libsepol.so.2
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libsepol.so
123 %{_pkgconfigdir}/libsepol.pc
125 %{_mandir}/man3/sepol_*.3*
126 %{_mandir}/man8/genpolbools.8*
127 %{_mandir}/man8/genpolusers.8*
130 %defattr(644,root,root,755)
131 %{_libdir}/libsepol.a
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_bindir}/chkcon
136 %attr(755,root,root) %{_bindir}/sepol_check_access
137 %attr(755,root,root) %{_bindir}/sepol_compute_av
138 %attr(755,root,root) %{_bindir}/sepol_compute_member
139 %attr(755,root,root) %{_bindir}/sepol_compute_relabel
140 %attr(755,root,root) %{_bindir}/sepol_validate_transition
141 %{_mandir}/man8/chkcon.8*