diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-09-03 13:47:24 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-09-03 14:38:08 +0200 |
commit | 1a24ac7ad63464817a1b3df46ab7da1c0be6c842 (patch) | |
tree | ab9261470887c12cea4745a399e526c00d84236c /pkg/rootless/rootless_unsupported.go | |
parent | cfe1d2768847929b44ddd10184eff28fd5762c2d (diff) | |
download | podman-1a24ac7ad63464817a1b3df46ab7da1c0be6c842.tar.gz podman-1a24ac7ad63464817a1b3df46ab7da1c0be6c842.tar.bz2 podman-1a24ac7ad63464817a1b3df46ab7da1c0be6c842.zip |
pkg/util: use rootless function to read additional users
make pkg/rootless.GetConfiguredMappings public so that it can be used
from pkg/util.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/rootless/rootless_unsupported.go')
-rw-r--r-- | pkg/rootless/rootless_unsupported.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/rootless/rootless_unsupported.go b/pkg/rootless/rootless_unsupported.go index 16ba228e2..ddd9182b0 100644 --- a/pkg/rootless/rootless_unsupported.go +++ b/pkg/rootless/rootless_unsupported.go @@ -5,6 +5,7 @@ package rootless import ( "os" + "github.com/containers/storage/pkg/idtools" "github.com/pkg/errors" ) @@ -59,3 +60,8 @@ func TryJoinFromFilePaths(pausePidPath string, needNewNamespace bool, paths []st func ConfigurationMatches() (bool, error) { return true, nil } + +// GetConfiguredMappings returns the additional IDs configured for the current user. +func GetConfiguredMappings() ([]idtools.IDMap, []idtools.IDMap, error) { + return nil, nil, errors.New("this function is not supported on this os") +} |