diff options
| author | Paul Menage <[email protected]> | 2008-10-18 20:28:04 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-10-20 08:52:38 -0700 |
| commit | cc31edceee04a7b87f2be48f9489ebb72d264844 (patch) | |
| tree | 5d37791218c420281e509899645d89aee7902f2b /include/linux/timerqueue.h | |
| parent | 146aa1bd0511f88ddb4e92fafa2b8aad4f2f65f3 (diff) | |
cgroups: convert tasks file to use a seq_file with shared pid array
Rather than pre-generating the entire text for the "tasks" file each
time the file is opened, we instead just generate/update the array of
process ids and use a seq_file to report these to userspace. All open
file handles on the same "tasks" file can share a pid array, which may
be updated any time that no thread is actively reading the array. By
sharing the array, the potential for userspace to DoS the system by
opening many handles on the same "tasks" file is removed.
[Based on a patch by Lai Jiangshan, extended to use seq_file]
Signed-off-by: Paul Menage <[email protected]>
Reviewed-by: Lai Jiangshan <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions