Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: die when cannot drop privileges
If `run_as` parameter is set but the user is missing in the system, keylime will log an ERROR when trying to drop privileges, but continue the execution as the current user (usually `root`). This can be a security issue, as the agent is running "silently" as a privileged user. This commit stop the execution if an error is found when dropping privileges for the agent service, and present an `info!` message with the current user and group. Signed-off-by: Alberto Planas <[email protected]>
- Loading branch information