Skip to content

SELinux prevents access to /home/paude/.gitconfig #195

@duritong

Description

@duritong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions