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
f3468275
Commit
f3468275
authored
Mar 13, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
White-space OCD
parent
bd844c35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
m00047.vtc
bin/varnishtest/tests/m00047.vtc
+5
-5
vmod.vcc
lib/libvmod_unix/vmod.vcc
+3
-3
No files found.
bin/varnishtest/tests/m00047.vtc
View file @
f3468275
...
...
@@ -50,11 +50,11 @@ logexpect l1 -v v1 -d 1 -b {
} -run
logexpect l1 -v v1 -d 1 -c {
expect * 1001 Begin req
expect * = VCL_Error {^vmod unix error: not listening on a Unix domain socket$}
expect * = VCL_Error {^vmod unix error: not listening on a Unix domain socket$}
expect * = VCL_Error {^vmod unix error: not listening on a Unix domain socket$}
expect * = VCL_Error {^vmod unix error: not listening on a Unix domain socket$}
expect * 1001 Begin req
expect * = VCL_Error {^vmod unix error: not listening on a Unix domain socket$}
expect * = VCL_Error {^vmod unix error: not listening on a Unix domain socket$}
expect * = VCL_Error {^vmod unix error: not listening on a Unix domain socket$}
expect * = VCL_Error {^vmod unix error: not listening on a Unix domain socket$}
} -run
...
...
lib/libvmod_unix/vmod.vcc
View file @
f3468275
...
...
@@ -26,13 +26,13 @@ Examples::
}
# Require the connected peer to run in the group
# "trustedgroup".
# "trustedgroup".
if (unix.group() != "trustedgroup") {
return( synth(403) );
}
# Require the connected peer to run under a specific numeric
# user id.
# user id.
if (unix.uid() != 4711) {
return( synth(403) );
}
...
...
@@ -87,7 +87,7 @@ All functions in this VMOD are subject to the following constraints:
If the failure occurs during ``vcl_synth``, then ``vcl_synth`` is
aborted, and the the response line "503 VCL failed" is sent.
* If the current listener is not a Unix domain socket, or if the
attempt to read credentials fails, then a ``VCL_Error`` message is
written to the log. The STRING functions (``vmod_user`` and
...
...
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