Skip to content

Mutable domain #46

@micromaomao

Description

@micromaomao

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

enhancementNew feature or request

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions