Blame SPECS/uid_wrapper.spec

196e41
Name:           uid_wrapper
196e41
Version:        1.2.4
a35ab9
Release:        4%{?dist}
196e41
196e41
Summary:        A wrapper for privilege separation
196e41
License:        GPLv3+
196e41
Url:            http://cwrap.org/
196e41
196e41
Source0:        https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
196e41
a35ab9
BuildRequires:  gcc
196e41
BuildRequires:  cmake
196e41
BuildRequires:  libcmocka-devel
196e41
196e41
%description
196e41
Some projects like a file server need privilege separation to be able to switch
196e41
to the connection user and do file operations. uid_wrapper convincingly lies
196e41
to the application letting it believe it is operating as root and even
196e41
switching between UIDs and GIDs as needed.
196e41
196e41
To use it set the following environment variables:
196e41
196e41
LD_PRELOAD=libuid_wrapper.so
196e41
UID_WRAPPER=1
196e41
196e41
This package doesn't have a devel package cause this project is for
196e41
development/testing.
196e41
196e41
%prep
196e41
%setup -q
196e41
196e41
%build
196e41
if test ! -e "obj"; then
196e41
  mkdir obj
196e41
fi
196e41
pushd obj
196e41
%cmake \
196e41
  -DUNIT_TESTING=ON \
196e41
  %{_builddir}/%{name}-%{version}
196e41
196e41
make %{?_smp_mflags} VERBOSE=1
196e41
popd
196e41
196e41
%install
196e41
pushd obj
196e41
make DESTDIR=%{buildroot} install
196e41
popd
196e41
a35ab9
%ldconfig_scriptlets
196e41
196e41
%check
196e41
pushd obj
196e41
make test || cat $(find Testing -name "*.log")
196e41
popd
196e41
196e41
%files
196e41
%doc AUTHORS README ChangeLog COPYING
196e41
%{_libdir}/libuid_wrapper.so*
196e41
%dir %{_libdir}/cmake
196e41
%dir %{_libdir}/cmake/uid_wrapper
196e41
%{_libdir}/cmake/uid_wrapper/uid_wrapper-config-version.cmake
196e41
%{_libdir}/cmake/uid_wrapper/uid_wrapper-config.cmake
196e41
%dir %{_libdir}/pkgconfig
196e41
%{_libdir}/pkgconfig/uid_wrapper.pc
196e41
%{_mandir}/man1/uid_wrapper.1*
196e41
196e41
%changelog
a35ab9
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-4
a35ab9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a35ab9
a35ab9
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-3
a35ab9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a35ab9
196e41
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-2
196e41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
196e41
196e41
* Mon Jul 31 2017 Andreas Schneider <asn@redhat.com> - 1.2.4-1
196e41
- Update to version 1.2.4
196e41
  * Added deadlock workaround for glibc < 2.24
196e41
  * Fixed a possible deadlock bug if uid_wrapper is turned off
196e41
  * Logging is always turned on now
196e41
  * Fixed a memory leak
196e41
  * Limited number of groups during fork+exec
196e41
196e41
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
196e41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
196e41
196e41
* Thu Jul 13 2017 Andreas Schneider <asn@redhat.com> - 1.2.2-1
196e41
- Update to version 1.2.2:
196e41
  * Added support for fork'ed and then exec'ed processes
196e41
  * Added support for Alpha
196e41
196e41
* Tue Jun 27 2017 Nils Philippsen <nils@redhat.com> - 1.2.1-3
196e41
- drop requirements on cmake, pkgconfig and rather own the directories for the
196e41
  files augmenting these packages
196e41
196e41
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
196e41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
196e41
196e41
* Wed Mar 23 2016 Andreas Schneider <asn@redhat.com> - 1.2.1-1
196e41
- Update to version 1.2.1
196e41
  * Documented missing options.
196e41
  * Fixed a comipilation issue with -O3.
196e41
196e41
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
196e41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
196e41
196e41
* Thu Oct 29 2015 Andreas Schneider <asn@redhat.com> - 1.2.0-1
196e41
- Update to version 1.2.0
196e41
  * Added privilege checks for all set*uid and set*gid functions.
196e41
  * Added a lot more and accurate tests which work as root.
196e41
  * Fixed some minor issues
196e41
196e41
* Wed Sep 02 2015 Andreas Schneider <asn@redhat.com> - 1.1.1-1
196e41
- Update to version 1.1.1
196e41
196e41
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
196e41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
196e41
196e41
* Wed Jan 21 2015 Andreas Schneider <asn@redhat.com> - 1.1.0-1
196e41
- Update to version 1.1.0
196e41
196e41
* Mon Dec 15 2014 Michael Adam <madam@redhat.com> - 1.0.2-5
196e41
- Fix format errors in changelog.
196e41
- Require cmake.
196e41
- Don't own _libdir/pkgconfig, and require pkgconfig instead.
196e41
196e41
* Thu Oct 02 2014 Andreas Schneider <asn@redhat.com> - 1.0.2-4
196e41
- resolves: #1146410 - Do not own /usr/lib64/cmake.
196e41
196e41
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
196e41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
196e41
196e41
* Mon Aug 04 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.0.2-2
196e41
- Handle lack of SYS_access on AArch64
196e41
196e41
* Thu Jul 31 2014 Andreas Schneider <asn@redhat.com> - 1.0.2-1
196e41
- Update to version 1.0.2.
196e41
196e41
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
196e41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
196e41
196e41
* Tue Mar 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-3
196e41
- Fix some typos.
196e41
- resolves: #1060910 - Fedora import
196e41
196e41
* Tue Feb 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-2
196e41
- Remove Group
196e41
- Remove glibc-devel build requirement
196e41
- Do not create a subpackage.
196e41
196e41
* Tue Feb 04 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-1
196e41
- Update to version 1.0.1
196e41
  * Added --libs to pkg-config.
196e41
  * Added socket_wrapper-config.cmake
196e41
  * Fixed a bug packaging the obj directory.
196e41
196e41
* Mon Feb 03 2014 Andreas Schneider <asn@redhat.com> - 1.0.0-1
196e41
- Initial version 1.0.0