Commit 51344da7 authored by Geoff Simmons's avatar Geoff Simmons

VMOD unix: hold back the SunOS/getpeerucred() case for now.

To be taken up again after 6.0.
parent 681dc94b
......@@ -217,7 +217,6 @@ AC_CHECK_FUNCS([fallocate])
AC_CHECK_FUNCS([closefrom])
AC_CHECK_FUNCS([sigaltstack])
AC_CHECK_FUNCS([getpeereid])
AC_CHECK_FUNCS([getpeerucred])
save_LIBS="${LIBS}"
LIBS="${PTHREAD_LIBS}"
......
......@@ -65,18 +65,6 @@ get_ids(int fd, uid_t *uid, gid_t *gid)
return (CREDS_FAIL);
return (0);
#elif defined(HAVE_GETPEERUCRED)
ucred_t *ucred;
errno = 0;
if (getpeerucred(fd, &ucred) != 0)
return (CREDS_FAIL);
*uid = ucred_geteuid(ucred);
*gid = ucred_getegid(ucred);
ucred_free(ucred);
return (0);
#else
(void) fd;
(void) uid;
......
......@@ -48,12 +48,6 @@ one of the following:
* ``getpeereid(3)`` (such as FreeBSD and other BSD-derived systems)
* ``getpeerucred(3)`` (SunOS and descendants)
* Reading peer credentials on such a system may require that the
Varnish child process runs with certain privileges (such as
``PRIV_PROC_INFO``)
* the socket option ``SO_PEERCRED`` for ``getsockopt(2)`` (Linux)
On most platforms, the value returned is the effective user or group
......@@ -106,5 +100,4 @@ SEE ALSO
* :ref:`varnishd(1)`
* :ref:`vcl(7)`
* ``getpeereid(3)``
* ``getpeerucred(3)``
* ``getsockopt(2)``
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment