Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/unshare: return true from IsRootless if user is not root
This helps to avoid a confusing error on FreeBSD when commands such as 'podman run' are attempted by a non-root user. Changing IsRootless to return true for these users allows types.DefaultConfigFile to return a user-accessible path for storage.conf which, in turn, allows 'podman run' to get as far as SetupRootless which will generate a more informative message than 'Error: stat /var/db/containers/storage/libpod/bolt_state.db: permission denied' Signed-off-by: Doug Rabson <dfr@rabson.org>
- Loading branch information