From f0a8c0bd974047a68863761e5e162e716760aa91 Mon Sep 17 00:00:00 2001 From: Doug Rabson <dfr@rabson.org> Date: Thu, 15 Dec 2022 17:38:49 +0000 Subject: [PATCH] pkg/rootless: Change error text ... ... redirect the user to run with superuser privileges instead of printing 'this function is not supported'. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org> --- pkg/rootless/rootless_freebsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rootless/rootless_freebsd.go b/pkg/rootless/rootless_freebsd.go index b1434bbb62..525f789db4 100644 --- a/pkg/rootless/rootless_freebsd.go +++ b/pkg/rootless/rootless_freebsd.go @@ -22,7 +22,7 @@ func IsRootless() bool { // If podman was re-executed the caller needs to propagate the error code returned by the child // process. It is a convenience function for BecomeRootInUserNSWithOpts with a default configuration. func BecomeRootInUserNS(pausePid string) (bool, int, error) { - return false, -1, errors.New("this function is not supported on this os") + return false, -1, errors.New("Rootless mode is not supported on FreeBSD - run podman as root") } // GetRootlessUID returns the UID of the user in the parent userNS