@@ -704,11 +704,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
704704 * @p contains the task_struct for the process and place is into @secid.
705705 * In case of failure, @secid will be set to zero.
706706 *
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.
712707 * @task_setnice:
713708 * Check permission before setting the nice value of @p to @nice.
714709 * @p contains the task_struct of process.
@@ -1518,7 +1513,6 @@ struct security_operations {
15181513 int (* task_getpgid ) (struct task_struct * p );
15191514 int (* task_getsid ) (struct task_struct * p );
15201515 void (* task_getsecid ) (struct task_struct * p , u32 * secid );
1521- int (* task_setgroups ) (struct group_info * group_info );
15221516 int (* task_setnice ) (struct task_struct * p , int nice );
15231517 int (* task_setioprio ) (struct task_struct * p , int ioprio );
15241518 int (* task_getioprio ) (struct task_struct * p );
@@ -1773,7 +1767,6 @@ int security_task_setpgid(struct task_struct *p, pid_t pgid);
17731767int security_task_getpgid (struct task_struct * p );
17741768int security_task_getsid (struct task_struct * p );
17751769void security_task_getsecid (struct task_struct * p , u32 * secid );
1776- int security_task_setgroups (struct group_info * group_info );
17771770int security_task_setnice (struct task_struct * p , int nice );
17781771int security_task_setioprio (struct task_struct * p , int ioprio );
17791772int security_task_getioprio (struct task_struct * p );
@@ -2329,11 +2322,6 @@ static inline void security_task_getsecid(struct task_struct *p, u32 *secid)
23292322 * secid = 0 ;
23302323}
23312324
2332- static inline int security_task_setgroups (struct group_info * group_info )
2333- {
2334- return 0 ;
2335- }
2336-
23372325static inline int security_task_setnice (struct task_struct * p , int nice )
23382326{
23392327 return cap_task_setnice (p , nice );
0 commit comments