mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08:00
lsm: move the kernfs hook comments to security/security.c
This patch relocates the LSM hook function comments to the function definitions, in keeping with the current kernel conventions. This should make the hook descriptions more easily discoverable and easier to maintain. While formatting changes have been done to better fit the kernel-doc style, content changes have been kept to a minimum and limited to text which was obviously incorrect and/or outdated. It is expected the future patches will improve the quality of the function header comments. Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
916e32584d
commit
9348944b77
@ -32,15 +32,6 @@
|
||||
/**
|
||||
* union security_list_options - Linux Security Module hook function list
|
||||
*
|
||||
* Security hooks for kernfs node operations
|
||||
*
|
||||
* @kernfs_init_security:
|
||||
* Initialize the security context of a newly created kernfs node based
|
||||
* on its own and its parent's attributes.
|
||||
* @kn_dir the parent kernfs node.
|
||||
* @kn the new child kernfs node.
|
||||
* Return 0 if permission is granted.
|
||||
*
|
||||
* Security hooks for file operations
|
||||
*
|
||||
* @file_permission:
|
||||
|
@ -2344,6 +2344,16 @@ int security_inode_copy_up_xattr(const char *name)
|
||||
}
|
||||
EXPORT_SYMBOL(security_inode_copy_up_xattr);
|
||||
|
||||
/**
|
||||
* security_kernfs_init_security() - Init LSM context for a kernfs node
|
||||
* @kn_dir: parent kernfs node
|
||||
* @kn: the kernfs node to initialize
|
||||
*
|
||||
* Initialize the security context of a newly created kernfs node based on its
|
||||
* own and its parent's attributes.
|
||||
*
|
||||
* Return: Returns 0 if permission is granted.
|
||||
*/
|
||||
int security_kernfs_init_security(struct kernfs_node *kn_dir,
|
||||
struct kernfs_node *kn)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user