aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/security.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-04-07 15:15:13 -0400
committerJames Morris <jmorris@namei.org>2010-04-11 22:19:18 -0400
commit6307f8fee295b364716d28686df6e69c2fee751a (patch)
treeda2d51edcca32dd71c2a3a6f74bf56e88a60293f /include/linux/security.h
parent06ad187e280e725e356c62c3a30ddcd01564f8be (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/linux/security.h')
-rw-r--r--include/linux/security.h12
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);
1773int security_task_getpgid(struct task_struct *p); 1767int security_task_getpgid(struct task_struct *p);
1774int security_task_getsid(struct task_struct *p); 1768int security_task_getsid(struct task_struct *p);
1775void security_task_getsecid(struct task_struct *p, u32 *secid); 1769void security_task_getsecid(struct task_struct *p, u32 *secid);
1776int security_task_setgroups(struct group_info *group_info);
1777int security_task_setnice(struct task_struct *p, int nice); 1770int security_task_setnice(struct task_struct *p, int nice);
1778int security_task_setioprio(struct task_struct *p, int ioprio); 1771int security_task_setioprio(struct task_struct *p, int ioprio);
1779int security_task_getioprio(struct task_struct *p); 1772int 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
2332static inline int security_task_setgroups(struct group_info *group_info)
2333{
2334 return 0;
2335}
2336
2337static inline int security_task_setnice(struct task_struct *p, int nice) 2325static 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);