Compare commits

...
Sign in to create a new pull request.

14 commits

Author SHA1 Message Date
Andreas Schneider
47c2d7e99c Update to version 1.2.4 2017-08-01 17:39:04 +02:00
Andreas Schneider
ccad5ed0a5 Update to version 1.2.2:
(cherry picked from commit c716037bba)
2017-07-13 14:47:40 +02:00
Nils Philippsen
a761979d2f drop requirements on cmake, pkgconfig
Instead, own the directories for the files augmenting these packages.

https://fedoraproject.org/wiki/Packaging:Guidelines#The_directory_is_owned_by_a_package_which_is_not_required_for_your_package_to_function
(cherry picked from commit 0632840831)
2017-07-13 14:47:32 +02:00
Andreas Schneider
fe7d964b2a Update to version 1.2.1 2016-03-23 15:54:03 +01:00
Andreas Schneider
c41cdc955f Update to version 1.2.0 2015-10-29 16:57:55 +01:00
Andreas Schneider
9449831327 Update to version 1.1.1 2015-09-02 14:34:30 +02:00
Andreas Schneider
c1143926ac Update to version 1.1.0 2015-01-21 15:48:54 +01:00
Michael Adam
36c50e9431 Don't own _libdir/pkgconfig and require pkgconfig instead.
Reviewed-by: Michael Adam <madam@redhat.com>
(cherry picked from commit 58ff6dd9f2)
2014-12-16 17:12:58 +01:00
Michael Adam
c4981b25b4 Require cmake, to not have directory _libdir/cmake without owner
Reviewed-by: Michael Adam <madam@redhat.com>
(cherry picked from commit 18d6c1a637)
2014-12-16 17:12:58 +01:00
Michael Adam
000163aa3c Fix format errors in changelog.
Signed-off-by: Michael Adam <madam@redhat.com>
(cherry picked from commit f79ed1c744)
2014-12-16 17:12:54 +01:00
Andreas Schneider
d0b4962495 Do not own /usr/lib64/cmake.
resolves: #1146410
2014-10-02 15:50:26 +02:00
Andreas Schneider
42d2740fed Update to version 1.0.2. 2014-07-31 09:53:10 +02:00
Andreas Schneider
9f2a31fcc7 Fedora import.
resolves: #1060910
2014-03-11 15:10:04 +01:00
Andreas Schneider
f1ab5c55b4 Bing bang! 2014-03-11 15:10:03 +01:00
3 changed files with 138 additions and 0 deletions

8
.gitignore vendored
View file

@ -0,0 +1,8 @@
/uid_wrapper-1.0.1.tar.gz
/uid_wrapper-1.0.2.tar.gz
/uid_wrapper-1.1.0.tar.gz
/uid_wrapper-1.1.1.tar.gz
/uid_wrapper-1.2.0.tar.gz
/uid_wrapper-1.2.1.tar.gz
/uid_wrapper-1.2.2.tar.gz
/uid_wrapper-1.2.4.tar.gz

View file

@ -0,0 +1 @@
SHA512 (uid_wrapper-1.2.4.tar.gz) = 212b35f7d0655611c5bb7927e4e29049ce79a4e677805fa7154142dff559ddc6dd7117a4c94314b69e27c954ff03ef49470ed69e2405cf46b5958643c6021d3b

129
uid_wrapper.spec Normal file
View file

@ -0,0 +1,129 @@
Name: uid_wrapper
Version: 1.2.4
Release: 1%{?dist}
Summary: A wrapper for privilege separation
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 connection user and do file operations. uid_wrapper convincingly lies
to the application letting it believe it is operating as root and even
switching between 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 || cat $(find Testing -name "*.log")
popd
%files
%doc AUTHORS README ChangeLog COPYING
%{_libdir}/libuid_wrapper.so*
%dir %{_libdir}/cmake
%dir %{_libdir}/cmake/uid_wrapper
%{_libdir}/cmake/uid_wrapper/uid_wrapper-config-version.cmake
%{_libdir}/cmake/uid_wrapper/uid_wrapper-config.cmake
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/uid_wrapper.pc
%{_mandir}/man1/uid_wrapper.1*
%changelog
* Mon Jul 31 2017 Andreas Schneider <asn@redhat.com> - 1.2.4-1
- Update to version 1.2.4
* Added deadlock workaround for glibc < 2.24
* Fixed a possible deadlock bug if uid_wrapper is turned off
* Logging is always turned on now
* Fixed a memory leak
* Limited number of groups during fork+exec
* Thu Jul 13 2017 Andreas Schneider <asn@redhat.com> - 1.2.2-1
- Update to version 1.2.2:
* Added support for fork'ed and then exec'ed processes
* Added support for Alpha
* Tue Jun 27 2017 Nils Philippsen <nils@redhat.com> - 1.2.1-3
- drop requirements on cmake, pkgconfig and rather own the directories for the
files augmenting these packages
* Wed Mar 23 2016 Andreas Schneider <asn@redhat.com> - 1.2.1-1
- Update to version 1.2.1
* Documented missing options.
* Fixed a comipilation issue with -O3.
* Thu Oct 29 2015 Andreas Schneider <asn@redhat.com> - 1.2.0-1
- Update to version 1.2.0
* Added privilege checks for all set*uid and set*gid functions.
* Added a lot more and accurate tests which work as root.
* Fixed some minor issues
* Wed Sep 02 2015 Andreas Schneider <asn@redhat.com> - 1.1.1-1
- Update to version 1.1.1
* Wed Jan 21 2015 Andreas Schneider <asn@redhat.com> - 1.1.0-1
- Update to version 1.1.0
* Mon Dec 15 2014 Michael Adam <madam@redhat.com> - 1.0.2-3
- Fix format errors in changelog.
- Require cmake.
- Don't own _libdir/pkgconfig, and require pkgconfig instead.
* Thu Oct 02 2014 Andreas Schneider <asn@redhat.com> - 1.0.2-2
- resolves: #1146410 - Do not own /usr/lib64/cmake.
* Thu Jul 31 2014 Andreas Schneider <asn@redhat.com> - 1.0.2-1
- Update to version 1.0.2.
* Tue Mar 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-3
- Fix some typos.
- resolves: #1060910 - Fedora import
* 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