Merge pull request #16859 from dfr/freebsd-rootless

pkg/rootless: Change error text ...
This commit is contained in:
Daniel J Walsh 2022-12-15 20:34:14 -05:00 committed by GitHub
commit 41a70adc74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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