rpms/incron/EL-5 incron-0.5.5-initgroups.patch, NONE, 1.1 incron.spec, 1.3, 1.4

Till Maas till at fedoraproject.org
Thu Oct 1 21:59:12 UTC 2009


Author: till

Update of /cvs/pkgs/rpms/incron/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4279

Modified Files:
	incron.spec 
Added Files:
	incron-0.5.5-initgroups.patch 
Log Message:
* Thu Oct 01 2009 Till Maas <opensource at till.name> - 0.5.5-2
- Initialize initgroups when running user incrontabs


incron-0.5.5-initgroups.patch:
 usertable.cpp |    1 +
 1 file changed, 1 insertion(+)

--- NEW FILE incron-0.5.5-initgroups.patch ---
diff -up incron-0.5.5/usertable.cpp.initgroups incron-0.5.5/usertable.cpp
--- incron-0.5.5/usertable.cpp.initgroups	2007-02-14 15:54:33.000000000 +0100
+++ incron-0.5.5/usertable.cpp	2009-10-01 23:50:30.000000000 +0200
@@ -529,6 +529,7 @@ void UserTable::RunAsUser(char* const* a
   struct passwd* pwd = getpwnam(m_user.c_str());
   if (    pwd == NULL                 // user not found
       ||  setgid(pwd->pw_gid) != 0    // setting GID failed
+      || initgroups(m_user.c_str(),pwd->pw_gid) != 0 // supplementary groups
       ||  setuid(pwd->pw_uid) != 0)    // setting UID failed
   {
     goto failed;


Index: incron.spec
===================================================================
RCS file: /cvs/pkgs/rpms/incron/EL-5/incron.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- incron.spec	13 Mar 2007 21:16:15 -0000	1.3
+++ incron.spec	1 Oct 2009 21:59:12 -0000	1.4
@@ -1,13 +1,15 @@
 Summary:     Inotify cron system
 Name:        incron
 Version:     0.5.5
-Release:     1%{?dist}
+Release:     2%{?dist}
 
 Group:       System Environment/Base          
 License:     GPL
 URL:         http://inotify.aiken.cz
 Source0:     http://inotify.aiken.cz/download/incron/%{name}-%{version}.tar.bz2
 Source1:     incrond.init
+# 2009-10-01: initialize initgroups, already applied in versuion 0.5.7
+Patch0:      incron-0.5.5-initgroups.patch
 BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires(post):   /sbin/chkconfig
@@ -22,6 +24,8 @@ filesystem events rather than time perio
 
 %prep
 %setup -q
+%patch0 -p1 -b .initgroups
+
 
 %build
 make %{?_smp_mflags} CXXFLAGS="%{optflags}"
@@ -77,6 +81,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Oct 01 2009 Till Maas <opensource at till.name> - 0.5.5-2
+- Initialize initgroups when running user incrontabs
+
 * Thu Mar 13 2007 <ruben at rubenkerkhof.com> 0.5.5-1
 - Sync with upstream
 * Mon Feb 12 2007 <ruben at rubenkerkhof.com> 0.5.4-1




More information about the fedora-extras-commits mailing list