Description
Is your feature request related to a problem? Please describe.
Bug reports have been filed against WSL2 because of failures of the Linux Kernel's Key Request Service. The Key Request Service provides an upcall mechanism as documented in Documentation/security/keys/request-key.rst where the kernel executes an instance of /sbin/request-key for each request. The request-key process is provided by the keyutils package. If the /sbin/request-key process cannot be located in the mount namespace of the root filesystem, then the upcalls will fail with an -ENOENT error. The Key Request service is used in support of keyring management, DNS queries, and id-mapping.
Describe the solution you'd like
Please install keyutils as part of the base image
Describe alternatives you've considered
Installation of keyutils in an WSL2 distro container does not work because the installed /sbin/request-key cannot be located in the mount namespace of the root filesystem.
Additional context
A working key request service is necessary to support various Linux kernel options including
- CONFIG_CIFS_UPCALL, CONFIG_CIFS_DFS_UPCALL, CONFIG_CIFS_SWN_UPCALL: Kernel dns_resolver not working WSL#9540
- CONFIG_AFS_FS: Enable AFS/AuriStorFS filesystem support WSL#11458
- CONFIG_NFS_USE_KERNEL_DNS
- CONFIG_CEPH_LIB_USE_DNS_RESOLVER
- NFS ID Mapper