This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
cross_compile does not adjust SELinux policies of the workspace #178
Labels
bug
Something isn't working
Description
cross_compile needs to mount the workspace into the docker container. This is not allowed by the default SELinux policy (at least on Fedora), which causes "permission denied" errors.
Expected Behavior
I guess the most convenient solution would be if the cross_compile-tool authomatically relabeled the workspace. The docker CLI tool does this if you add
:z
after the mount specification, i.e., something likedocker run -v $HOME/ros_cross:/ws:z <image ID>
.If that doesn't work, or if you feel uneasy changing security labels on the system without notice, a short hint in the documentation that SELinux might cause issues might already be enough.
Actual Behavior
The tool aborts during the rosdep gathering with a Permission denied error.
To Reproduce
Install the tool and run
ros_cross_compile <workspace> --arch armhf --os ubuntu --rosdistro dashing
on a Fedora machine.System (please complete the following information)
Additional context
Unfortunately, it seems like the docker Python API does not have an easy "please make it work with SELinux" option like the CLI has, and I know neither docker nor SELinux well enough to contribute a patch.
The text was updated successfully, but these errors were encountered: