Skip to content

Commit

Permalink
Merge pull request #12214 from giuseppe/fix-rootless-error-message
Browse files Browse the repository at this point in the history
rootless: adjust error message
  • Loading branch information
openshift-merge-robot authored Nov 11, 2021
2 parents 375ff22 + 9877280 commit 69d2e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rootless/rootless_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func becomeRootInUserNS(pausePid, fileToRead string, fileOutput *os.File) (_ boo
uidsMapped = err == nil
}
if !uidsMapped {
logrus.Warnf("Using rootless single mapping into the namespace. This might break some images. Check /etc/subuid and /etc/subgid for adding sub*ids")
logrus.Warnf("Using rootless single mapping into the namespace. This might break some images. Check /etc/subuid and /etc/subgid for adding sub*ids if not using a network user")
setgroups := fmt.Sprintf("/proc/%d/setgroups", pid)
err = ioutil.WriteFile(setgroups, []byte("deny\n"), 0666)
if err != nil {
Expand Down

0 comments on commit 69d2e78

Please sign in to comment.