|
|
|
@@ -19,9 +19,9 @@
|
|
|
|
|
Name: libsemanage
|
|
|
|
|
Version: 2.5
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: SELinux binary policy manipulation library
|
|
|
|
|
Summary: SELinux policy management library
|
|
|
|
|
License: LGPL-2.1+
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Url: https://github.com/SELinuxProject/selinux/wiki/Releases
|
|
|
|
|
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: baselibs.conf
|
|
|
|
@@ -35,63 +35,47 @@ BuildRequires: libbz2-devel
|
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
|
BuildRequires: libsepol-devel
|
|
|
|
|
BuildRequires: libustr-devel
|
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Security-enhanced Linux is a feature of the Linux kernel and a number
|
|
|
|
|
of utilities with enhanced security functionality designed to add
|
|
|
|
|
mandatory access controls to Linux. The Security-enhanced Linux
|
|
|
|
|
kernel contains new architectural components originally developed to
|
|
|
|
|
improve the security of the Flask operating system. These
|
|
|
|
|
architectural components provide general support for the enforcement
|
|
|
|
|
of many kinds of mandatory access control policies, including those
|
|
|
|
|
based on the concepts of Type Enforcement, Role-based Access
|
|
|
|
|
Control, and Multi-level Security.
|
|
|
|
|
|
|
|
|
|
libsemanage provides an API for the manipulation of SELinux binary policies.
|
|
|
|
|
It is used by checkpolicy (the policy compiler) and similar tools, as well
|
|
|
|
|
as by programs like load_policy that need to perform specific transformations
|
|
|
|
|
on binary policies such as customizing policy boolean settings.
|
|
|
|
|
libsemanage is the policy management library. Using libsepol and
|
|
|
|
|
libselinux to interact with the SELinux system, it also calls helper
|
|
|
|
|
programs for loading policy and for checking whether the
|
|
|
|
|
file_contexts configuration is valid.
|
|
|
|
|
|
|
|
|
|
%package -n libsemanage1
|
|
|
|
|
Summary: SELinux binary policy manipulation library
|
|
|
|
|
Summary: SELinux policy management library
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n libsemanage1
|
|
|
|
|
Security-enhanced Linux is a feature of the Linux kernel and a
|
|
|
|
|
number of utilities with enhanced security functionality designed to
|
|
|
|
|
add mandatory access controls to Linux. The Security-enhanced Linux
|
|
|
|
|
kernel contains new architectural components originally developed to
|
|
|
|
|
improve the security of the Flask operating system. These architectural
|
|
|
|
|
components provide general support for the enforcement of many kinds of
|
|
|
|
|
mandatory access control policies, including those based on the
|
|
|
|
|
concepts of Type Enforcement, Role-based Access Control, and
|
|
|
|
|
Multi-level Security.
|
|
|
|
|
libsemanage is the policy management library. Using libsepol and
|
|
|
|
|
libselinux to interact with the SELinux system, it also calls helper
|
|
|
|
|
programs for loading policy and for checking whether the
|
|
|
|
|
file_contexts configuration is valid.
|
|
|
|
|
|
|
|
|
|
libsemanage provides an API for the manipulation of SELinux binary
|
|
|
|
|
policies. It is used by checkpolicy (the policy compiler) and similar
|
|
|
|
|
tools, as well as by programs like load_policy that need to perform
|
|
|
|
|
specific transformations on binary policies such as customizing policy
|
|
|
|
|
boolean settings.
|
|
|
|
|
(Security-enhanced Linux is a feature of the kernel and some
|
|
|
|
|
utilities that implement mandatory access control policies, such as
|
|
|
|
|
Type Enforcement, Role-based Access Control and Multi-Level
|
|
|
|
|
Security.)
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Header files and libraries used to build policy manipulation tools
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
|
|
|
|
|
Summary: Header files and libraries for SELinux's policy management libary
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: libsemanage1 = %{version}
|
|
|
|
|
Requires: libustr-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The semanage-devel package contains the libraries and header files
|
|
|
|
|
needed for developing applications that manipulate binary policies.
|
|
|
|
|
The libsemanage-devel package contains the libraries and header files
|
|
|
|
|
needed for developing applications that manipulate SELinux policies.
|
|
|
|
|
|
|
|
|
|
%package devel-static
|
|
|
|
|
Summary: SELinux binary policy manipulation library
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Summary: Static archives for SELinux's policy management library
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: libsemanage-devel
|
|
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
|
The semanage-static package contains the static libraries
|
|
|
|
|
The libsemanage-devel-static package contains the static libraries
|
|
|
|
|
needed for developing applications that manipulate binary policies.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
@@ -126,10 +110,8 @@ cp %{SOURCE2} %{buildroot}%{_sysconfdir}/selinux/semanage.conf
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/libsemanage.so
|
|
|
|
|
%{_libdir}/pkgconfig/libsemanage.pc
|
|
|
|
|
%dir %{_libexecdir}/selinux
|
|
|
|
|
%{_libexecdir}/selinux/semanage_migrate_store
|
|
|
|
|
%dir %{_includedir}/semanage
|
|
|
|
|
%{_includedir}/semanage/*.h
|
|
|
|
|
%{_libexecdir}/selinux/
|
|
|
|
|
%{_includedir}/semanage/
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
|
|
|
|
|
|