Skip to content

Creation of /lib/containers/storage/overlay-images and /lib/containers/storage/overlay-layers with mod 0700 make buidah fails for non root user #2544

@stalb

Description

@stalb

In rpm/containers-common.spec creating lib/containers/storage/overlay-images and lib/containers/storage/overlay-layers cause buildah to fail when run in container using non root user: containers/buildah#5332

install -dp %{buildroot}%{_prefix}/lib/containers/storage
install -dp -m 700 %{buildroot}%{_prefix}/lib/containers/storage/overlay-images
touch %{buildroot}%{_prefix}/lib/containers/storage/overlay-images/images.lock
install -dp -m 700 %{buildroot}%{_prefix}/lib/containers/storage/overlay-layers
touch %{buildroot}%{_prefix}/lib/containers/storage/overlay-layers/layers.lock

Is there any reason to not create them with mode 755 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions