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 /security | |
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 'security')
-rw-r--r-- | security/capability.c | 5 | ||||
-rw-r--r-- | security/security.c | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/security/capability.c b/security/capability.c index b855e9f27f0e..a927bdea1816 100644 --- a/security/capability.c +++ b/security/capability.c | |||
@@ -373,10 +373,6 @@ static int cap_cred_prepare(struct cred *new, const struct cred *old, gfp_t gfp) | |||
373 | return 0; | 373 | return 0; |
374 | } | 374 | } |
375 | 375 | ||
376 | static void cap_cred_commit(struct cred *new, const struct cred *old) | ||
377 | { | ||
378 | } | ||
379 | |||
380 | static void cap_cred_transfer(struct cred *new, const struct cred *old) | 376 | static void cap_cred_transfer(struct cred *new, const struct cred *old) |
381 | { | 377 | { |
382 | } | 378 | } |
@@ -972,7 +968,6 @@ void security_fixup_ops(struct security_operations *ops) | |||
972 | set_to_cap_if_null(ops, cred_alloc_blank); | 968 | set_to_cap_if_null(ops, cred_alloc_blank); |
973 | set_to_cap_if_null(ops, cred_free); | 969 | set_to_cap_if_null(ops, cred_free); |
974 | set_to_cap_if_null(ops, cred_prepare); | 970 | set_to_cap_if_null(ops, cred_prepare); |
975 | set_to_cap_if_null(ops, cred_commit); | ||
976 | set_to_cap_if_null(ops, cred_transfer); | 971 | set_to_cap_if_null(ops, cred_transfer); |
977 | set_to_cap_if_null(ops, kernel_act_as); | 972 | set_to_cap_if_null(ops, kernel_act_as); |
978 | set_to_cap_if_null(ops, kernel_create_files_as); | 973 | set_to_cap_if_null(ops, kernel_create_files_as); |
diff --git a/security/security.c b/security/security.c index c65b0bca05bb..6e5942653d4f 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -712,11 +712,6 @@ int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp) | |||
712 | return security_ops->cred_prepare(new, old, gfp); | 712 | return security_ops->cred_prepare(new, old, gfp); |
713 | } | 713 | } |
714 | 714 | ||
715 | void security_commit_creds(struct cred *new, const struct cred *old) | ||
716 | { | ||
717 | security_ops->cred_commit(new, old); | ||
718 | } | ||
719 | |||
720 | void security_transfer_creds(struct cred *new, const struct cred *old) | 715 | void security_transfer_creds(struct cred *new, const struct cred *old) |
721 | { | 716 | { |
722 | security_ops->cred_transfer(new, old); | 717 | security_ops->cred_transfer(new, old); |