diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/device_cgroup.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/security/device_cgroup.c b/security/device_cgroup.c index d3b6d2cd3a06..8365909f5f8c 100644 --- a/security/device_cgroup.c +++ b/security/device_cgroup.c | |||
@@ -58,11 +58,9 @@ static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s) | |||
58 | 58 | ||
59 | static inline struct dev_cgroup *task_devcgroup(struct task_struct *task) | 59 | static inline struct dev_cgroup *task_devcgroup(struct task_struct *task) |
60 | { | 60 | { |
61 | return css_to_devcgroup(task_css(task, devices_subsys_id)); | 61 | return css_to_devcgroup(task_css(task, devices_cgrp_id)); |
62 | } | 62 | } |
63 | 63 | ||
64 | struct cgroup_subsys devices_subsys; | ||
65 | |||
66 | /* | 64 | /* |
67 | * called under devcgroup_mutex | 65 | * called under devcgroup_mutex |
68 | */ | 66 | */ |
@@ -498,7 +496,7 @@ static inline bool has_children(struct dev_cgroup *devcgroup) | |||
498 | * parent cgroup has the access you're asking for. | 496 | * parent cgroup has the access you're asking for. |
499 | */ | 497 | */ |
500 | static int devcgroup_update_access(struct dev_cgroup *devcgroup, | 498 | static int devcgroup_update_access(struct dev_cgroup *devcgroup, |
501 | int filetype, const char *buffer) | 499 | int filetype, char *buffer) |
502 | { | 500 | { |
503 | const char *b; | 501 | const char *b; |
504 | char temp[12]; /* 11 + 1 characters needed for a u32 */ | 502 | char temp[12]; /* 11 + 1 characters needed for a u32 */ |
@@ -654,7 +652,7 @@ static int devcgroup_update_access(struct dev_cgroup *devcgroup, | |||
654 | } | 652 | } |
655 | 653 | ||
656 | static int devcgroup_access_write(struct cgroup_subsys_state *css, | 654 | static int devcgroup_access_write(struct cgroup_subsys_state *css, |
657 | struct cftype *cft, const char *buffer) | 655 | struct cftype *cft, char *buffer) |
658 | { | 656 | { |
659 | int retval; | 657 | int retval; |
660 | 658 | ||
@@ -684,13 +682,11 @@ static struct cftype dev_cgroup_files[] = { | |||
684 | { } /* terminate */ | 682 | { } /* terminate */ |
685 | }; | 683 | }; |
686 | 684 | ||
687 | struct cgroup_subsys devices_subsys = { | 685 | struct cgroup_subsys devices_cgrp_subsys = { |
688 | .name = "devices", | ||
689 | .css_alloc = devcgroup_css_alloc, | 686 | .css_alloc = devcgroup_css_alloc, |
690 | .css_free = devcgroup_css_free, | 687 | .css_free = devcgroup_css_free, |
691 | .css_online = devcgroup_online, | 688 | .css_online = devcgroup_online, |
692 | .css_offline = devcgroup_offline, | 689 | .css_offline = devcgroup_offline, |
693 | .subsys_id = devices_subsys_id, | ||
694 | .base_cftypes = dev_cgroup_files, | 690 | .base_cftypes = dev_cgroup_files, |
695 | }; | 691 | }; |
696 | 692 | ||