diff options
author | 2025-04-11 10:52:56 +0100 | |
---|---|---|
committer | 2025-04-14 17:36:42 -0700 | |
commit | d03539d5c2dec9b028297c15e57bd3c01d0d9c0d (patch) | |
tree | 0e2650b0093fb7b36af987395398ad2d75f4d218 /fs/afs | |
parent | rxrpc: Allow the app to store private data on peer structs (diff) | |
download | wireguard-linux-d03539d5c2dec9b028297c15e57bd3c01d0d9c0d.tar.xz wireguard-linux-d03539d5c2dec9b028297c15e57bd3c01d0d9c0d.zip |
rxrpc: Display security params in the afs_cb_call tracepoint
Make the afs_cb_call tracepoint display some security parameters to make
debugging easier.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
Link: https://patch.msgid.link/20250411095303.2316168-12-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/internal.h | 2 | ||||
-rw-r--r-- | fs/afs/rxrpc.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h index b3612b700c6a..178804817efb 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h @@ -176,8 +176,10 @@ struct afs_call { bool intr; /* T if interruptible */ bool unmarshalling_error; /* T if an unmarshalling error occurred */ bool responded; /* Got a response from the call (may be abort) */ + u8 security_ix; /* Security class */ u16 service_id; /* Actual service ID (after upgrade) */ unsigned int debug_id; /* Trace ID */ + u32 enctype; /* Security encoding type */ u32 operation_ID; /* operation ID for an incoming call */ u32 count; /* count for use in unmarshalling */ union { /* place to extract temporary data */ diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c index 212af2aa85bf..00b3bc087f61 100644 --- a/fs/afs/rxrpc.c +++ b/fs/afs/rxrpc.c @@ -813,6 +813,10 @@ static int afs_deliver_cm_op_id(struct afs_call *call) if (!afs_cm_incoming_call(call)) return -ENOTSUPP; + call->security_ix = rxrpc_kernel_query_call_security(call->rxcall, + &call->service_id, + &call->enctype); + trace_afs_cb_call(call); call->work.func = call->type->work; |