Name: uid_wrapper Version: 1.3.0 Release: 2 Summary: A wrapper for privilege separation License: GPLv3+ URL: http://cwrap.org/ Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz Source1: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc Source2: uid_wrapper.keyring Patch0: uid_wrapper-fix-cmocka-1.1.6+-support.patch BuildRequires: cmake libcmocka-devel >= 1.1.0 gcc gnupg2 pkgconfig %description Some projects, such as a file server, need privilege separation to be able to switch to the user who owns the files and do file operations on their behalf. uid_wrapper convincingly lies to the application, letting it believe it is operating as root and even switching between UIDs and GIDs as needed. You can start any application making it believe it is running as root. If you load the uid_wrapper and enable it with setting UID_WRAPPER=1 all setuid() and setgid() calls will work, even as a normal user. It is possible to start your application as fake root with setting UID_WRAPPER_ROOT=1. Enable debugging of uid_wrapper itself by setting the UID_WRAPPER_DEBUGLEVEL variable. %package help Summary: Help package for %{name} %description help This package contains some man help files for %{name}. %prep gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %autosetup -n %{name}-%{version} -p1 %build install -d obj cd obj %cmake -DUNIT_TESTING=ON %{_builddir}/%{name}-%{version} %make_build VERBOSE=1 %install cd obj %make_install %post /sbin/ldconfig %postun /sbin/ldconfig %check cd obj make test || find Testing -name "*.log" | xargs cat %files %doc AUTHORS README.md CHANGELOG %{_libdir}/libuid_wrapper.so* %dir %{_libdir}/cmake %{_libdir}/cmake/uid_wrapper/* %dir %{_libdir}/pkgconfig %{_libdir}/pkgconfig/uid_wrapper.pc %files help %{_mandir}/man1/uid_wrapper.1* %changelog * Wed Jun 21 2023 yaoxin - 1.3.0-2 - Fix compilation failure due to cmocka update to 1.1.7 * Tue Feb 14 2023 lilong - 1.3.0-1 - Upgrade to 1.3.0 * Wed Jul 20 2022 zhangfan - 1.2.9-1 - Update to 1.2.9 * Mon May 31 2021 huanghaitao - 1.2.4-5 - Completing build dependencies to fix gcc compiler missing error * Wed Nov 20 2019 lingsheng - 1.2.4-4 - Package init