]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/cifs/Makefile
cifs: Send witness register and unregister commands to userspace daemon
authorSamuel Cabrero <scabrero@suse.de>
Mon, 30 Nov 2020 18:02:51 +0000 (19:02 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 14 Dec 2020 15:16:22 +0000 (09:16 -0600)
commitbf80e5d4259a192d6b06ae17e79a5e9dab48bf51
treec6b0153f33713e8488135fbbd31e4ee3e03e2223
parente68f4a7bf006af0cc1809bce76785d2811b7de65
cifs: Send witness register and unregister commands to userspace daemon

+ Define the generic netlink family commands and message attributes to
  communicate with the userspace daemon

+ The register and unregister commands are sent when connecting or
  disconnecting a tree. The witness registration keeps a pointer to
  the tcon and has the same lifetime.

+ Each registration has an id allocated by an IDR. This id is sent to the
  userspace daemon in the register command, and will be included in the
  notification messages from the userspace daemon to retrieve from the
  IDR the matching registration.

+ The authentication information is bundled in the register message.
  If kerberos is used the message just carries a flag.

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/Makefile
fs/cifs/cifs_swn.c [new file with mode: 0644]
fs/cifs/cifs_swn.h [new file with mode: 0644]
fs/cifs/connect.c
fs/cifs/netlink.c
include/uapi/linux/cifs/cifs_netlink.h