aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/security.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-04-07 15:14:56 -0400
committerJames Morris <jmorris@namei.org>2010-04-11 22:19:15 -0400
commit0968d0060a3c885e53d453380266c7792a55d302 (patch)
treeb8511f3bf4aa4cfb21421ab5dde8346f0119dbe3 /include/linux/security.h
parent9d5ed77dadc66a72b40419c91df942adfa55a102 (diff)
security: remove dead hook cred_commit
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.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/security.h b/include/linux/security.h
index ef6edc759891..33b0c1b27f82 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -652,10 +652,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
652 * @old points to the original credentials. 652 * @old points to the original credentials.
653 * @gfp indicates the atomicity of any memory allocations. 653 * @gfp indicates the atomicity of any memory allocations.
654 * Prepare a new set of credentials by copying the data from the old set. 654 * Prepare a new set of credentials by copying the data from the old set.
655 * @cred_commit:
656 * @new points to the new credentials.
657 * @old points to the original credentials.
658 * Install a new set of credentials.
659 * @cred_transfer: 655 * @cred_transfer:
660 * @new points to the new credentials. 656 * @new points to the new credentials.
661 * @old points to the original credentials. 657 * @old points to the original credentials.
@@ -1536,7 +1532,6 @@ struct security_operations {
1536 void (*cred_free) (struct cred *cred); 1532 void (*cred_free) (struct cred *cred);
1537 int (*cred_prepare)(struct cred *new, const struct cred *old, 1533 int (*cred_prepare)(struct cred *new, const struct cred *old,
1538 gfp_t gfp); 1534 gfp_t gfp);
1539 void (*cred_commit)(struct cred *new, const struct cred *old);
1540 void (*cred_transfer)(struct cred *new, const struct cred *old); 1535 void (*cred_transfer)(struct cred *new, const struct cred *old);
1541 int (*kernel_act_as)(struct cred *new, u32 secid); 1536 int (*kernel_act_as)(struct cred *new, u32 secid);
1542 int (*kernel_create_files_as)(struct cred *new, struct inode *inode); 1537 int (*kernel_create_files_as)(struct cred *new, struct inode *inode);
@@ -1794,7 +1789,6 @@ int security_task_create(unsigned long clone_flags);
1794int security_cred_alloc_blank(struct cred *cred, gfp_t gfp); 1789int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
1795void security_cred_free(struct cred *cred); 1790void security_cred_free(struct cred *cred);
1796int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp); 1791int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
1797void security_commit_creds(struct cred *new, const struct cred *old);
1798void security_transfer_creds(struct cred *new, const struct cred *old); 1792void security_transfer_creds(struct cred *new, const struct cred *old);
1799int security_kernel_act_as(struct cred *new, u32 secid); 1793int security_kernel_act_as(struct cred *new, u32 secid);
1800int security_kernel_create_files_as(struct cred *new, struct inode *inode); 1794int security_kernel_create_files_as(struct cred *new, struct inode *inode);
@@ -2315,11 +2309,6 @@ static inline int security_prepare_creds(struct cred *new,
2315 return 0; 2309 return 0;
2316} 2310}
2317 2311
2318static inline void security_commit_creds(struct cred *new,
2319 const struct cred *old)
2320{
2321}
2322
2323static inline void security_transfer_creds(struct cred *new, 2312static inline void security_transfer_creds(struct cred *new,
2324 const struct cred *old) 2313 const struct cred *old)
2325{ 2314{