rpms/tor/FC-5 tor-0.1.1.26-setgroups.patch, NONE, 1.1 tor.spec, 1.5, 1.6 tor-0.1.0.15-setgroups.patch, 1.1, NONE
Enrico Scholz (ensc)
fedora-extras-commits at redhat.com
Wed Jan 24 07:47:24 UTC 2007
Author: ensc
Update of /cvs/extras/rpms/tor/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29123/FC-5
Modified Files:
tor.spec
Added Files:
tor-0.1.1.26-setgroups.patch
Removed Files:
tor-0.1.0.15-setgroups.patch
Log Message:
updated -setgroups patch (#224090, thx to Sami Farin)
tor-0.1.1.26-setgroups.patch:
--- NEW FILE tor-0.1.1.26-setgroups.patch ---
--- tor-0.1.1.26/src/common/compat.c.setgroups 2006-09-24 19:47:57.000000000 +0200
+++ tor-0.1.1.26/src/common/compat.c 2007-01-24 08:41:03.000000000 +0100
@@ -526,6 +526,11 @@
return -1;
}
+ if (getgroups(0,0)!=0 && setgroups(0,0)!=0) {
+ log_warn(LD_GENERAL,"Error setting groups: %s", strerror(errno));
+ return -1;
+ }
+
if (setgid(gr->gr_gid) != 0) {
log_warn(LD_GENERAL,"Error setting GID: %s", strerror(errno));
return -1;
Index: tor.spec
===================================================================
RCS file: /cvs/extras/rpms/tor/FC-5/tor.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- tor.spec 17 Dec 2006 12:48:45 -0000 1.5
+++ tor.spec 24 Jan 2007 07:46:54 -0000 1.6
@@ -10,7 +10,7 @@
Name: tor
Version: 0.1.1.26
-Release: %release_func 1
+Release: %release_func 2
Group: System Environment/Daemons
License: BSD
Summary: Anonymizing overlay network for TCP (The onion router)
@@ -26,7 +26,7 @@
Source0: http://tor.eff.org/dist/%name-%version.tar.gz
Source1: http://tor.eff.org/dist/%name-%version.tar.gz.asc
Source2: tor.logrotate
-Patch0: tor-0.1.0.15-setgroups.patch
+Patch0: tor-0.1.1.26-setgroups.patch
BuildRoot: %_tmppath/%name-%version-%release-root
BuildRequires: libevent-devel openssl-devel transfig tetex-latex ghostscript
@@ -175,6 +175,9 @@
%changelog
+* Wed Jan 24 2007 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.1.1.26-2
+- updated -setgroups patch (#224090, thx to Sami Farin)
+
* Sun Dec 17 2006 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.1.1.26-1
- updated to 0.1.1.26 (SECURITY)
- do not turn on logging by default; it's easier to say "we do not log
--- tor-0.1.0.15-setgroups.patch DELETED ---
More information about the scm-commits
mailing list