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

Reload rules in live profiler #989

Closed
jw3 opened this issue Jan 10, 2024 · 0 comments · Fixed by #990
Closed

Reload rules in live profiler #989

jw3 opened this issue Jan 10, 2024 · 0 comments · Fixed by #990
Milestone

Comments

@jw3
Copy link
Member

jw3 commented Jan 10, 2024

When the profiler is running the current ruleset can be deployed and dynamically reloaded using the piped reload from #877.

This should not perform a full system deployment.

The cleanup from the rule write is free, provided by the normal flow of the profiler shutdown.

@jw3 jw3 added this to the v1.3 milestone Jan 10, 2024
@jw3 jw3 closed this as completed in #990 Jan 10, 2024
@jw3 jw3 closed this as completed in 5004d49 Jan 10, 2024
jw3 added a commit to jw3/fapolicy-analyzer that referenced this issue Jan 22, 2024
Allow rules to be loaded dynamically into a profiling session.

This allows for a better test / update cycle while profiling as the
profiler does not have to be shutdown to update rules.

This also adds a new concept, the "Rule Identity", which provides a
sha256 hash of the rule database to allow change monitoring across both
profiler and systemd daemon execution. This hash is based on the
compiled rules to provide a precise content based hash.

Closes ctc-oss#985
Closes ctc-oss#989
# Conflicts:
#	crates/pyo3/Cargo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant