diff options
author | Eric Paris <eparis@redhat.com> | 2010-04-07 15:14:56 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-04-11 22:19:15 -0400 |
commit | 0968d0060a3c885e53d453380266c7792a55d302 (patch) | |
tree | b8511f3bf4aa4cfb21421ab5dde8346f0119dbe3 /include/linux/security.h | |
parent | 9d5ed77dadc66a72b40419c91df942adfa55a102 (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.h | 11 |
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); | |||
1794 | int security_cred_alloc_blank(struct cred *cred, gfp_t gfp); | 1789 | int security_cred_alloc_blank(struct cred *cred, gfp_t gfp); |
1795 | void security_cred_free(struct cred *cred); | 1790 | void security_cred_free(struct cred *cred); |
1796 | int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp); | 1791 | int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp); |
1797 | void security_commit_creds(struct cred *new, const struct cred *old); | ||
1798 | void security_transfer_creds(struct cred *new, const struct cred *old); | 1792 | void security_transfer_creds(struct cred *new, const struct cred *old); |
1799 | int security_kernel_act_as(struct cred *new, u32 secid); | 1793 | int security_kernel_act_as(struct cred *new, u32 secid); |
1800 | int security_kernel_create_files_as(struct cred *new, struct inode *inode); | 1794 | int 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 | ||
2318 | static inline void security_commit_creds(struct cred *new, | ||
2319 | const struct cred *old) | ||
2320 | { | ||
2321 | } | ||
2322 | |||
2323 | static inline void security_transfer_creds(struct cred *new, | 2312 | static inline void security_transfer_creds(struct cred *new, |
2324 | const struct cred *old) | 2313 | const struct cred *old) |
2325 | { | 2314 | { |