@@ -683,18 +683,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
683683 * @old is the set of credentials that are being replaces
684684 * @flags contains one of the LSM_SETID_* values.
685685 * Return 0 on success.
686- * @task_setgid:
687- * Check permission before setting one or more of the group identity
688- * attributes of the current process. The @flags parameter indicates
689- * which of the set*gid system calls invoked this hook and how to
690- * interpret the @id0, @id1, and @id2 parameters. See the LSM_SETID
691- * definitions at the beginning of this file for the @flags values and
692- * their meanings.
693- * @id0 contains a gid.
694- * @id1 contains a gid.
695- * @id2 contains a gid.
696- * @flags contains one of the LSM_SETID_* values.
697- * Return 0 if permission is granted.
698686 * @task_setpgid:
699687 * Check permission before setting the process group identifier of the
700688 * process @p to @pgid.
@@ -1526,7 +1514,6 @@ struct security_operations {
15261514 int (* kernel_module_request )(char * kmod_name );
15271515 int (* task_fix_setuid ) (struct cred * new , const struct cred * old ,
15281516 int flags );
1529- int (* task_setgid ) (gid_t id0 , gid_t id1 , gid_t id2 , int flags );
15301517 int (* task_setpgid ) (struct task_struct * p , pid_t pgid );
15311518 int (* task_getpgid ) (struct task_struct * p );
15321519 int (* task_getsid ) (struct task_struct * p );
@@ -1782,7 +1769,6 @@ int security_kernel_create_files_as(struct cred *new, struct inode *inode);
17821769int security_kernel_module_request (char * kmod_name );
17831770int security_task_fix_setuid (struct cred * new , const struct cred * old ,
17841771 int flags );
1785- int security_task_setgid (gid_t id0 , gid_t id1 , gid_t id2 , int flags );
17861772int security_task_setpgid (struct task_struct * p , pid_t pgid );
17871773int security_task_getpgid (struct task_struct * p );
17881774int security_task_getsid (struct task_struct * p );
@@ -2323,12 +2309,6 @@ static inline int security_task_fix_setuid(struct cred *new,
23232309 return cap_task_fix_setuid (new , old , flags );
23242310}
23252311
2326- static inline int security_task_setgid (gid_t id0 , gid_t id1 , gid_t id2 ,
2327- int flags )
2328- {
2329- return 0 ;
2330- }
2331-
23322312static inline int security_task_setpgid (struct task_struct * p , pid_t pgid )
23332313{
23342314 return 0 ;
0 commit comments