-
Notifications
You must be signed in to change notification settings - Fork 422
Closed
Labels
A-container-engineArea: container enginesArea: container enginesA-macos-hostArea: macos hostsArea: macos hostsA-podmanArea: podman container engineArea: podman container enginebugupstream
Description
Checklist
- I've looked through the issues and pull requests for similar reports
Describe your issue
Related to containers/podman#13631
This bug has likely been around a long time, and reproduces on any tested cross version. Removing the SELinux labels works. You can create a simple test case with:
podman run -it --rm -v "$PWD"/target:/target:Z ubuntu:20.04 bash
And this will fail with the described error.
What target(s) are you cross-compiling for?
other (specify in description)
Which operating system is the host (e.g computer cross is on) running?
- macOS
- Windows
- Linux / BSD
- other OS (specify in description)
What architecture is the host?
- x86_64 / AMD64
- arm32
- arm64 (including Mac M1)
What container engine is cross using?
- docker
- podman
- other container engine (specify in description)
cross version
latest main build
Example
cargo install cross --git https://github.com/cross-rs/cross
git clone https://github.com/cross-rs/rust-cpp-hello-word
cd rust-cpp-hello-word
cross run --target ... # any target
Which produces an error of error preparing container $(ID) for attach: lsetxattr $(PATH): operation not supported
.
Additional information / notes
It seems this is podman specific due to the description below. Basically, on macOS and with Podman, remove the SELinux labels.
Gadiguibou
Metadata
Metadata
Assignees
Labels
A-container-engineArea: container enginesArea: container enginesA-macos-hostArea: macos hostsArea: macos hostsA-podmanArea: podman container engineArea: podman container enginebugupstream