diff options
author | baude <bbaude@redhat.com> | 2019-08-07 09:53:59 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-08-12 13:08:57 -0500 |
commit | 55cc80d3c9bfd96225db179b96427aa377ecb9dc (patch) | |
tree | 8f398f4bf6ee4093f41fd532a2f7362102b5ece4 /cmd/podman/varlink | |
parent | 926901d78d3af87b47ce0cfeafcf0e9a6d190334 (diff) | |
download | podman-55cc80d3c9bfd96225db179b96427aa377ecb9dc.tar.gz podman-55cc80d3c9bfd96225db179b96427aa377ecb9dc.tar.bz2 podman-55cc80d3c9bfd96225db179b96427aa377ecb9dc.zip |
varlink endpoint for containerstats requires root
obtaining containerstats requires the use of cgroups. at present,
rootless users do not have privileges to create cgroups. add an error
message that catches this for the varlink endpoint and return a proper
error.
Fixes: #3749
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/varlink')
-rw-r--r-- | cmd/podman/varlink/io.podman.varlink | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/varlink/io.podman.varlink b/cmd/podman/varlink/io.podman.varlink index b867dccc1..4a4c97e99 100644 --- a/cmd/podman/varlink/io.podman.varlink +++ b/cmd/podman/varlink/io.podman.varlink @@ -1277,3 +1277,6 @@ error WantsMoreRequired (reason: string) # Container is already stopped error ErrCtrStopped (id: string) + +# This function requires CGroupsV2 to run in rootless mode. +error ErrRequiresCgroupsV2ForRootless(reason: string)
\ No newline at end of file |