Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix should_pre_check logic to identify sshd
The cmdline returned by calling proc.cmdline() has multiple strings that consist of the entire command, which means that, instead of having something like this: ["cmd", "arg1", "arg2, ..., "argn"] It looks like this: ["cmd arg1 arg2 ... argn"] In order to better limit the options, as this precheck can be a security breach, we only allow the precheck if it comes from the common known sshd binary.
- Loading branch information