summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-09-26 22:11:38 +0000
committergVisor bot <gvisor-bot@google.com>2019-09-26 22:11:38 +0000
commit6a4603f31a45ed8301b5ec3081c78566b791eb88 (patch)
treefb44e437146ae08cea4d536db49991067ea2c279 /pkg
parentd3c2893c0de9457ac2280c1bb0ba975c8f56ceba (diff)
parent543492650dd528c1d837d788dcd3b5138e8dc1c0 (diff)
Merge release-20190806.1-197-g5434926 (automated)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/socket/epsocket/provider.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/socket/epsocket/provider.go b/pkg/sentry/socket/epsocket/provider.go
index 421f93dc4..0a9dfa6c3 100644
--- a/pkg/sentry/socket/epsocket/provider.go
+++ b/pkg/sentry/socket/epsocket/provider.go
@@ -65,7 +65,7 @@ func getTransportProtocol(ctx context.Context, stype linux.SockType, protocol in
// Raw sockets require CAP_NET_RAW.
creds := auth.CredentialsFromContext(ctx)
if !creds.HasCapability(linux.CAP_NET_RAW) {
- return 0, true, syserr.ErrPermissionDenied
+ return 0, true, syserr.ErrNotPermitted
}
switch protocol {