diff options
author | Eric Paris <eparis@redhat.com> | 2010-04-07 15:15:08 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-04-11 22:19:17 -0400 |
commit | 06ad187e280e725e356c62c3a30ddcd01564f8be (patch) | |
tree | 5406ae3382d62971ed8b981533075657aa18d16b /include | |
parent | 43ed8c3b4573d5f5cd314937fee63b4ab046ac5f (diff) |
security: remove dead hook task_setgid
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 | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 447c57fcec88..04ce0d6e4edf 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -683,18 +683,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) | |||
683 | * @old is the set of credentials that are being replaces | 683 | * @old is the set of credentials that are being replaces |
684 | * @flags contains one of the LSM_SETID_* values. | 684 | * @flags contains one of the LSM_SETID_* values. |
685 | * Return 0 on success. | 685 | * 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. | ||
698 | * @task_setpgid: | 686 | * @task_setpgid: |
699 | * Check permission before setting the process group identifier of the | 687 | * Check permission before setting the process group identifier of the |
700 | * process @p to @pgid. | 688 | * process @p to @pgid. |
@@ -1526,7 +1514,6 @@ struct security_operations { | |||
1526 | int (*kernel_module_request)(char *kmod_name); | 1514 | int (*kernel_module_request)(char *kmod_name); |
1527 | int (*task_fix_setuid) (struct cred *new, const struct cred *old, | 1515 | int (*task_fix_setuid) (struct cred *new, const struct cred *old, |
1528 | int flags); | 1516 | int flags); |
1529 | int (*task_setgid) (gid_t id0, gid_t id1, gid_t id2, int flags); | ||
1530 | int (*task_setpgid) (struct task_struct *p, pid_t pgid); | 1517 | int (*task_setpgid) (struct task_struct *p, pid_t pgid); |
1531 | int (*task_getpgid) (struct task_struct *p); | 1518 | int (*task_getpgid) (struct task_struct *p); |
1532 | int (*task_getsid) (struct task_struct *p); | 1519 | int (*task_getsid) (struct task_struct *p); |
@@ -1782,7 +1769,6 @@ int security_kernel_create_files_as(struct cred *new, struct inode *inode); | |||
1782 | int security_kernel_module_request(char *kmod_name); | 1769 | int security_kernel_module_request(char *kmod_name); |
1783 | int security_task_fix_setuid(struct cred *new, const struct cred *old, | 1770 | int security_task_fix_setuid(struct cred *new, const struct cred *old, |
1784 | int flags); | 1771 | int flags); |
1785 | int security_task_setgid(gid_t id0, gid_t id1, gid_t id2, int flags); | ||
1786 | int security_task_setpgid(struct task_struct *p, pid_t pgid); | 1772 | int security_task_setpgid(struct task_struct *p, pid_t pgid); |
1787 | int security_task_getpgid(struct task_struct *p); | 1773 | int security_task_getpgid(struct task_struct *p); |
1788 | int security_task_getsid(struct task_struct *p); | 1774 | int security_task_getsid(struct task_struct *p); |
@@ -2323,12 +2309,6 @@ static inline int security_task_fix_setuid(struct cred *new, | |||
2323 | return cap_task_fix_setuid(new, old, flags); | 2309 | return cap_task_fix_setuid(new, old, flags); |
2324 | } | 2310 | } |
2325 | 2311 | ||
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 | |||
2332 | static inline int security_task_setpgid(struct task_struct *p, pid_t pgid) | 2312 | static inline int security_task_setpgid(struct task_struct *p, pid_t pgid) |
2333 | { | 2313 | { |
2334 | return 0; | 2314 | return 0; |