diff options
| author | Eric Paris <eparis@redhat.com> | 2010-04-07 15:15:13 -0400 |
|---|---|---|
| committer | James Morris <jmorris@namei.org> | 2010-04-11 22:19:18 -0400 |
| commit | 6307f8fee295b364716d28686df6e69c2fee751a (patch) | |
| tree | da2d51edcca32dd71c2a3a6f74bf56e88a60293f /security | |
| parent | 06ad187e280e725e356c62c3a30ddcd01564f8be (diff) | |
security: remove dead hook task_setgroups
Unused hook. Remove.
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security')
| -rw-r--r-- | security/capability.c | 6 | ||||
| -rw-r--r-- | security/security.c | 5 |
2 files changed, 0 insertions, 11 deletions
diff --git a/security/capability.c b/security/capability.c index 66cd7453563f..247c04edd468 100644 --- a/security/capability.c +++ b/security/capability.c | |||
| @@ -412,11 +412,6 @@ static void cap_task_getsecid(struct task_struct *p, u32 *secid) | |||
| 412 | *secid = 0; | 412 | *secid = 0; |
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | static int cap_task_setgroups(struct group_info *group_info) | ||
| 416 | { | ||
| 417 | return 0; | ||
| 418 | } | ||
| 419 | |||
| 420 | static int cap_task_getioprio(struct task_struct *p) | 415 | static int cap_task_getioprio(struct task_struct *p) |
| 421 | { | 416 | { |
| 422 | return 0; | 417 | return 0; |
| @@ -967,7 +962,6 @@ void security_fixup_ops(struct security_operations *ops) | |||
| 967 | set_to_cap_if_null(ops, task_getpgid); | 962 | set_to_cap_if_null(ops, task_getpgid); |
| 968 | set_to_cap_if_null(ops, task_getsid); | 963 | set_to_cap_if_null(ops, task_getsid); |
| 969 | set_to_cap_if_null(ops, task_getsecid); | 964 | set_to_cap_if_null(ops, task_getsecid); |
| 970 | set_to_cap_if_null(ops, task_setgroups); | ||
| 971 | set_to_cap_if_null(ops, task_setnice); | 965 | set_to_cap_if_null(ops, task_setnice); |
| 972 | set_to_cap_if_null(ops, task_setioprio); | 966 | set_to_cap_if_null(ops, task_setioprio); |
| 973 | set_to_cap_if_null(ops, task_getioprio); | 967 | set_to_cap_if_null(ops, task_getioprio); |
diff --git a/security/security.c b/security/security.c index 1e35dd669209..5cf9ca6890f6 100644 --- a/security/security.c +++ b/security/security.c | |||
| @@ -759,11 +759,6 @@ void security_task_getsecid(struct task_struct *p, u32 *secid) | |||
| 759 | } | 759 | } |
| 760 | EXPORT_SYMBOL(security_task_getsecid); | 760 | EXPORT_SYMBOL(security_task_getsecid); |
| 761 | 761 | ||
| 762 | int security_task_setgroups(struct group_info *group_info) | ||
| 763 | { | ||
| 764 | return security_ops->task_setgroups(group_info); | ||
| 765 | } | ||
| 766 | |||
| 767 | int security_task_setnice(struct task_struct *p, int nice) | 762 | int security_task_setnice(struct task_struct *p, int nice) |
| 768 | { | 763 | { |
| 769 | return security_ops->task_setnice(p, nice); | 764 | return security_ops->task_setnice(p, nice); |
