-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi,
Since mutable domains would be a prerequisite of supervise mode (#44), I would like to start working on that.
In previous discussion with @l0kod he was worried about the performance implication of this (which will have to be implemented by walking multiple rbtrees - so that updates to mutable domains created in earlier layers are reflected in the child layers). In benchmarking the existing landlock and seeing how it scale with number of rules (landlock-lsm/landlock-test-tools#17), I think actually this might not be that significant. I can knock out a prototype that will maybe just treat every layer as mutable and test its performance to be sure.
https://github.com/landlock-lsm/landlockconfig seems like it would be useful here - a first step could be to have the sandboxer example in there dynamically reload the json config on change, build a new ruleset, and do a landlock_domain_swap (uapi tbd)?
(we also talked about how there could be a "static" part and a "dynamic" part, and the dynamic part would only be searched if the static part denies access, but now I wonder if this is overkill...)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status