Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
process:bpf: report euid as the process.uid
Instead of reporting the real uid of the task that is the owner of the task, let's report the effective uid that is used to calculate the privileges of the current task when acting upon other objects. This allows to be compatible with 'ps' too. Usually the real uid is used to: * Determine the owner or the uid that started the task. * Retore the effective, saved and other uids back to the original uid that started the task, in case of setuid system calls. * When mounting some file systems to auto fill up the owner of the fs. * When a process is sending a signal, its real uid is used to fill up the siginfo_t.uid field * When ptracing a target task. Where the effective uid is used to determine the real privileges of the task and how it can act on other objects. All uids are reported inside process_exec.process.process_credentials if tetragon is started with --enable-process-cred including the real uid. Signed-off-by: Djalal Harouni <[email protected]>
- Loading branch information