James Henstridge
6dca0bae80
daemon: reorder access checkers after method functions, to match struct layout
2020-08-27 13:48:57 +08:00
James Henstridge
ea3c3c4b6a
daemon: don't export access checkers, and rename RootOnlyAccess to rootAccess
2020-08-07 08:42:36 +08:00
James Henstridge
14b9e7ec62
daemon: have each command list a ReadAccess and/or WriteAccess policy directly.
...
This is simpler than determining how the current set of flags
interoperate, and more closely matches how API access is documented to
work.
2020-08-07 08:32:56 +08:00
Maciej Borzecki
3994c4a530
daemon: drop pprof index
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com >
2019-06-11 14:42:05 +02:00
Maciej Borzecki
813616abfb
daemon: make /v2/debug/pprof/ root only
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com >
2019-06-11 14:41:46 +02:00
Maciej Borzecki
0921b0fbf7
daemon: expose pprof endpoints
...
Expose pprof endpoints over snapd API under /v2/debug/pprof/. The API is
accessible for user access.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com >
2019-04-02 16:26:47 +02:00