uid_wrapper/uid_wrapper.spec

166 lines
5.3 KiB
RPMSpec
Raw Normal View History

2014-03-11 12:44:43 +00:00
Name: uid_wrapper
2017-07-31 15:45:39 +00:00
Version: 1.2.4
Release: 6%{?dist}
2014-03-11 12:44:43 +00:00
2014-03-11 12:47:11 +00:00
Summary: A wrapper for privilege separation
2014-03-11 12:44:43 +00:00
License: GPLv3+
Url: http://cwrap.org/
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: cmake
2014-03-11 12:44:43 +00:00
BuildRequires: libcmocka-devel
%description
Some projects like a file server need privilege separation to be able to switch
2014-03-11 12:47:11 +00:00
to the connection user and do file operations. uid_wrapper convincingly lies
2014-03-11 12:44:43 +00:00
to the application letting it believe it is operating as root and even
2014-03-11 12:47:11 +00:00
switching between UIDs and GIDs as needed.
2014-03-11 12:44:43 +00:00
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 \
2014-03-11 12:44:43 +00:00
-DUNIT_TESTING=ON \
%{_builddir}/%{name}-%{version}
make %{?_smp_mflags} VERBOSE=1
popd
%install
pushd obj
make DESTDIR=%{buildroot} install
popd
%ldconfig_scriptlets
2014-03-11 12:44:43 +00:00
%check
pushd obj
2016-03-23 08:39:16 +00:00
make test || cat $(find Testing -name "*.log")
2014-03-11 12:44:43 +00:00
popd
%files
%doc AUTHORS README ChangeLog COPYING
%{_libdir}/libuid_wrapper.so*
%dir %{_libdir}/cmake
2014-07-31 07:53:10 +00:00
%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
2014-03-11 12:44:43 +00:00
%{_libdir}/pkgconfig/uid_wrapper.pc
2014-07-31 07:53:10 +00:00
%{_mandir}/man1/uid_wrapper.1*
2014-03-11 12:44:43 +00:00
%changelog
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-07-31 15:45:39 +00:00
* 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 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-07-13 10:54:08 +00:00
* 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
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-03-23 08:39:16 +00:00
* 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.
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-10-29 12:58:25 +00:00
* 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
2015-09-02 12:04:24 +00:00
* Wed Sep 02 2015 Andreas Schneider <asn@redhat.com> - 1.1.1-1
- Update to version 1.1.1
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-01-21 12:52:25 +00:00
* 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-5
- 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-4
- resolves: #1146410 - Do not own /usr/lib64/cmake.
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-08-04 09:46:06 +00:00
* Mon Aug 04 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.0.2-2
- Handle lack of SYS_access on AArch64
* Thu Jul 31 2014 Andreas Schneider <asn@redhat.com> - 1.0.2-1
2014-07-31 07:53:10 +00:00
- Update to version 1.0.2.
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Mar 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-3
2014-03-11 12:47:11 +00:00
- Fix some typos.
- resolves: #1060910 - Fedora import
* Tue Feb 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-2
2014-03-11 12:44:43 +00:00
- 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
2014-03-11 12:44:43 +00:00
- 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
2014-03-11 12:44:43 +00:00
- Initial version 1.0.0