diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-09-03 07:02:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 07:02:44 -0700 |
commit | a16f63e96e9993a1e2542b6f5c85903cc4659c6e (patch) | |
tree | 2704f163395e48b0aa781aec82fc272f31addb15 /pkg/rootless/rootless_unsupported.go | |
parent | c03949986feffd489e6fd41538d6a5bda233e850 (diff) | |
parent | 1a24ac7ad63464817a1b3df46ab7da1c0be6c842 (diff) | |
download | podman-a16f63e96e9993a1e2542b6f5c85903cc4659c6e.tar.gz podman-a16f63e96e9993a1e2542b6f5c85903cc4659c6e.tar.bz2 podman-a16f63e96e9993a1e2542b6f5c85903cc4659c6e.zip |
Merge pull request #3926 from giuseppe/add-warning-mismatch-configuration
rootless: detect user namespace configuration changes
Diffstat (limited to 'pkg/rootless/rootless_unsupported.go')
-rw-r--r-- | pkg/rootless/rootless_unsupported.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/rootless/rootless_unsupported.go b/pkg/rootless/rootless_unsupported.go index a8485c083..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" ) @@ -53,3 +54,14 @@ func EnableLinger() (string, error) { func TryJoinFromFilePaths(pausePidPath string, needNewNamespace bool, paths []string) (bool, int, error) { return false, -1, errors.New("this function is not supported on this os") } + +// ConfigurationMatches checks whether the additional uids/gids configured for the user +// match the current user namespace. +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") +} |