Bing bang!

This commit is contained in:
Andreas Schneider 2014-03-11 13:44:43 +01:00
parent 2be91c229a
commit 8659d93e56
3 changed files with 81 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/uid_wrapper-1.0.1.tar.gz

View File

@ -0,0 +1 @@
219d0a33da5eaeef7c180c3d8734477e uid_wrapper-1.0.1.tar.gz

79
uid_wrapper.spec Normal file
View File

@ -0,0 +1,79 @@
Name: uid_wrapper
Version: 1.0.1
Release: 2%{?dist}
Summary: A wrapper for privilege seperation
License: GPLv3+
Url: http://cwrap.org/
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: libcmocka-devel
%description
Some projects like a file server need privilege separation to be able to switch
to the connnection user and do file operations. uid_wrapper convincingly lies
to the application letting it believe it is operating as root and even
switching betwen uids and gids as needed.
To use it set the following environment variables:
LD_PRELOAD=libuid_wrapper.so
UID_WRAPPER=1
This package doesn't have a devel package cause this project is for
development/testing.
%prep
%setup -q
%build
if test ! -e "obj"; then
mkdir obj
fi
pushd obj
%cmake \
-DUNIT_TESTING=ON \
%{_builddir}/%{name}-%{version}
make %{?_smp_mflags} VERBOSE=1
popd
%install
pushd obj
make DESTDIR=%{buildroot} install
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%check
pushd obj
make test
popd
%files
%doc AUTHORS README ChangeLog COPYING
%{_libdir}/libuid_wrapper.so*
%dir %{_libdir}/cmake
%{_libdir}/cmake/uid_wrapper-config-version.cmake
%{_libdir}/cmake/uid_wrapper-config.cmake
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/uid_wrapper.pc
%changelog
* Tue Feb 11 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-2
- Remove Group
- Remove glibc-devel build requirement
- Do not create a subpackage.
* Tue Feb 04 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-1
- Update to version 1.0.1
* Added --libs to pkg-config.
* Added socket_wrapper-config.cmake
* Fixed a bug packaging the obj directory.
* Mon Feb 03 2014 - Andreas Schneider <asn@redhat.com> - 1.0.0-1
- Initial version 1.0.0