diff options
Diffstat (limited to 'security/device_cgroup.c')
-rw-r--r-- | security/device_cgroup.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/security/device_cgroup.c b/security/device_cgroup.c index c43a3323feea..442204cc22d9 100644 --- a/security/device_cgroup.c +++ b/security/device_cgroup.c | |||
@@ -447,22 +447,16 @@ static struct cftype dev_cgroup_files[] = { | |||
447 | .read_seq_string = devcgroup_seq_read, | 447 | .read_seq_string = devcgroup_seq_read, |
448 | .private = DEVCG_LIST, | 448 | .private = DEVCG_LIST, |
449 | }, | 449 | }, |
450 | { } /* terminate */ | ||
450 | }; | 451 | }; |
451 | 452 | ||
452 | static int devcgroup_populate(struct cgroup_subsys *ss, | ||
453 | struct cgroup *cgroup) | ||
454 | { | ||
455 | return cgroup_add_files(cgroup, ss, dev_cgroup_files, | ||
456 | ARRAY_SIZE(dev_cgroup_files)); | ||
457 | } | ||
458 | |||
459 | struct cgroup_subsys devices_subsys = { | 453 | struct cgroup_subsys devices_subsys = { |
460 | .name = "devices", | 454 | .name = "devices", |
461 | .can_attach = devcgroup_can_attach, | 455 | .can_attach = devcgroup_can_attach, |
462 | .create = devcgroup_create, | 456 | .create = devcgroup_create, |
463 | .destroy = devcgroup_destroy, | 457 | .destroy = devcgroup_destroy, |
464 | .populate = devcgroup_populate, | ||
465 | .subsys_id = devices_subsys_id, | 458 | .subsys_id = devices_subsys_id, |
459 | .base_cftypes = dev_cgroup_files, | ||
466 | }; | 460 | }; |
467 | 461 | ||
468 | int __devcgroup_inode_permission(struct inode *inode, int mask) | 462 | int __devcgroup_inode_permission(struct inode *inode, int mask) |