aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/security.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-04-07 15:15:02 -0400
committerJames Morris <jmorris@namei.org>2010-04-11 22:19:16 -0400
commit43ed8c3b4573d5f5cd314937fee63b4ab046ac5f (patch)
treebb3f094daa6f0c3f49c4c47fb5ac1c80a26e9698 /include/linux/security.h
parent0968d0060a3c885e53d453380266c7792a55d302 (diff)
security: remove dead hook task_setuid
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.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/linux/security.h b/include/linux/security.h
index 33b0c1b27f82..447c57fcec88 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -674,18 +674,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
674 * userspace to load a kernel module with the given name. 674 * userspace to load a kernel module with the given name.
675 * @kmod_name name of the module requested by the kernel 675 * @kmod_name name of the module requested by the kernel
676 * Return 0 if successful. 676 * Return 0 if successful.
677 * @task_setuid:
678 * Check permission before setting one or more of the user identity
679 * attributes of the current process. The @flags parameter indicates
680 * which of the set*uid system calls invoked this hook and how to
681 * interpret the @id0, @id1, and @id2 parameters. See the LSM_SETID
682 * definitions at the beginning of this file for the @flags values and
683 * their meanings.
684 * @id0 contains a uid.
685 * @id1 contains a uid.
686 * @id2 contains a uid.
687 * @flags contains one of the LSM_SETID_* values.
688 * Return 0 if permission is granted.
689 * @task_fix_setuid: 677 * @task_fix_setuid:
690 * Update the module's state after setting one or more of the user 678 * Update the module's state after setting one or more of the user
691 * identity attributes of the current process. The @flags parameter 679 * identity attributes of the current process. The @flags parameter
@@ -1536,7 +1524,6 @@ struct security_operations {
1536 int (*kernel_act_as)(struct cred *new, u32 secid); 1524 int (*kernel_act_as)(struct cred *new, u32 secid);
1537 int (*kernel_create_files_as)(struct cred *new, struct inode *inode); 1525 int (*kernel_create_files_as)(struct cred *new, struct inode *inode);
1538 int (*kernel_module_request)(char *kmod_name); 1526 int (*kernel_module_request)(char *kmod_name);
1539 int (*task_setuid) (uid_t id0, uid_t id1, uid_t id2, int flags);
1540 int (*task_fix_setuid) (struct cred *new, const struct cred *old, 1527 int (*task_fix_setuid) (struct cred *new, const struct cred *old,
1541 int flags); 1528 int flags);
1542 int (*task_setgid) (gid_t id0, gid_t id1, gid_t id2, int flags); 1529 int (*task_setgid) (gid_t id0, gid_t id1, gid_t id2, int flags);
@@ -1793,7 +1780,6 @@ void security_transfer_creds(struct cred *new, const struct cred *old);
1793int security_kernel_act_as(struct cred *new, u32 secid); 1780int security_kernel_act_as(struct cred *new, u32 secid);
1794int security_kernel_create_files_as(struct cred *new, struct inode *inode); 1781int security_kernel_create_files_as(struct cred *new, struct inode *inode);
1795int security_kernel_module_request(char *kmod_name); 1782int security_kernel_module_request(char *kmod_name);
1796int security_task_setuid(uid_t id0, uid_t id1, uid_t id2, int flags);
1797int security_task_fix_setuid(struct cred *new, const struct cred *old, 1783int security_task_fix_setuid(struct cred *new, const struct cred *old,
1798 int flags); 1784 int flags);
1799int security_task_setgid(gid_t id0, gid_t id1, gid_t id2, int flags); 1785int security_task_setgid(gid_t id0, gid_t id1, gid_t id2, int flags);
@@ -2330,12 +2316,6 @@ static inline int security_kernel_module_request(char *kmod_name)
2330 return 0; 2316 return 0;
2331} 2317}
2332 2318
2333static inline int security_task_setuid(uid_t id0, uid_t id1, uid_t id2,
2334 int flags)
2335{
2336 return 0;
2337}
2338
2339static inline int security_task_fix_setuid(struct cred *new, 2319static inline int security_task_fix_setuid(struct cred *new,
2340 const struct cred *old, 2320 const struct cred *old,
2341 int flags) 2321 int flags)