psss / rpms / libsepol

Forked from rpms/libsepol 5 years ago
Clone
cvsdist 88c9ead
Summary: SELinux binary policy manipulation library 
cvsdist 88c9ead
Name: libsepol
27c3880
Version: 1.7
57d97af
Release: 2
cvsdist 88c9ead
License: GPL
cvsdist 88c9ead
Group: System Environment/Libraries
cvsdist 88c9ead
Source: http://www.nsa.gov/selinux/archives/libsepol-%{version}.tgz
07cf4bd
Patch: libsepol-rhat.patch
cvsdist 88c9ead
Prefix: %{_prefix}
cvsdist 88c9ead
BuildRoot: %{_tmppath}/%{name}-buildroot
cvsdist 88c9ead
Provides: libsepol.so
cvsdist 88c9ead
cvsdist 88c9ead
%description
cvsdist 88c9ead
Security-enhanced Linux is a patch of the Linux® kernel and a number
cvsdist 88c9ead
of utilities with enhanced security functionality designed to add
cvsdist 88c9ead
mandatory access controls to Linux.  The Security-enhanced Linux
cvsdist 88c9ead
kernel contains new architectural components originally developed to
cvsdist 88c9ead
improve the security of the Flask operating system. These
cvsdist 88c9ead
architectural components provide general support for the enforcement
cvsdist 88c9ead
of many kinds of mandatory access control policies, including those
cvsdist 88c9ead
based on the concepts of Type Enforcement®, Role-based Access
cvsdist 88c9ead
Control, and Multi-level Security.
cvsdist 88c9ead
cvsdist 88c9ead
libsepol provides an API for the manipulation of SELinux binary policies.
cvsdist 88c9ead
It is used by checkpolicy (the policy compiler) and similar tools, as well
cvsdist 88c9ead
as by programs like load_policy that need to perform specific transformations
cvsdist 88c9ead
on binary policies such as customizing policy boolean settings.
cvsdist 88c9ead
cvsdist 88c9ead
%package devel
cvsdist 88c9ead
Summary: Header files and libraries used to build policy manipulation tools
cvsdist 88c9ead
Group: Development/Libraries
cvsdist 88c9ead
Requires: libsepol = %{version}
cvsdist 88c9ead
cvsdist 88c9ead
%description devel
cvsdist 88c9ead
The sepol-devel package contains the static libraries and header files
cvsdist 88c9ead
needed for developing applications that manipulate binary policies. 
cvsdist 88c9ead
cvsdist 88c9ead
%prep
cvsdist 88c9ead
%setup -q
07cf4bd
%patch -p1 -b .rhat
07cf4bd
cvsdist 88c9ead
%build
cvsdist 3c07940
make CFLAGS="%{optflags}"
cvsdist 88c9ead
cvsdist 88c9ead
%install
cvsdist 88c9ead
rm -rf ${RPM_BUILD_ROOT}
cvsdist 88c9ead
mkdir -p ${RPM_BUILD_ROOT}/%{_lib} 
cvsdist 88c9ead
mkdir -p ${RPM_BUILD_ROOT}/%{_libdir} 
cvsdist 88c9ead
mkdir -p ${RPM_BUILD_ROOT}%{_includedir} 
cvsdist 5ad5404
mkdir -p ${RPM_BUILD_ROOT}%{_bindir} 
cvsdist 5ad5404
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man3
cvsdist 5ad5404
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
cvsdist 88c9ead
make DESTDIR="${RPM_BUILD_ROOT}" LIBDIR="${RPM_BUILD_ROOT}%{_libdir}" SHLIBDIR="${RPM_BUILD_ROOT}/%{_lib}" install
57d97af
rm -f ${RPM_BUILD_ROOT}%{_bindir}/genpolbools
57d97af
rm -f ${RPM_BUILD_ROOT}%{_bindir}/genpolusers
57d97af
rm -f ${RPM_BUILD_ROOT}%{_bindir}/chkcon
414ccee
rm -rf ${RPM_BUILD_ROOT}%{_mandir}/man8
cvsdist 88c9ead
%clean
cvsdist 88c9ead
rm -rf ${RPM_BUILD_ROOT}
cvsdist 88c9ead
cvsdist a25ddb6
%post -p /sbin/ldconfig
cvsdist a25ddb6
cvsdist a25ddb6
%postun -p /sbin/ldconfig
cvsdist 88c9ead
cvsdist 88c9ead
%files devel
cvsdist 88c9ead
%defattr(-,root,root)
cvsdist 88c9ead
%{_libdir}/libsepol.a
cvsdist 88c9ead
%{_libdir}/libsepol.so
cvsdist 88c9ead
%{_includedir}/sepol/*.h
cvsdist 5ad5404
%{_mandir}/man3/*.3.gz
cvsdist 88c9ead
cvsdist 88c9ead
%files
cvsdist 88c9ead
%defattr(-,root,root)
cvsdist 88c9ead
/%{_lib}/libsepol.so.1
cvsdist 88c9ead
cvsdist 88c9ead
%changelog
57d97af
* Thu Jul 7 2005 Dan Walsh <dwalsh@redhat.com> 1.7-2
57d97af
- Remove genpolbools and genpoluser 
57d97af
27c3880
* Thu Jul 7 2005 Dan Walsh <dwalsh@redhat.com> 1.7-1
27c3880
- Upgrade to latest from NSA
27c3880
	* Merged loadable module support from Tresys Technology.
27c3880
3433537
* Wed Jun 29 2005 Dan Walsh <dwalsh@redhat.com> 1.6-1
3433537
- Upgrade to latest from NSA
3433537
	* Updated version for release.
3433537
07cf4bd
* Tue May 17 2005 Dan Walsh <dwalsh@redhat.com> 1.5.10-1
07cf4bd
- Fix reset booleans warning message
07cf4bd
- Upgrade to latest from NSA
07cf4bd
	* License changed to LGPL v2.1, see COPYING.
07cf4bd
7d8931a
* Tue May 17 2005 Dan Walsh <dwalsh@redhat.com> 1.5.9-2
bf612b3
- Upgrade to latest from NSA
bf612b3
	* Added sepol_genbools_policydb and sepol_genusers_policydb for
bf612b3
	  audit2why.
bf612b3
5d7a0aa
* Mon May 16 2005 Dan Walsh <dwalsh@redhat.com> 1.5.8-2
5d7a0aa
- export sepol_context_to_sid
5d7a0aa
e043783
* Mon May 16 2005 Dan Walsh <dwalsh@redhat.com> 1.5.8-1
e043783
- Upgrade to latest from NSA
e043783
	* Added sepol_ prefix to Flask types to avoid 
e043783
	  namespace collision with libselinux.
e043783
e043783
* Fri May 13 2005 Dan Walsh <dwalsh@redhat.com> 1.5.7-1
90feaaf
- Upgrade to latest from NSA
90feaaf
	* Added sepol_compute_av_reason() for audit2why.
90feaaf
c4ff628
* Tue Apr 26 2005 Dan Walsh <dwalsh@redhat.com> 1.5.6-1
c4ff628
- Upgrade to latest from NSA
c4ff628
	* Fixed bug in role hierarchy checker.
c4ff628
57d5dcc
* Mon Apr 25 2005 Dan Walsh <dwalsh@redhat.com> 1.5.5-2
57d5dcc
- Fixes found via intel compiler
57d5dcc
fa4ea37
* Thu Apr 14 2005 Dan Walsh <dwalsh@redhat.com> 1.5.5-1
fa4ea37
- Update from NSA
fa4ea37
30eb218
* Tue Mar 29 2005 Dan Walsh <dwalsh@redhat.com> 1.5.3-1
30eb218
- Update from NSA
30eb218
041a966
* Thu Mar 24 2005 Dan Walsh <dwalsh@redhat.com> 1.5.2-2
041a966
- Handle booleans.local
041a966
b85e342
* Thu Mar 17 2005 Dan Walsh <dwalsh@redhat.com> 1.5.2-1
406a403
- Update to latest from NSA
b85e342
	* Added man page for sepol_check_context.
406a403
	* Added man page for sepol_genusers function.
406a403
	* Merged man pages for genpolusers and chkcon from Manoj Srivastava.
406a403
6d972dd
* Thu Mar 10 2005 Dan Walsh <dwalsh@redhat.com> 1.4-1
6d972dd
- Update to latest from NSA
6d972dd
bc67d33
* Tue Mar 8 2005 Dan Walsh <dwalsh@redhat.com> 1.3.8-1
bc67d33
- Update to latest from NSA
bc67d33
        * Cleaned up error handling in sepol_genusers and sepol_genbools.
bc67d33
9e487d2
* Tue Mar 1 2005 Dan Walsh <dwalsh@redhat.com> 1.3.7-1
9e487d2
- Update to latest from NSA
9e487d2
	* Merged sepol_debug and fclose patch from Dan Walsh.
9e487d2
9b7e5fe
* Fri Feb 18 2005 Dan Walsh <dwalsh@redhat.com> 1.3.6-3
9b7e5fe
- Make sure local_files file pointer is closed
2014478
- Stop outputing error messages
2014478
d6aaae0
* Thu Feb 17 2005 Dan Walsh <dwalsh@redhat.com> 1.3.6-1
d6aaae0
- Update to latest from NSA
d6aaae0
	* Changed sepol_genusers to also use getline and correctly handle
d6aaae0
	  EOL.
d6aaae0
* Thu Feb 17 2005 Dan Walsh <dwalsh@redhat.com> 1.3.5-1
91a26c1
- Update to latest from NSA
7ed3ff5
	* Merged endianness and compute_av patches from Darrel Goeddel (TCS).
91a26c1
	* Merged range_transition support from Darrel Goeddel (TCS).
91a26c1
	* Added sepol_genusers function.
7ed3ff5
d6aaae0
* Thu Feb 10 2005 Dan Walsh <dwalsh@redhat.com> 1.3.2-1
7ed3ff5
- Update to latest from NSA
7ed3ff5
	* Changed relabel Makefile target to use restorecon.
7ed3ff5
d6aaae0
* Mon Feb 7 2005 Dan Walsh <dwalsh@redhat.com> 1.3.1-1
7ed3ff5
- Update to latest from NSA
7ed3ff5
	* Merged enhanced MLS support from Darrel Goeddel (TCS).
7ed3ff5
d6aaae0
* Thu Jan 20 2005 Dan Walsh <dwalsh@redhat.com> 1.2.1.1-1
5a4e5b4
- Update to latest from NSA
5a4e5b4
	* Merged build fix patch from Manoj Srivastava.
5a4e5b4
d6aaae0
* Thu Nov 4 2004 Dan Walsh <dwalsh@redhat.com> 1.2.1-1
90d964f
- Update to latest from NSA
90d964f
d6aaae0
* Mon Aug 30 2004 Dan Walsh <dwalsh@redhat.com> 1.1.1-2
cvsdist 3c07940
- Add optargs for build
cvsdist 3c07940
d6aaae0
* Sun Aug 22 2004 Dan Walsh <dwalsh@redhat.com> 1.1.1-1
cvsdist d9547a8
- New version from NSA
cvsdist d9547a8
cvsdist d08e6b4
* Fri Aug 20 2004 Colin Walters <walters@redhat.com> 1.0-2
cvsdist d08e6b4
- Apply Stephen's chkcon patch
cvsdist d08e6b4
cvsdist 5b1b5b6
* Thu Aug 19 2004 Colin Walters <walters@redhat.com> 1.0-1
cvsdist 5b1b5b6
- New upstream version
cvsdist 5b1b5b6
d6aaae0
* Mon Aug 16 2004 Dan Walsh <dwalsh@redhat.com> 0.4.2-1
cvsdist 3e7fdd1
- Newversion from upstream implementing stringcase compare
cvsdist 3e7fdd1
cvsdist a25ddb6
* Fri Aug 13 2004 Bill Nottingham <notting@redhat.com> 0.4.1-2
cvsdist a25ddb6
- ldconfig tweaks
cvsdist 88c9ead
d6aaae0
* Thu Aug 12 2004 Dan Walsh <dwalsh@redhat.com> 0.4.1-1
cvsdist 3e7fdd1
- Ignore case of true/false
cvsdist 3e7fdd1
d6aaae0
* Wed Aug 11 2004 Dan Walsh <dwalsh@redhat.com> 0.4.1-1
cvsdist 5ad5404
- New version from NSA
cvsdist 5ad5404
d6aaae0
* Tue Aug 10 2004 Dan Walsh <dwalsh@redhat.com> 0.3.1-1
cvsdist 88c9ead
- Initial version
cvsdist 88c9ead
- Created by Stephen Smalley <sds@epoch.ncsc.mil> 
cvsdist 88c9ead
cvsdist 88c9ead