summaryrefslogtreecommitdiff
path: root/pkg/rootless/rootless_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-08 16:58:50 +0100
committerGitHub <noreply@github.com>2020-01-08 16:58:50 +0100
commitc6ad42a176c943aa96a8c053682196cd38fd6a1a (patch)
treeef71ccbda94462f1bee19e8153c361751813df8a /pkg/rootless/rootless_linux.go
parent27caffbb240725255485deaaecd548663adbf1fd (diff)
parentbcf5753276fcb7280924b46c7c49ef3e2388c9b0 (diff)
downloadpodman-c6ad42a176c943aa96a8c053682196cd38fd6a1a.tar.gz
podman-c6ad42a176c943aa96a8c053682196cd38fd6a1a.tar.bz2
podman-c6ad42a176c943aa96a8c053682196cd38fd6a1a.zip
Merge pull request #4816 from vrothberg/lint
Fix golint errors
Diffstat (limited to 'pkg/rootless/rootless_linux.go')
-rw-r--r--pkg/rootless/rootless_linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go
index 94c42f7d0..182a39f6b 100644
--- a/pkg/rootless/rootless_linux.go
+++ b/pkg/rootless/rootless_linux.go
@@ -514,6 +514,8 @@ func TryJoinFromFilePaths(pausePidPath string, needNewNamespace bool, paths []st
return joinUserAndMountNS(uint(pausePid), pausePidPath)
}
+
+// ReadMappingsProc parses and returns the ID mappings at the specified path.
func ReadMappingsProc(path string) ([]idtools.IDMap, error) {
file, err := os.Open(path)
if err != nil {