cap
cap copied to clipboard
Further adjustments to WSL detection
It seems that using /proc/1/cgroup has been broken lately to detect docker. Other projects have been using /proc/1/mountinfo instead (see https://github.com/pre-commit/pre-commit/pull/3535). This PR extends the current detection mecanisms (without removing the existing ones).
PCI review checklist
-
[x] I have documented a clear reason for, and description of, the change I am making.
-
[ ] If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
-
[ ] If applicable, I've documented the impact of any changes to security controls.
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.