This commit is contained in:
Ho Kim 2025-06-26 20:01:26 +09:00 committed by GitHub
commit cfc3b840d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,8 @@ func (l *Ldconfig) prepareRoot() (string, error) {
// To prevent leaking the parent proc filesystem, we create a new proc mount
// in the specified root.
if err := mountProc(l.inRoot); err != nil {
return "", fmt.Errorf("error mounting /proc: %w", err)
// Non-root users cannot mount /proc; print the error but continue execution
fmt.Fprintf(os.Stderr, "error mounting /proc: %s\n", err)
}
// We mount the host ldconfig before we pivot root since host paths are not