diff options
Diffstat (limited to 'Documentation/cgroups/cgroups.txt')
-rw-r--r-- | Documentation/cgroups/cgroups.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt index cd67e90003c..60d82e1e498 100644 --- a/Documentation/cgroups/cgroups.txt +++ b/Documentation/cgroups/cgroups.txt | |||
@@ -593,6 +593,15 @@ there are not tasks in the cgroup. If pre_destroy() returns error code, | |||
593 | rmdir() will fail with it. From this behavior, pre_destroy() can be | 593 | rmdir() will fail with it. From this behavior, pre_destroy() can be |
594 | called multiple times against a cgroup. | 594 | called multiple times against a cgroup. |
595 | 595 | ||
596 | int allow_attach(struct cgroup *cgrp, struct task_struct *task) | ||
597 | (cgroup_mutex held by caller) | ||
598 | |||
599 | Called prior to moving a task into a cgroup; if the subsystem | ||
600 | returns an error, this will abort the attach operation. Used | ||
601 | to extend the permission checks - if all subsystems in a cgroup | ||
602 | return 0, the attach will be allowed to proceed, even if the | ||
603 | default permission check (root or same user) fails. | ||
604 | |||
596 | int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, | 605 | int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, |
597 | struct task_struct *task) | 606 | struct task_struct *task) |
598 | (cgroup_mutex held by caller) | 607 | (cgroup_mutex held by caller) |