landlock-lsm / rust-landlock

A Rust library for the Linux Landlock sandboxing feature
https://crates.io/crates/landlock
Other
91 stars 10 forks source link

Move from_read() and from_write() into AccessFs #66

Closed l0kod closed 5 months ago

l0kod commented 5 months ago

The from_read() and from_write() methods make sense for AccessFs but not for the upcomming AccessNet: #55

This is a breaking change because the Access trait's signature is modified. In practice, it should not be an issue for most users. Only those implementing helpers explicitly using Access::from_read() or Access::from_write() should be concerned. In this case, they should just use AccessFs instead.