We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be3d841 commit 2480dd4Copy full SHA for 2480dd4
keylime-agent/src/main.rs
@@ -250,12 +250,10 @@ async fn main() -> Result<()> {
250
Some(&config.agent.run_as)
251
}
252
} else {
253
- error!("Cannot drop privileges: not enough permission");
254
- return Err(Error::Configuration(
255
- config::KeylimeConfigError::Generic(
256
- "Cannot drop privileges: not enough permission".to_string(),
257
- ),
258
- ));
+ if !(config.agent.run_as).is_empty() {
+ warn!("Ignoring 'run_as' option because Keylime agent has not been started as root.");
+ }
+ None
259
};
260
261
// Drop privileges
0 commit comments