Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Feb 18, 2024
1 parent fc71f27 commit 2b9d453
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ pub async fn monitor(tx: mpsc::Sender<Result<notify::Event, notify::Error>>,
let mut last_position = 0;
if ! config.audit.is_empty() && utils::get_os() == "linux" && utils::check_auditd() {
for element in config.audit.clone() {
//let mut rule: String = String::new();
let path = element["path"].as_str().unwrap();
let rule = utils::get_audit_rule_permissions(element["rule"].as_str());
utils::run_auditctl(&["-w", path, "-k", "fim", "-p", &rule]);
Expand Down

0 comments on commit 2b9d453

Please sign in to comment.