Skip to content

Commit 93864fc

Browse files
committed
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: 19ffa01 ("rxrpc: Use structs to hold connection params and protocol info") Signed-off-by: David Howells <[email protected]>
1 parent f2aeed3 commit 93864fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rxrpc/af_rxrpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
313313
memset(&cp, 0, sizeof(cp));
314314
cp.local = rx->local;
315315
cp.key = key;
316-
cp.security_level = 0;
316+
cp.security_level = rx->min_sec_level;
317317
cp.exclusive = false;
318318
cp.upgrade = upgrade;
319319
cp.service_id = srx->srx_service;

0 commit comments

Comments
 (0)