-
Notifications
You must be signed in to change notification settings - Fork 246
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
cptbox: move logic from rule adding to constructor #999
Conversation
Can one of the admins verify this patch? |
Codecov Report
@@ Coverage Diff @@
## master #999 +/- ##
===========================================
- Coverage 81.12% 53.15% -27.97%
===========================================
Files 140 140
Lines 4753 4763 +10
===========================================
- Hits 3856 2532 -1324
- Misses 897 2231 +1334
Continue to review full report at Codecov.
|
ok to test |
a37cbc6
to
6fbb084
Compare
This is marginally beneficial to landlock, since it checks the paths before they are even added to the jail. It doesn't end up mattering as of now because we construct the jail anyway, but it's probably better for the long term. |
6fbb084
to
854557e
Compare
Basically, instead of checking that rules are correctly written when they are compiled into the jail, we should just check at construction time.
854557e
to
e0c292f
Compare
I'm confused: did you mean to merge the PR that depended on this, #1010? If so, I'll just close this (or you can). |
I'm just going to close this. The commit has been merged anyways. |
Basically, instead of checking that rules are correctly written when they are compiled into the jail, we should just check at construction time.