Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature fix match trust file #4

Merged
merged 2 commits into from Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -64,6 +64,12 @@ fapolicyd::trust_file { 'myapp':
}
```

Note: If an application being whitelisted does not currently exist on a machine, the trust file will instead include a comment. Once the application does exist on the machine, the comment will be updated to be a trusted application on the next Puppet run. The comment included will be similar to the following:

```bash
#<application path> is trusted but does not currently exist on the machine
```

For more information regarding trust files, refer to the Red Hat Enterprise Linux documentation for [Marking files as trusted using an additional source of trust][3]

### Whitelist applications using a rule file under `/etc/fapolicyd/rules.d/`
Expand Down
2 changes: 1 addition & 1 deletion manifests/trust_file.pp
Expand Up @@ -30,7 +30,7 @@
ensure => present,
path => $trusted_file_path,
line => Deferred('fapolicyd::get_trusted_file_info', [$trusted_app]),
match => "^${trusted_app}|^# ${trusted_app}",
match => "^${trusted_app}|^#${trusted_app}",
notify => Service['fapolicyd'],
}
}
Expand Down