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

Load system policy contexts #290

Merged
merged 1 commit into from
Jun 15, 2019
Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jun 14, 2019

This change prefetches the system policy contexts. This means that if the system policy already exists for /var/spool/squid(/.*)? then it won't attempt to override it when the specification matches. It does still allow modifications if for some reason the base policy is incorrect. Purging of all local contexts is also still possible.

Inspired by #289

Fixes #288

@ekohl ekohl added the bug Something isn't working label Jun 14, 2019
end

def self.prefetch(resources)
# is there a better way to do this? map port/protocol pairs to the provider regardless of the title
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this comment still makes sense.

@ekohl ekohl force-pushed the system-policy-contexts branch from aea269f to 1cda42a Compare June 14, 2019 14:43
This change prefetches the system policy contexts. This means that if
the system policy already exists for /var/spool/squid(/.*)? then it
won't attempt to override it when the specification matches. It does
still allow modifications if for some reason the base policy is
incorrect. Purging of all local contexts is also still possible.
@ekohl ekohl force-pushed the system-policy-contexts branch from 1cda42a to f7db44c Compare June 14, 2019 14:51
Copy link
Member

@alexjfisher alexjfisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the best solution of all those we discussed.

@ekohl ekohl merged commit f7db44c into voxpupuli:master Jun 15, 2019
@ekohl ekohl deleted the system-policy-contexts branch June 15, 2019 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fcontext fails on re-run on newer platforms
2 participants