[6.0] 422a90c4a Document support of SunOS and friends in VMOD unix.

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Aug 16 08:52:37 UTC 2018


commit 422a90c4affb95bf7b8c2663a39fd54ce43475db
Author: Geoff Simmons <geoff at uplex.de>
Date:   Fri Apr 6 15:37:22 2018 +0200

    Document support of SunOS and friends in VMOD unix.

diff --git a/lib/libvmod_unix/vmod.vcc b/lib/libvmod_unix/vmod.vcc
index d698a918c..e70a092d3 100644
--- a/lib/libvmod_unix/vmod.vcc
+++ b/lib/libvmod_unix/vmod.vcc
@@ -53,6 +53,12 @@ one of the following:
 
 * the socket option ``SO_PEERCRED`` for ``getsockopt(2)`` (Linux)
 
+* ``getpeerucred(3C)`` (SunOS and descendants)
+
+On SunOS and friends, the ``PRIV_PROC_INFO`` privilege set is added to
+the Varnish child process while the VMOD is loaded, see
+``setppriv(2)``.
+
 On most platforms, the value returned is the effective user or group
 that was valid when the peer process initiated the connection.
 
@@ -104,3 +110,5 @@ SEE ALSO
 * :ref:`vcl(7)`
 * ``getpeereid(3)``
 * ``getsockopt(2)``
+* ``getpeerucred(3C)``
+* ``setppriv(2)``


More information about the varnish-commit mailing list