Skip to content

Commit

Permalink
fix(NODE-1498): allow read access to more hardware info for node_expo…
Browse files Browse the repository at this point in the history
…rter (#2121)

Give prometheus `node_exporter` more read access to device info:
* Allow reading udev state data from /run/udev/data
* Allow reading /proc/pressure
* Allow reading under mount points with mnt_t

(NODE-1498)
  • Loading branch information
nabdullindfinity authored Oct 18, 2024
1 parent b545f6b commit 2ce147d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ic-os/components/selinux/node_exporter/node_exporter.te
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,12 @@ require {
type user_runtime_root_t;
}
allow node_exporter_t user_runtime_root_t:dir { search };

# Allow reading udev state data from /run/udev/data
udev_read_runtime_files(node_exporter_t)

# Allow reading /proc/pressure
kernel_read_psi(node_exporter_t)

# Allow reading under mount points with mnt_t
files_list_mnt(node_exporter_t)

0 comments on commit 2ce147d

Please sign in to comment.