aboutsummaryrefslogtreecommitdiff
path: root/Documentation/cgroups
diff options
context:
space:
mode:
authorAndrey Konovalov <andrey.konovalov@linaro.org>2015-03-11 23:42:17 +0300
committerAndrey Konovalov <andrey.konovalov@linaro.org>2015-03-11 23:42:17 +0300
commitdb5859a05fd20705b214201fb25ab2e11e586742 (patch)
tree07f0968a250bd5cb39c1abf99bde9e6c6a48310d /Documentation/cgroups
parentb6e31a77eee75dc4628d526d7155b40a59429dbe (diff)
parentd9c020400fd58fcf8bd9bc237f39994ac3535e0c (diff)
Automatically merging tracking-linaro-android-llct into merge-linux-linaro-core-tracking
Conflicting files:
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r--Documentation/cgroups/cgroups.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt
index f935fac1e73b..88af0f00ed11 100644
--- a/Documentation/cgroups/cgroups.txt
+++ b/Documentation/cgroups/cgroups.txt
@@ -578,6 +578,15 @@ is completely unused; @cgrp->parent is still valid. (Note - can also
be called for a newly-created cgroup if an error occurs after this
subsystem's create() method has been called for the new cgroup).
+int allow_attach(struct cgroup *cgrp, struct cgroup_taskset *tset)
+(cgroup_mutex held by caller)
+
+Called prior to moving a task into a cgroup; if the subsystem
+returns an error, this will abort the attach operation. Used
+to extend the permission checks - if all subsystems in a cgroup
+return 0, the attach will be allowed to proceed, even if the
+default permission check (root or same user) fails.
+
int can_attach(struct cgroup *cgrp, struct cgroup_taskset *tset)
(cgroup_mutex held by caller)