Skip to content

Commit

Permalink
Merge pull request canonical#11836 from bboozzoo/bboozzo/system-obser…
Browse files Browse the repository at this point in the history
…ve-for-htop

interfaces/builtin/system-observe: extend access for htop
  • Loading branch information
mvo5 authored Jun 1, 2022
2 parents 76775fb + 41d5d72 commit ca83bdb
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 ca83bdb

Please sign in to comment.