summaryrefslogtreecommitdiff
path: root/www/varnish/patches
diff options
context:
space:
mode:
authorfhajny <fhajny>2011-05-09 11:11:11 +0000
committerfhajny <fhajny>2011-05-09 11:11:11 +0000
commit27f478ca625a6592f3866e5a807acf1e770f2bb6 (patch)
treec92638be71200b373287848d5ec87b0baa7d3a16 /www/varnish/patches
parent1726b620b8878add8e03ed4c27b83082f722998c (diff)
downloadpkgsrc-27f478ca625a6592f3866e5a807acf1e770f2bb6.tar.gz
Fix least privileges support on recent (snv_140+) OpenSolaris versions.
Bump PKGREVISION
Diffstat (limited to 'www/varnish/patches')
-rw-r--r--www/varnish/patches/patch-bin__varnishd__mgt_child.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/varnish/patches/patch-bin__varnishd__mgt_child.c b/www/varnish/patches/patch-bin__varnishd__mgt_child.c
new file mode 100644
index 00000000000..6750e4bf6da
--- /dev/null
+++ b/www/varnish/patches/patch-bin__varnishd__mgt_child.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-bin__varnishd__mgt_child.c,v 1.1 2011/05/09 11:11:11 fhajny Exp $
+
+Patch varnishd to run on recent (snv_140+) versions of OpenSolaris.
+See http://www.varnish-cache.org/trac/ticket/912
+--- bin/varnishd/mgt_child.c.orig 2010-10-21 08:57:22.000000000 +0000
++++ bin/varnishd/mgt_child.c
+@@ -298,6 +298,7 @@ waive_privileges(void)
+
+ /* new privilege, silently ignore any errors if it doesn't exist */
+ priv_addset(minimal, "net_access");
++ priv_addset(minimal, "file_read");
+
+ #define SETPPRIV(which, set) \
+ if (setppriv(PRIV_SET, which, set)) \