summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-11-08 13:11:16 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-11-10 09:26:22 +0100
commit9877280f5afa42cb7381939ea8f33cf7e0c4a57e (patch)
tree26d90fc6e098bab8c2b44a01336322aae9efb224
parent865653b661dd9dbc5d31f08cbf3f14ed32c82850 (diff)
downloadpodman-9877280f5afa42cb7381939ea8f33cf7e0c4a57e.tar.gz
podman-9877280f5afa42cb7381939ea8f33cf7e0c4a57e.tar.bz2
podman-9877280f5afa42cb7381939ea8f33cf7e0c4a57e.zip
rootless: adjust error message
since we now support reading additional IDs with libsubid, clarify that the /etc/subuid and /etc/subgid files are honored only when shadow-utils is configured to use them. [NO TESTS NEEDED] Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/rootless/rootless_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go
index 7f9228666..3e81d5c14 100644
--- a/pkg/rootless/rootless_linux.go
+++ b/pkg/rootless/rootless_linux.go
@@ -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 {