[uid_wrapper/f20] Bing bang!

asn asn at fedoraproject.org
Tue Mar 11 12:55:22 UTC 2014


commit d58b5b9171be9344df82457306b3b0dd24b8bcca
Author: Andreas Schneider <asn at cryptomilk.org>
Date:   Tue Mar 11 13:44:43 2014 +0100

    Bing bang!

 .gitignore       |    1 +
 sources          |    1 +
 uid_wrapper.spec |   79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1c83e3f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/uid_wrapper-1.0.1.tar.gz
diff --git a/sources b/sources
index e69de29..d7975de 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+219d0a33da5eaeef7c180c3d8734477e  uid_wrapper-1.0.1.tar.gz
diff --git a/uid_wrapper.spec b/uid_wrapper.spec
new file mode 100644
index 0000000..d799663
--- /dev/null
+++ b/uid_wrapper.spec
@@ -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 at 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 at 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 at redhat.com> - 1.0.0-1
+- Initial version 1.0.0


More information about the scm-commits mailing list