diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-06-05 22:46:28 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-06 11:29:11 -0700 |
commit | d1ee2971f5bd8a16bc5ecfe1b00e14b4fe407c4f (patch) | |
tree | 733c51b66dda47216ca1526fdd85004206fd0ec8 /fs/proc/task_mmu.c | |
parent | 7db9cfd380205f6b50afdc3bc3619f876a5eaf0d (diff) | |
download | op-kernel-dev-d1ee2971f5bd8a16bc5ecfe1b00e14b4fe407c4f.zip op-kernel-dev-d1ee2971f5bd8a16bc5ecfe1b00e14b4fe407c4f.tar.gz |
devscgroup: make white list more compact in some cases
Consider you added a 'c foo:bar r' permission to some cgroup and then (a
bit later) 'c'foo:bar w' for it. After this you'll see the
c foo:bar r
c foo:bar w
lines in a devices.list file.
Another example - consider you added 10 'c foo:bar r' permissions to some
cgroup (e.g. by mistake). After this you'll see 10 c foo:bar r lines in
a list file.
This is weird. This situation also has one more annoying consequence.
Having many items in a white list makes permissions checking slower, sine
it has to walk a longer list.
The proposal is to merge permissions for items, that correspond to the
same device.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/task_mmu.c')
0 files changed, 0 insertions, 0 deletions