Compare commits
52 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78ea4f67d9 | ||
|
|
d272a7e93f | ||
|
|
03fe9bf3f7 | ||
|
|
b306c68380 | ||
|
|
f653a6b04c | ||
|
|
b618757132 | ||
|
|
b0c058b681 | ||
|
|
603bc5a8c2 | ||
|
|
55339606af | ||
|
|
ea6ebb3c74 | ||
|
|
e5d7f15837 | ||
|
|
284272133b | ||
|
|
80c043d907 | ||
|
|
bda9434ce5 | ||
|
|
54048dd483 | ||
|
|
953b7d23c7 | ||
|
|
09a20e3b47 | ||
|
|
1949b202b5 | ||
|
|
059dd3b4cc | ||
|
|
e1ee9f02ab | ||
|
|
8c7488d20d | ||
|
f5c569a098 |
|||
|
|
757c5efdf2 | ||
|
|
e0a8453ad9 | ||
|
|
d3e8eb2dc9 | ||
|
|
548c022a72 | ||
|
|
a78d8cdcf2 | ||
|
|
71a5be22d6 | ||
|
41c2def7f7 |
|||
|
|
dfc97f4502 | ||
|
|
987476009a | ||
|
|
b741e9fb27 | ||
|
|
6ca59d76f2 | ||
|
|
a080e16eb8 | ||
|
|
c716037bba | ||
|
|
0632840831 | ||
|
|
88db6139ef | ||
|
|
586b66ef77 | ||
|
|
e67ff82ad3 | ||
|
|
7cd1177e2f | ||
|
|
630ecda9f3 | ||
|
|
8145165173 | ||
|
|
d87926c922 | ||
|
|
58ff6dd9f2 | ||
|
|
18d6c1a637 | ||
|
|
f79ed1c744 | ||
|
|
755e8e08d0 | ||
| 7815ed3530 | |||
|
|
738ded1c8a | ||
|
|
3eb5b8b8da | ||
|
|
3ad329c32b | ||
|
|
eaba4e06ce |
6 changed files with 195 additions and 68 deletions
18
.gitignore
vendored
18
.gitignore
vendored
|
|
@ -1,2 +1,20 @@
|
|||
/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
|
||||
/uid_wrapper-1.2.7.tar.gz
|
||||
/uid_wrapper-1.2.7.tar.gz.asc
|
||||
/uid_wrapper-1.2.8.tar.gz.asc
|
||||
/uid_wrapper-1.2.8.tar.gz
|
||||
/uid_wrapper-1.2.9.tar.gz
|
||||
/uid_wrapper-1.2.9.tar.gz.asc
|
||||
/uid_wrapper-1.3.0.tar.gz
|
||||
/uid_wrapper-1.3.0.tar.gz.asc
|
||||
/uid_wrapper-1.3.1.tar.gz
|
||||
/uid_wrapper-1.3.1.tar.gz.asc
|
||||
/uid_wrapper-1.3.2.tar.gz
|
||||
/uid_wrapper-1.3.2.tar.gz.asc
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
Index: uid_wrapper-1.0.2/tests/testsuite.c
|
||||
===================================================================
|
||||
--- uid_wrapper-1.0.2.orig/tests/testsuite.c
|
||||
+++ uid_wrapper-1.0.2/tests/testsuite.c
|
||||
@@ -198,8 +198,10 @@ static void test_uwrap_syscall(void **st
|
||||
rc = access(".", R_OK);
|
||||
assert_int_equal(rc, 0);
|
||||
|
||||
+#ifdef SYS_access
|
||||
rc = syscall(SYS_access, ".", R_OK);
|
||||
assert_int_equal(rc, 0);
|
||||
+#endif
|
||||
|
||||
ZERO_STRUCT(tv1);
|
||||
ZERO_STRUCT(tv2);
|
||||
154
changelog
Normal file
154
changelog
Normal file
|
|
@ -0,0 +1,154 @@
|
|||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Mon Mar 06 2023 Andreas Schneider <asn@redhat.com> - 1.3.0-4
|
||||
- Update License to SPDX expression
|
||||
|
||||
* Mon Feb 27 2023 Andreas Schneider <asn@redhat.com> - 1.3.0-3
|
||||
- Fix building with cmocka >= 1.1.6
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Tue Jan 17 2023 Andreas Schneider <asn@redhat.com> - 1.3.0-1
|
||||
- Update to version 1.3.0
|
||||
o https://gitlab.com/cwrap/uid_wrapper/-/blob/uid_wrapper-1.3.0/CHANGELOG
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.9-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.9-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Dec 02 2021 Andreas Schneider <asn@redhat.com> - 1.2.9-1
|
||||
- Rebase to version 1.2.9
|
||||
- resolves: rhbz#2021214 - Add support for getgroups_chk()
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Mon Apr 19 2021 Andreas Schneider <asn@redhat.com> - 1.2.8-1
|
||||
- Update to version 1.2.8
|
||||
o https://gitlab.com/cwrap/uid_wrapper/-/blob/uid_wrapper-1.2.8/ChangeLog
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.7-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.7-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Mar 03 2020 Anderson Sasaki <ansasaki@redhat.com> - 1.2.7-3
|
||||
- Fix invalid library path in cmake configuration file (bz#1809275)
|
||||
|
||||
* Wed Feb 12 2020 Andreas Schneider <asn@redhat.com> - 1.2.7-2
|
||||
- resolves: #1801869 - Fix invalid lib pkg-config lib path
|
||||
|
||||
* Tue Feb 11 2020 Andreas Schneider <asn@redhat.com> - 1.2.7-1
|
||||
- Update to version 1.2.7
|
||||
* Fix unsetting initial XIDs
|
||||
* Fix manpage installation
|
||||
* Fix cmake-config installation
|
||||
* Fixed running with sanitizers
|
||||
- resolves: #1690028 - Allow running without RTLD_DEEPBIND
|
||||
|
||||
* 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
|
||||
|
||||
* 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
|
||||
|
||||
* 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
|
||||
|
||||
* 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
|
||||
|
||||
* 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
|
||||
|
||||
* 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
|
||||
|
||||
* 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
|
||||
|
||||
* 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
|
||||
- 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
|
||||
- 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
|
||||
3
sources
3
sources
|
|
@ -1 +1,2 @@
|
|||
8fb6b12fa2f0dd918f2d5ad90e60014f uid_wrapper-1.0.2.tar.gz
|
||||
SHA512 (uid_wrapper-1.3.2.tar.gz) = a248494c445b8186e3fc9e3eb8b21149a08dc504871ffaf339d5f61e13f7291973d07d467d81e253d165792dd15f5df69db8a7e1e3424093a5b051f9a562d6fb
|
||||
SHA512 (uid_wrapper-1.3.2.tar.gz.asc) = d24956d7f396a91e1b063d074ace3da7c098b06bf43433d80d89d162c394b93b078330106fc4318a42ccca7c0eea6f317a28a2f0976ab821f61478c03ff378da
|
||||
|
|
|
|||
BIN
uid_wrapper.keyring
Normal file
BIN
uid_wrapper.keyring
Normal file
Binary file not shown.
|
|
@ -1,16 +1,22 @@
|
|||
Name: uid_wrapper
|
||||
Version: 1.0.2
|
||||
Release: 2%{?dist}
|
||||
Version: 1.3.2
|
||||
Release: %autorelease
|
||||
|
||||
Summary: A wrapper for privilege separation
|
||||
License: GPLv3+
|
||||
License: GPL-3.0-or-later
|
||||
Url: http://cwrap.org/
|
||||
|
||||
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
|
||||
Patch0: aarch64-has-no-sys-access.patch
|
||||
Source1: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc
|
||||
Source2: uid_wrapper.keyring
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libcmocka-devel
|
||||
BuildRequires: gnupg2
|
||||
BuildRequires: libcmocka-devel >= 1.1.0
|
||||
|
||||
Recommends: cmake
|
||||
Recommends: pkgconfig
|
||||
|
||||
%description
|
||||
Some projects like a file server need privilege separation to be able to switch
|
||||
|
|
@ -27,37 +33,25 @@ This package doesn't have a devel package cause this project is for
|
|||
development/testing.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
if test ! -e "obj"; then
|
||||
mkdir obj
|
||||
fi
|
||||
pushd obj
|
||||
%cmake \
|
||||
-DUNIT_TESTING=ON \
|
||||
%{_builddir}/%{name}-%{version}
|
||||
|
||||
make %{?_smp_mflags} VERBOSE=1
|
||||
popd
|
||||
-DUNIT_TESTING=ON
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
pushd obj
|
||||
make DESTDIR=%{buildroot} install
|
||||
popd
|
||||
%cmake_install
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%check
|
||||
pushd obj
|
||||
make test
|
||||
popd
|
||||
%ctest
|
||||
|
||||
%files
|
||||
%doc AUTHORS README ChangeLog COPYING
|
||||
%doc AUTHORS README.md CHANGELOG
|
||||
%license LICENSE
|
||||
%{_libdir}/libuid_wrapper.so*
|
||||
%dir %{_libdir}/cmake
|
||||
%dir %{_libdir}/cmake/uid_wrapper
|
||||
|
|
@ -68,29 +62,4 @@ popd
|
|||
%{_mandir}/man1/uid_wrapper.1*
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
- 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
|
||||
- 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
|
||||
%autochangelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue