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 /include | |
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 'include')
-rw-r--r-- | include/linux/security.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 04ce0d6e4edf..73505f0c9b75 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -704,11 +704,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) | |||
704 | * @p contains the task_struct for the process and place is into @secid. | 704 | * @p contains the task_struct for the process and place is into @secid. |
705 | * In case of failure, @secid will be set to zero. | 705 | * In case of failure, @secid will be set to zero. |
706 | * | 706 | * |
707 | * @task_setgroups: | ||
708 | * Check permission before setting the supplementary group set of the | ||
709 | * current process. | ||
710 | * @group_info contains the new group information. | ||
711 | * Return 0 if permission is granted. | ||
712 | * @task_setnice: | 707 | * @task_setnice: |
713 | * Check permission before setting the nice value of @p to @nice. | 708 | * Check permission before setting the nice value of @p to @nice. |
714 | * @p contains the task_struct of process. | 709 | * @p contains the task_struct of process. |
@@ -1518,7 +1513,6 @@ struct security_operations { | |||
1518 | int (*task_getpgid) (struct task_struct *p); | 1513 | int (*task_getpgid) (struct task_struct *p); |
1519 | int (*task_getsid) (struct task_struct *p); | 1514 | int (*task_getsid) (struct task_struct *p); |
1520 | void (*task_getsecid) (struct task_struct *p, u32 *secid); | 1515 | void (*task_getsecid) (struct task_struct *p, u32 *secid); |
1521 | int (*task_setgroups) (struct group_info *group_info); | ||
1522 | int (*task_setnice) (struct task_struct *p, int nice); | 1516 | int (*task_setnice) (struct task_struct *p, int nice); |
1523 | int (*task_setioprio) (struct task_struct *p, int ioprio); | 1517 | int (*task_setioprio) (struct task_struct *p, int ioprio); |
1524 | int (*task_getioprio) (struct task_struct *p); | 1518 | int (*task_getioprio) (struct task_struct *p); |
@@ -1773,7 +1767,6 @@ int security_task_setpgid(struct task_struct *p, pid_t pgid); | |||
1773 | int security_task_getpgid(struct task_struct *p); | 1767 | int security_task_getpgid(struct task_struct *p); |
1774 | int security_task_getsid(struct task_struct *p); | 1768 | int security_task_getsid(struct task_struct *p); |
1775 | void security_task_getsecid(struct task_struct *p, u32 *secid); | 1769 | void security_task_getsecid(struct task_struct *p, u32 *secid); |
1776 | int security_task_setgroups(struct group_info *group_info); | ||
1777 | int security_task_setnice(struct task_struct *p, int nice); | 1770 | int security_task_setnice(struct task_struct *p, int nice); |
1778 | int security_task_setioprio(struct task_struct *p, int ioprio); | 1771 | int security_task_setioprio(struct task_struct *p, int ioprio); |
1779 | int security_task_getioprio(struct task_struct *p); | 1772 | int security_task_getioprio(struct task_struct *p); |
@@ -2329,11 +2322,6 @@ static inline void security_task_getsecid(struct task_struct *p, u32 *secid) | |||
2329 | *secid = 0; | 2322 | *secid = 0; |
2330 | } | 2323 | } |
2331 | 2324 | ||
2332 | static inline int security_task_setgroups(struct group_info *group_info) | ||
2333 | { | ||
2334 | return 0; | ||
2335 | } | ||
2336 | |||
2337 | static inline int security_task_setnice(struct task_struct *p, int nice) | 2325 | static inline int security_task_setnice(struct task_struct *p, int nice) |
2338 | { | 2326 | { |
2339 | return cap_task_setnice(p, nice); | 2327 | return cap_task_setnice(p, nice); |