kata-containers / cgroups-rs

Native Rust library for managing control groups under Linux
https://crates.io/crates/cgroups-rs
Other
116 stars 47 forks source link

devices: Throw an error if device resources are invalid #118

Closed justxuewei closed 1 year ago

justxuewei commented 1 year ago

The cgroup-rs should throw errors while setting devices cgroup if the rule is invalid. For example, if a cgroup has permissions of some devices. Then we set a a *:* rwm to its parent's devices.deny. An error should be thrown to make users realize that it is a invalid rule.