Skip to content

The mergedDir has different permission mode on two hosts #937

@yiminmv

Description

@yiminmv

Hi there,

I deployed two k8s clusters with CRI-O on two cloud VMs, and I found two nodes have different rootfs permissions. I observed that on AWS hosts, the directory /var/lib/containers/storage/overlay/<container-id>/merged mode is 0755, and on Azure hosts, this dir mode is 0555.

I have read some source code at the version of 1.24.5, and found by default, the mergedDir's mode is 0700, the code that I found out is idtools.MkdirAs(mergedDir, 0700, rootUID, rootGID).

I am not very familiar with this repo, does anyone know why? Or can someone please provide some information that can help to figure this out? Thanks very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions