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

Hash rules db #985

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

Hash rules db #985

jw3 opened this issue Jan 4, 2024 · 0 comments · Fixed by #990
Labels
enhancement New feature or request rules
Milestone

Comments

@jw3
Copy link
Member

jw3 commented Jan 4, 2024

Provide a sha256 of the compiled rules db

@jw3 jw3 added enhancement New feature or request rules labels Jan 4, 2024
@jw3 jw3 added this to the v1.3 milestone Jan 4, 2024
@jw3 jw3 closed this as completed in #990 Jan 10, 2024
jw3 added a commit that referenced this issue Jan 10, 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 #985 
Closes #989
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
enhancement New feature or request rules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant