Skip to main content

read_label

Function read_label 

Source
pub fn read_label(pid: i32) -> Option<String>
Expand description

Read the security label for a process from /proc/<pid>/attr/current.

Returns None if the file is missing, unreadable, or empty. The raw label string is returned without interpretation.