I just tried to make use of podman containers on a remote host (FCOS 43) and it failed to launch since ~/.gitconfig was not readable as SELinux was blocking it:
$ paude create --yolo --git my-project --host user@node
[...]
Enabling git ext:: protocol for this repository...
Initializing git repository in container...
Failed to init workspace: warning: unable to access '/home/paude/.gitconfig': Permission denied
warning: unable to access '/home/paude/.gitconfig': Permission denied
warning: unable to access '/home/paude/.gitconfig': Permission denied
fatal: unknown error occurred while reading the configuration files
As soon as I changed the temporary gitconfig on the remote host it worked:
$ chcon -t container_file_t /tmp/paude-config-4zTW/3/.gitconfig
it might be necessary to pass :Z if SELinux is present on a remote system
I just tried to make use of podman containers on a remote host (FCOS 43) and it failed to launch since ~/.gitconfig was not readable as SELinux was blocking it:
As soon as I changed the temporary gitconfig on the remote host it worked:
it might be necessary to pass
:Zif SELinux is present on a remote system