Skip to content

Commit

Permalink
interfaces/builtin/system-observe: extend access for htop
Browse files Browse the repository at this point in the history
Htop supports various meters, including OOM score display, summary of process
mappings memory use and PSI information

Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo committed Jun 1, 2022
1 parent 7f1f702 commit 41d5d72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions interfaces/builtin/system_observe.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ ptrace (read),
@{PROC}/diskstats r,
@{PROC}/kallsyms r,
@{PROC}/partitions r,
@{PROC}/pressure/cpu r,
@{PROC}/pressure/io r,
@{PROC}/pressure/memory r,
@{PROC}/sys/kernel/panic r,
@{PROC}/sys/kernel/panic_on_oops r,
@{PROC}/sys/vm/max_map_count r,
Expand All @@ -71,6 +74,11 @@ ptrace (read),
@{PROC}/*/{,task/*/}comm r,
@{PROC}/*/{,task/*/}exe r,
@{PROC}/*/{,task/*/}fdinfo/* r,
@{PROC}/*/{,task/*/}oom_score r,
# allow reading of smaps_rollup, which is a summary of the memory use of a process,
# but not smaps which contains a detailed mappings breakdown like
# /proc/self/maps, which we do not allow access to for other processes
@{PROC}/*/{,task/*/}smaps_rollup r,
@{PROC}/*/{,task/*/}stat r,
@{PROC}/*/{,task/*/}statm r,
@{PROC}/*/{,task/*/}status r,
Expand Down

0 comments on commit 41d5d72

Please sign in to comment.