Version
Microsoft Windows [Version 10.0.22000.856]
WSL Version
Kernel Version
5.15.62.1-20220904-1-microsoft-custom-WSL2+ (from WSL2-Linux-Kernel source, adding AppArmor to .config and snapd AppArmor patches)
Distro Version
Debian bookworm/sid
Other Software
No other software.
Repro Steps
- If present, remove existing systemd-enabling solutions.
- Enable systemd in WSL as per blog post, adding to /etc/wsl.conf:
- Shut down and restart WSL.
- Observe that AppArmor is not operative and no filesystem is mounted at /sys/kernel/security
Expected Behavior
Securityfs should be mounted at /sys/kernel/security, thus (output from mount):
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
as it is automatically mounted if any LSM is present in the kernel by current systemd releases.
Actual Behavior
No filesystem is mounted at /sys/kernel/security.
Diagnostic Logs
No response
Version
Microsoft Windows [Version 10.0.22000.856]
WSL Version
Kernel Version
5.15.62.1-20220904-1-microsoft-custom-WSL2+ (from WSL2-Linux-Kernel source, adding AppArmor to .config and snapd AppArmor patches)
Distro Version
Debian bookworm/sid
Other Software
No other software.
Repro Steps
Expected Behavior
Securityfs should be mounted at /sys/kernel/security, thus (output from
mount):as it is automatically mounted if any LSM is present in the kernel by current systemd releases.
Actual Behavior
No filesystem is mounted at /sys/kernel/security.
Diagnostic Logs
No response