[master] 4e085f9 Document support of SunOS and friends in VMOD unix.

Geoff Simmons geoff at uplex.de
Fri Apr 6 13:38:10 UTC 2018


commit 4e085f9a9cb934e45bc8065983803c83bf01d18e
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 d698a91..e70a092 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