mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
3b3009ea8a
When a kernel consumer needs a transport layer security session, it first needs a handshake to negotiate and establish a session. This negotiation can be done in user space via one of the several existing library implementations, or it can be done in the kernel. No in-kernel handshake implementations yet exist. In their absence, we add a netlink service that can: a. Notify a user space daemon that a handshake is needed. b. Once notified, the daemon calls the kernel back via this netlink service to get the handshake parameters, including an open socket on which to establish the session. c. Once the handshake is complete, the daemon reports the session status and other information via a second netlink operation. This operation marks that it is safe for the kernel to use the open socket and the security session established there. The notification service uses a multicast group. Each handshake mechanism (eg, tlshd) adopts its own group number so that the handshake services are completely independent of one another. The kernel can then tell via netlink_has_listeners() whether a handshake service is active and prepared to handle a handshake request. A new netlink operation, ACCEPT, acts like accept(2) in that it instantiates a file descriptor in the user space daemon's fd table. If this operation is successful, the reply carries the fd number, which can be treated as an open and ready file descriptor. While user space is performing the handshake, the kernel keeps its muddy paws off the open socket. A second new netlink operation, DONE, indicates that the user space daemon is finished with the socket and it is safe for the kernel to use again. The operation also indicates whether a session was established successfully. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
83 lines
2.4 KiB
Makefile
83 lines
2.4 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the linux networking.
|
|
#
|
|
# 2 Sep 2000, Christoph Hellwig <hch@infradead.org>
|
|
# Rewritten to use lists instead of if-statements.
|
|
#
|
|
|
|
obj-y := devres.o socket.o core/
|
|
|
|
obj-$(CONFIG_COMPAT) += compat.o
|
|
|
|
# LLC has to be linked before the files in net/802/
|
|
obj-$(CONFIG_LLC) += llc/
|
|
obj-y += ethernet/ 802/ sched/ netlink/ bpf/ ethtool/
|
|
obj-$(CONFIG_NETFILTER) += netfilter/
|
|
obj-$(CONFIG_INET) += ipv4/
|
|
obj-$(CONFIG_TLS) += tls/
|
|
obj-$(CONFIG_XFRM) += xfrm/
|
|
obj-$(CONFIG_UNIX_SCM) += unix/
|
|
obj-y += ipv6/
|
|
obj-$(CONFIG_BPFILTER) += bpfilter/
|
|
obj-$(CONFIG_PACKET) += packet/
|
|
obj-$(CONFIG_NET_KEY) += key/
|
|
obj-$(CONFIG_BRIDGE) += bridge/
|
|
obj-$(CONFIG_NET_DEVLINK) += devlink/
|
|
obj-y += dsa/
|
|
obj-$(CONFIG_ATALK) += appletalk/
|
|
obj-$(CONFIG_X25) += x25/
|
|
obj-$(CONFIG_LAPB) += lapb/
|
|
obj-$(CONFIG_NETROM) += netrom/
|
|
obj-$(CONFIG_ROSE) += rose/
|
|
obj-$(CONFIG_AX25) += ax25/
|
|
obj-$(CONFIG_CAN) += can/
|
|
obj-$(CONFIG_BT) += bluetooth/
|
|
obj-$(CONFIG_SUNRPC) += sunrpc/
|
|
obj-$(CONFIG_AF_RXRPC) += rxrpc/
|
|
obj-$(CONFIG_AF_KCM) += kcm/
|
|
obj-$(CONFIG_STREAM_PARSER) += strparser/
|
|
obj-$(CONFIG_ATM) += atm/
|
|
obj-$(CONFIG_L2TP) += l2tp/
|
|
obj-$(CONFIG_PHONET) += phonet/
|
|
ifneq ($(CONFIG_VLAN_8021Q),)
|
|
obj-y += 8021q/
|
|
endif
|
|
obj-$(CONFIG_IP_DCCP) += dccp/
|
|
obj-$(CONFIG_IP_SCTP) += sctp/
|
|
obj-$(CONFIG_RDS) += rds/
|
|
obj-$(CONFIG_WIRELESS) += wireless/
|
|
obj-$(CONFIG_MAC80211) += mac80211/
|
|
obj-$(CONFIG_TIPC) += tipc/
|
|
obj-$(CONFIG_NETLABEL) += netlabel/
|
|
obj-$(CONFIG_IUCV) += iucv/
|
|
obj-$(CONFIG_SMC) += smc/
|
|
obj-$(CONFIG_RFKILL) += rfkill/
|
|
obj-$(CONFIG_NET_9P) += 9p/
|
|
obj-$(CONFIG_CAIF) += caif/
|
|
obj-$(CONFIG_DCB) += dcb/
|
|
obj-$(CONFIG_6LOWPAN) += 6lowpan/
|
|
obj-$(CONFIG_IEEE802154) += ieee802154/
|
|
obj-$(CONFIG_MAC802154) += mac802154/
|
|
|
|
obj-$(CONFIG_SYSCTL) += sysctl_net.o
|
|
obj-$(CONFIG_DNS_RESOLVER) += dns_resolver/
|
|
obj-$(CONFIG_CEPH_LIB) += ceph/
|
|
obj-$(CONFIG_BATMAN_ADV) += batman-adv/
|
|
obj-$(CONFIG_NFC) += nfc/
|
|
obj-$(CONFIG_PSAMPLE) += psample/
|
|
obj-$(CONFIG_NET_IFE) += ife/
|
|
obj-$(CONFIG_OPENVSWITCH) += openvswitch/
|
|
obj-$(CONFIG_VSOCKETS) += vmw_vsock/
|
|
obj-$(CONFIG_MPLS) += mpls/
|
|
obj-$(CONFIG_NET_NSH) += nsh/
|
|
obj-$(CONFIG_HSR) += hsr/
|
|
obj-$(CONFIG_NET_SWITCHDEV) += switchdev/
|
|
obj-$(CONFIG_NET_L3_MASTER_DEV) += l3mdev/
|
|
obj-$(CONFIG_QRTR) += qrtr/
|
|
obj-$(CONFIG_NET_NCSI) += ncsi/
|
|
obj-$(CONFIG_XDP_SOCKETS) += xdp/
|
|
obj-$(CONFIG_MPTCP) += mptcp/
|
|
obj-$(CONFIG_MCTP) += mctp/
|
|
obj-$(CONFIG_NET_HANDSHAKE) += handshake/
|