Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] Enhance error logs when it failed to relabel due to permission#27610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
nimdrak wants to merge1 commit intocontainers:main
base:main
Choose a base branch
Loading
fromnimdrak:27184
Draft
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixes#27184: Enhance error logs when it failed to relabel due to per…
…missionSigned-off-by: Byounguk Lee <nimdrak@gmail.com>
  • Loading branch information
@nimdrak
nimdrak committedNov 26, 2025
commit5e0cbe845e4ff8d01334319e402248141776e88d
4 changes: 4 additions & 0 deletionslibpod/container_internal_common.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3156,6 +3156,10 @@ func (c *Container) relabel(src, mountLabel string, shared bool) error {
logrus.Debugf("Labeling not supported on %q", src)
return nil
}
if errors.Is(err, unix.EPERM) {
currentUID := os.Getuid()
return fmt.Errorf("labeling failed on %q: likely due to a file owned by another user (current user: uid %d) or insufficient permissions: %w", src, currentUID, err)
}
return err
}

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp