Lines Matching +full:1 +full:- +full:to +full:- +full:1
5 1. Description
8 Implement a cgroup to track and enforce open and mknod restrictions
12 to all types and all major and minor numbers. Major and minor are
16 The root device cgroup starts with rwm to 'all'. A child device
27 echo 'c 1:3 mr' > /sys/fs/cgroup/1/devices.allow
29 allows cgroup 1 to read and mknod the device usually known as
32 echo a > /sys/fs/cgroup/1/devices.deny
36 echo a > /sys/fs/cgroup/1/devices.allow
38 will add the 'a *:* rwm' entry to the whitelist.
44 suffice, but we can decide the best way to adequately restrict
46 to require CAP_SYS_ADMIN, which at least is a separate bit from
47 CAP_MKNOD. We may want to just refuse moving to a cgroup which
48 isn't a descendant of the current one. Or we may want to use
49 CAP_MAC_ADMIN, since we really are trying to lock down root.
51 CAP_SYS_ADMIN is needed to modify the whitelist or move another
52 task to a new cgroup. (Again we'll probably want to change that).
61 access permissions than its parent. Every time an entry is written to
64 re-evaluated. In case one of the locally set whitelist entries would provide
74 A allow "b 8:* rwm", "c 116:1 rw"
75 B deny "c 1:3 rwm", "c 116:2 rwm", "b 3:* rwm"
86 B "c 1:3 rwm", "b 3:* rwm" all the rest
98 A "c 1:3 rwm", "c 1:5 r" all the rest
99 B "c 1:3 rwm", "c 1:5 r" all the rest
108 A "c *:3 rwm", "c 1:5 r" all the rest
109 B "c 1:3 rwm", "c 1:5 r" all the rest
111 but now it'll be possible to add new entries to B::
120 Allowing or denying all by writing 'a' to devices.allow or devices.deny will
124 ---------------------------------------
128 interface to preserve compatibility with the previous whitelist-only
130 to devices will be propagated down the hierarchy.
131 For every propagated exception, the effective rules will be re-evaluated based