mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
lsm: fix a badly named parameter in security_get_getsecurity()
There is no good reason for why the "_buffer" parameter needs an underscore, get rid of it. Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
@@ -381,7 +381,7 @@ LSM_HOOK(int, 0, key_alloc, struct key *key, const struct cred *cred,
|
|||||||
LSM_HOOK(void, LSM_RET_VOID, key_free, struct key *key)
|
LSM_HOOK(void, LSM_RET_VOID, key_free, struct key *key)
|
||||||
LSM_HOOK(int, 0, key_permission, key_ref_t key_ref, const struct cred *cred,
|
LSM_HOOK(int, 0, key_permission, key_ref_t key_ref, const struct cred *cred,
|
||||||
enum key_need_perm need_perm)
|
enum key_need_perm need_perm)
|
||||||
LSM_HOOK(int, 0, key_getsecurity, struct key *key, char **_buffer)
|
LSM_HOOK(int, 0, key_getsecurity, struct key *key, char **buffer)
|
||||||
#endif /* CONFIG_KEYS */
|
#endif /* CONFIG_KEYS */
|
||||||
|
|
||||||
#ifdef CONFIG_AUDIT
|
#ifdef CONFIG_AUDIT
|
||||||
|
@@ -4981,20 +4981,20 @@ int security_key_permission(key_ref_t key_ref, const struct cred *cred,
|
|||||||
/**
|
/**
|
||||||
* security_key_getsecurity() - Get the key's security label
|
* security_key_getsecurity() - Get the key's security label
|
||||||
* @key: key
|
* @key: key
|
||||||
* @_buffer: security label buffer
|
* @buffer: security label buffer
|
||||||
*
|
*
|
||||||
* Get a textual representation of the security context attached to a key for
|
* Get a textual representation of the security context attached to a key for
|
||||||
* the purposes of honouring KEYCTL_GETSECURITY. This function allocates the
|
* the purposes of honouring KEYCTL_GETSECURITY. This function allocates the
|
||||||
* storage for the NUL-terminated string and the caller should free it.
|
* storage for the NUL-terminated string and the caller should free it.
|
||||||
*
|
*
|
||||||
* Return: Returns the length of @_buffer (including terminating NUL) or -ve if
|
* Return: Returns the length of @buffer (including terminating NUL) or -ve if
|
||||||
* an error occurs. May also return 0 (and a NULL buffer pointer) if
|
* an error occurs. May also return 0 (and a NULL buffer pointer) if
|
||||||
* there is no security label assigned to the key.
|
* there is no security label assigned to the key.
|
||||||
*/
|
*/
|
||||||
int security_key_getsecurity(struct key *key, char **_buffer)
|
int security_key_getsecurity(struct key *key, char **buffer)
|
||||||
{
|
{
|
||||||
*_buffer = NULL;
|
*buffer = NULL;
|
||||||
return call_int_hook(key_getsecurity, 0, key, _buffer);
|
return call_int_hook(key_getsecurity, 0, key, buffer);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_KEYS */
|
#endif /* CONFIG_KEYS */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user