Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
51344da7
Commit
51344da7
authored
Mar 12, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VMOD unix: hold back the SunOS/getpeerucred() case for now.
To be taken up again after 6.0.
parent
681dc94b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
20 deletions
+0
-20
configure.ac
configure.ac
+0
-1
cred_compat.h
lib/libvmod_unix/cred_compat.h
+0
-12
vmod.vcc
lib/libvmod_unix/vmod.vcc
+0
-7
No files found.
configure.ac
View file @
51344da7
...
...
@@ -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}"
...
...
lib/libvmod_unix/cred_compat.h
View file @
51344da7
...
...
@@ -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
;
...
...
lib/libvmod_unix/vmod.vcc
View file @
51344da7
...
...
@@ -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)``
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment