pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/privoxy PR/40532 - Cem Kayali -- group permissions...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8a9c9b3375d
branches:  trunk
changeset: 553889:f8a9c9b3375d
user:      jnemeth <jnemeth%pkgsrc.org@localhost>
date:      Mon Feb 02 20:00:40 2009 +0000

description:
PR/40532 - Cem Kayali -- group permissions too broad
Just fixing security issue, will leave pkg update for MAINTAINER for now.

diffstat:

 www/privoxy/Makefile         |  4 +++-
 www/privoxy/files/privoxy.sh |  5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r ecc1e0fefe7b -r f8a9c9b3375d www/privoxy/Makefile
--- a/www/privoxy/Makefile      Mon Feb 02 19:54:22 2009 +0000
+++ b/www/privoxy/Makefile      Mon Feb 02 20:00:40 2009 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.34 2008/03/12 21:35:03 drochner Exp $
+# $NetBSD: Makefile,v 1.35 2009/02/02 20:00:40 jnemeth Exp $
 #
 
 DISTNAME=      ${PKGNAME_NOREV}-stable-src
 PKGNAME=       privoxy-3.0.8
+PKGREVISION=   1
 CATEGORIES=    www
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=ijbswa/}
 
@@ -54,6 +55,7 @@
 OWN_DIRS_PERMS+=       /var/log/privoxy ${USER_GROUP} 0775
 
 FILES_SUBST+=          PRIVOXY_USER=${PRIVOXY_USER:Q}
+FILES_SUBST+=          PRIVOXY_USER=${PRIVOXY_GROUP:Q}
 
 SUBST_CLASSES+=                paths
 SUBST_FILES.paths=     config
diff -r ecc1e0fefe7b -r f8a9c9b3375d www/privoxy/files/privoxy.sh
--- a/www/privoxy/files/privoxy.sh      Mon Feb 02 19:54:22 2009 +0000
+++ b/www/privoxy/files/privoxy.sh      Mon Feb 02 20:00:40 2009 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: privoxy.sh,v 1.3 2003/07/12 15:11:39 salo Exp $
+# $NetBSD: privoxy.sh,v 1.4 2009/02/02 20:00:40 jnemeth Exp $
 #
 
 # PROVIDE: privoxy
@@ -14,8 +14,9 @@
 pidfile="/var/run/${name}.pid"
 pconfig="@PKG_SYSCONFDIR@/config"
 puser="@PRIVOXY_USER@"
+pgroup="@PRIVOXY_GROUP@"
 required_files="$pconfig"
-command_args="--pidfile ${pidfile} --user ${puser} ${pconfig} 2>/dev/null"
+command_args="--pidfile ${pidfile} --user ${puser}.${pgroup} ${pconfig} 2>/dev/null"
 
 load_rc_config $name
 run_rc_command "$1"



Home | Main Index | Thread Index | Old Index