12 #include <linux/module.h>
13 #include <linux/net.h>
15 #include <linux/udp.h>
30 return try_module_get(sec->
owner) ? sec :
NULL;
38 module_put(sec->
owner);
54 if (
unlikely(!rxrpc_security_get(sec)))
63 _leave(
" = %p [%s]", sec, sec ? sec->
name :
"");
87 list_add(&sec->
link, &rxrpc_security_methods);
112 list_del_init(&sec->
link);
140 if (!key->payload.data)
142 token = key->payload.data;
149 ret = conn->
security->init_connection_security(conn);
178 _leave(
" = -ENOKEY [lookup]");
191 rxrpc_security_put(sec);
198 rxrpc_security_put(sec);
208 rxrpc_security_put(sec);
209 _leave(
" = %ld [search]", PTR_ERR(kref));
210 return PTR_ERR(kref);
213 key = key_ref_to_ptr(kref);
231 if (call->
conn->security)
232 return call->
conn->security->secure_packet(
233 call, skb, data_size, sechdr);
243 if (call->
conn->security)
244 return call->
conn->security->verify_packet(
245 call, skb, _abort_code);