Unable to run `chcon` in Windows Subsystem for Linux
TMT fails to run "chcon" on files when the provisioning type is virtual or container in WSL. The problem is that the code detects Selinux with /proc/filesystems. "selinuxfs" appears in the output, but in WSL, selinux is disabled, although this appears to be due to WSL mounting some selinux related items. TMT should check the status of selinux by checking the status of the /sys/fs/selinux/enforce file, for example.
Triage meeting summary: Should be an easy fix to switch the detection to use /sys/fs/selinux/enforce instead.
@therazix It will be some time until I'll get to a windows computer - do you think you can check this one out?
@therazix, this seems to be quite trivial, low-hanging fruit, proposing for the next sprint, what do you say?
@therazix, this seems to be quite trivial, low-hanging fruit, proposing for the next sprint, what do you say?
Yes, I agree.