aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-03-20 21:11:21 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-03-20 21:11:21 -0400
commit0d9cabdccedb79ee5f27b77ff51f29a9e7d23275 (patch)
tree8bfb64c3672d058eb90aec3c3a9c4f61cef9097c /security
parent701085b219016d38f105b031381b9cee6200253a (diff)
parent3ce3230a0cff484e5130153f244d4fb8a56b3a8b (diff)
Merge branch 'for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
Pull cgroup changes from Tejun Heo: "Out of the 8 commits, one fixes a long-standing locking issue around tasklist walking and others are cleanups." * 'for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: cgroup: Walk task list under tasklist_lock in cgroup_enable_task_cg_list cgroup: Remove wrong comment on cgroup_enable_task_cg_list() cgroup: remove cgroup_subsys argument from callbacks cgroup: remove extra calls to find_existing_css_set cgroup: replace tasklist_lock with rcu_read_lock cgroup: simplify double-check locking in cgroup_attach_proc cgroup: move struct cgroup_pidlist out from the header file cgroup: remove cgroup_attach_task_current_cg()
Diffstat (limited to 'security')
-rw-r--r--security/device_cgroup.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/security/device_cgroup.c b/security/device_cgroup.c
index 8b5b5d8612c6..c43a3323feea 100644
--- a/security/device_cgroup.c
+++ b/security/device_cgroup.c
@@ -61,8 +61,8 @@ static inline struct dev_cgroup *task_devcgroup(struct task_struct *task)
61 61
62struct cgroup_subsys devices_subsys; 62struct cgroup_subsys devices_subsys;
63 63
64static int devcgroup_can_attach(struct cgroup_subsys *ss, 64static int devcgroup_can_attach(struct cgroup *new_cgrp,
65 struct cgroup *new_cgrp, struct cgroup_taskset *set) 65 struct cgroup_taskset *set)
66{ 66{
67 struct task_struct *task = cgroup_taskset_first(set); 67 struct task_struct *task = cgroup_taskset_first(set);
68 68
@@ -156,8 +156,7 @@ remove:
156/* 156/*
157 * called from kernel/cgroup.c with cgroup_lock() held. 157 * called from kernel/cgroup.c with cgroup_lock() held.
158 */ 158 */
159static struct cgroup_subsys_state *devcgroup_create(struct cgroup_subsys *ss, 159static struct cgroup_subsys_state *devcgroup_create(struct cgroup *cgroup)
160 struct cgroup *cgroup)
161{ 160{
162 struct dev_cgroup *dev_cgroup, *parent_dev_cgroup; 161 struct dev_cgroup *dev_cgroup, *parent_dev_cgroup;
163 struct cgroup *parent_cgroup; 162 struct cgroup *parent_cgroup;
@@ -195,8 +194,7 @@ static struct cgroup_subsys_state *devcgroup_create(struct cgroup_subsys *ss,
195 return &dev_cgroup->css; 194 return &dev_cgroup->css;
196} 195}
197 196
198static void devcgroup_destroy(struct cgroup_subsys *ss, 197static void devcgroup_destroy(struct cgroup *cgroup)
199 struct cgroup *cgroup)
200{ 198{
201 struct dev_cgroup *dev_cgroup; 199 struct dev_cgroup *dev_cgroup;
202 struct dev_whitelist_item *wh, *tmp; 200 struct dev_whitelist_item *wh, *tmp;