[3.0] f46350c Adjustments to solaris sandbox.

Tollef Fog Heen tfheen at varnish-cache.org
Wed Oct 26 14:58:55 CEST 2011


commit f46350c3b6e1b7ee1ba44ad3261a730a9de0c316
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Oct 13 10:00:56 2011 +0000

    Adjustments to solaris sandbox.
    
    Submitted by:	Nils Goroll

diff --git a/bin/varnishd/mgt_sandbox_solaris.c b/bin/varnishd/mgt_sandbox_solaris.c
index 5da880a..82c4380 100644
--- a/bin/varnishd/mgt_sandbox_solaris.c
+++ b/bin/varnishd/mgt_sandbox_solaris.c
@@ -224,10 +224,10 @@ mgt_sandbox_solaris_fini(void)
 		    "Child start warning: Waiving privileges failed on %s: errno=%d (%s)", \
 		    #which, errno, strerror(errno));
 
-	SETPPRIV(PRIV_INHERITABLE, inheritable);
-	SETPPRIV(PRIV_EFFECTIVE, effective);
-	SETPPRIV(PRIV_PERMITTED, permitted);
 	SETPPRIV(PRIV_LIMIT, permitted);
+	SETPPRIV(PRIV_PERMITTED, permitted);
+	SETPPRIV(PRIV_EFFECTIVE, effective);
+	SETPPRIV(PRIV_INHERITABLE, inheritable);
 #undef SETPPRIV
 
 	priv_freeset(inheritable);



More information about the varnish-commit mailing list