Security Opt Seccomp Profile on Windows Expects an Absolute, WSL Path #14494
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
windows
issue/bug on Windows
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
To differentiate between Podman installed inside WSL2 via apt and Podman installed via a binary installer using a WSL2 backend, I'll call the former Podman in WSL2 and the latter Podman on Windows. Now, to the issue:
If providing a path to a custom seccomp profile, using Podman on Windows, we must provide an absolute, WSL path, which is unusual since mounting volumes or otherwise providing paths expects normal Windows paths. We also cannot use relative paths. If providing paths for Podman in WSL2, we can use relative paths and absolute (WSL2) paths, both of which work as expected.
Steps to reproduce the issue:
Once everything has been installed, save the following to
seccomp.json
in the CWD:For Podman on Windows (run using CMD, but using bash syntax highlighting for better clarity), try the following:
Now, if we use Podman In WSL2, we get the expected results:
Describe the results you received/expected:
For Podman on Windows, relative and Windows paths do not work, and only WSL paths work for the seccomp profile, which is unexpected since we'd expected the path to be relative to the host. For Podman in WSL2, relative paths and absolute, UNIX paths work.
For contrast, if we're mounting a volume from the host into the container, we can use relative paths or Windows paths, such as:
So relative, WSL, and absolute Windows paths all work when mounting volumes, but not when providing seccomp profiles.
Additional information you deem important (e.g. issue happens only occasionally):
These errors always happen, but the version info is as follows:
Output of
podman version
: Podman on Windows:Output of
podman version
: Podman in WSL2:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes. The issue isn't related to the version, the newest version installed via the MSI installer is what fails.
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical machine, Windows 10 Home install.
The text was updated successfully, but these errors were encountered: