diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index 14c291910d25..957e8bee3554 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -1005,6 +1005,13 @@ void security_transfer_creds(struct cred *new, const struct cred *old) | |||
1005 | call_void_hook(cred_transfer, new, old); | 1005 | call_void_hook(cred_transfer, new, old); |
1006 | } | 1006 | } |
1007 | 1007 | ||
1008 | void security_cred_getsecid(const struct cred *c, u32 *secid) | ||
1009 | { | ||
1010 | *secid = 0; | ||
1011 | call_void_hook(cred_getsecid, c, secid); | ||
1012 | } | ||
1013 | EXPORT_SYMBOL(security_cred_getsecid); | ||
1014 | |||
1008 | int security_kernel_act_as(struct cred *new, u32 secid) | 1015 | int security_kernel_act_as(struct cred *new, u32 secid) |
1009 | { | 1016 | { |
1010 | return call_int_hook(kernel_act_as, 0, new, secid); | 1017 | return call_int_hook(kernel_act_as, 0, new, secid); |