Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pkg/shim: Fix NewSocket directory permissions#12960

Open
vvoland wants to merge 1 commit intocontainerd:mainfrom
vvoland:shim-path-perm
Open

pkg/shim: Fix NewSocket directory permissions#12960
vvoland wants to merge 1 commit intocontainerd:mainfrom
vvoland:shim-path-perm

Conversation

@vvoland
Copy link
Contributor

@vvoland vvoland commented Mar 2, 2026

NewSocket was using the same permission mode (0600) for both the socket file and its parent directory.

Directories require the execute bit to be traversable, so creating a directory with 0600 prevents any files from being created inside it.

Use 0700 for directory creation while keeping 0600 for socket files.

NewSocket was using the same permission mode (0600) for both the socket
file and its parent directory.

Directories require the execute bit to be traversable, so creating a
directory with 0600 prevents any files from being created inside it.

Use 0700 for directory creation while keeping 0600 for socket files.

Signed-off-by: Paweł Gronowski <[email protected]>
@AkihiroSuda
Copy link
Member

Directories require the execute bit to be traversable, so creating a directory with 0600 prevents any files from being created inside it.

What files are facing this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

3 participants