summaryrefslogtreecommitdiffstats
path: root/net/rxrpc
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-05-10 23:26:01 +0100
committerDavid Howells <dhowells@redhat.com>2018-05-10 23:26:01 +0100
commit93864fc3ffcc4bf70e96cfb5cc6e941630419ad0 (patch)
tree9a0a071624b313dccea371e302a2ced8b0c41fc6 /net/rxrpc
parentf2aeed3a591ff29a82495eeaa92ac4780bad7487 (diff)
downloadop-kernel-dev-93864fc3ffcc4bf70e96cfb5cc6e941630419ad0.zip
op-kernel-dev-93864fc3ffcc4bf70e96cfb5cc6e941630419ad0.tar.gz
rxrpc: Fix the min security level for kernel calls
Fix the kernel call initiation to set the minimum security level for kernel initiated calls (such as from kAFS) from the sockopt value. Fixes: 19ffa01c9c45 ("rxrpc: Use structs to hold connection params and protocol info") Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc')
-rw-r--r--net/rxrpc/af_rxrpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c
index 9a2c8e7..2b46304 100644
--- a/net/rxrpc/af_rxrpc.c
+++ b/net/rxrpc/af_rxrpc.c
@@ -313,7 +313,7 @@ struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
memset(&cp, 0, sizeof(cp));
cp.local = rx->local;
cp.key = key;
- cp.security_level = 0;
+ cp.security_level = rx->min_sec_level;
cp.exclusive = false;
cp.upgrade = upgrade;
cp.service_id = srx->srx_service;
OpenPOWER on IntegriCloud