From d3db4ed5c580749a646d24b1e61ba74f12f41020 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 25 Jul 2011 11:03:47 +0000 Subject: [PATCH 1/1] - setuidgid with supplementary groups, from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534508 Changed files: dropto.spec -> 1.1 --- dropto.spec | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dropto.spec diff --git a/dropto.spec b/dropto.spec new file mode 100644 index 0000000..53e60cf --- /dev/null +++ b/dropto.spec @@ -0,0 +1,36 @@ +Summary: Run a program as another user +Name: dropto +Version: 0.3.1 +Release: 1 +License: GPL v3 +Group: Base/Utilities +Source0: http://users.ox.ac.uk/~tom/source/dropto/%{name}-%{version}.tar.gz +# Source0-md5: 1c22adbe6c10c91a1037a8d5dd8220f8 +URL: http://users.ox.ac.uk/~tom/dropto/dropto.8 +BuildRequires: xmlto +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Privilege-dropping exec()er in the spirit of setuidgid, but with +supplementary group membership. + +%prep +%setup -q + +%build +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc AUTHORS README THANKS +%attr(755,root,root) %{_bindir}/dropto +%{_mandir}/man8/dropto.8* -- 2.43.0