Skip to main content

classify_shared_creds

Function classify_shared_creds 

Source
pub fn classify_shared_creds(pid: u32, shared_with: &[u32], uid: u32) -> bool
Expand description

Classify whether shared struct cred pointers indicate credential theft.

Returns true when a non-kernel-thread shares credentials with init (PID 1) or when unrelated processes share credentials.