devcg: Store local settings for each device cgroup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | devcg: move behavior and exceptions into its own structuresecurity/ | +42 | 0 replies | |
| 2/4 | devcg: make dev_exception_ functions to use listssecurity/ | +12 | 0 replies | |
| 3/4 | devcg: save locally saved settingssecurity/ | +31 | 0 replies | |
| 4/4 | devcg: try to reapply local settingssecurity/ | +82 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] devcg: Store local settings for each device cgroup
This patchset makes possible for device cgroups to store locally set rules to be reapplied whenever possible. This is also desired when moving device cgroups around.
Consider:
A
/
BBehavior in both is deny. 'A' has this exception list:
b 1:* rw c *:* rw One can explicitely set on 'B': b 1:5 r
If for some reason 'A' removes 'b 1:* rw', 'B' exception 'b 1:5 r' will be removed because it's not allowed anymore and would be forever lost.
Now, consider that in the parent more fine grained exceptions were added:
b 1:1 r b 1:2 rw b 1:4 rwc b 1:5 r
B would still be out of exceptions (we only propagate restrictions, not added access).
With this patchset, the 'b 1:5 r' exception will be kept and whenever possible (more specifically when the parent gets access to more devices) it'll be re-evaluated and applied if allowed. In this specific case, since it's allowed again, the exception 'b 1:5 r' will be reapplied to B.
This patchset is based on for-3.12 branch on Tejun's tree (bd8815a6d802fc16a7a106e170593aa05dc17e72) and it's available for review on my git tree:
git://github.com/aristeu/linux-2.6.git branch: devcg-rename