Searched refs:sec (Results 1 – 6 of 6) sorted by relevance
/net/rxrpc/ |
D | ar-security.c | 28 static struct rxrpc_security *rxrpc_security_get(struct rxrpc_security *sec) in rxrpc_security_get() argument 30 return try_module_get(sec->owner) ? sec : NULL; in rxrpc_security_get() 36 static void rxrpc_security_put(struct rxrpc_security *sec) in rxrpc_security_put() argument 38 module_put(sec->owner); in rxrpc_security_put() 46 struct rxrpc_security *sec = NULL; in rxrpc_security_lookup() local 52 list_for_each_entry(sec, &rxrpc_security_methods, link) { in rxrpc_security_lookup() 53 if (sec->security_index == security_index) { in rxrpc_security_lookup() 54 if (unlikely(!rxrpc_security_get(sec))) in rxrpc_security_lookup() 60 sec = NULL; in rxrpc_security_lookup() 63 _leave(" = %p [%s]", sec, sec ? sec->name : ""); in rxrpc_security_lookup() [all …]
|
/net/bluetooth/ |
D | l2cap_sock.c | 372 struct bt_security sec; in l2cap_sock_getsockopt() local 397 memset(&sec, 0, sizeof(sec)); in l2cap_sock_getsockopt() 399 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 402 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt() 404 sec.level = chan->sec_level; in l2cap_sock_getsockopt() 407 len = min_t(unsigned int, len, sizeof(sec)); in l2cap_sock_getsockopt() 408 if (copy_to_user(optval, (char *) &sec, len)) in l2cap_sock_getsockopt() 587 struct bt_security sec; in l2cap_sock_setsockopt() local 611 sec.level = BT_SECURITY_LOW; in l2cap_sock_setsockopt() 613 len = min_t(unsigned int, sizeof(sec), optlen); in l2cap_sock_setsockopt() [all …]
|
/net/bluetooth/rfcomm/ |
D | sock.c | 671 struct bt_security sec; in rfcomm_sock_setsockopt() local 693 sec.level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt() 695 len = min_t(unsigned int, sizeof(sec), optlen); in rfcomm_sock_setsockopt() 696 if (copy_from_user((char *) &sec, optval, len)) { in rfcomm_sock_setsockopt() 701 if (sec.level > BT_SECURITY_HIGH) { in rfcomm_sock_setsockopt() 706 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt() 805 struct bt_security sec; in rfcomm_sock_getsockopt() local 828 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt() 829 sec.key_size = 0; in rfcomm_sock_getsockopt() 831 len = min_t(unsigned int, len, sizeof(sec)); in rfcomm_sock_getsockopt() [all …]
|
/net/dccp/ccids/ |
D | Kconfig | 33 This text was extracted from RFC 4340 (sec. 10.2),
|
/net/netfilter/ |
D | nfnetlink_log.c | 529 ts.sec = cpu_to_be64(tv.tv_sec); in __build_packet_message()
|
D | nfnetlink_queue_core.c | 458 ts.sec = cpu_to_be64(tv.tv_sec); in nfqnl_build_packet_message()
|