函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack.h Create Date:2022-07-27 20:48:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Present a pointer to the smack label in the current task blob.

函数原型:static inline struct smack_known *smk_of_current(void)

返回类型:struct smack_known

参数:

430  返回:Present a pointer to the smack label entry in an task blob.
调用者
名称描述
smack_syslogsmack_syslog - Smack approval on syslog*@typefrom_file: unused* Returns 0 on success, error code otherwise.
smack_set_mnt_optssmack_set_mnt_opts - set Smack specific mount options*@sb: the file system superblock*@mnt_opts: Smack mount options*@kern_flags: mount option from kernel space or user space*@set_kern_flags: where to store converted mount opts* Returns 0 on success, an
smack_inode_alloc_securitysmack_inode_alloc_security - allocate an inode blob*@inode: the inode in need of a blob* Returns 0
smack_inode_init_securitysmack_inode_init_security - copy out the smack from an inode*@inode: the newly created inode*@dir: containing directory object*@qstr: unused*@name: where to put the attribute name*@value: where to put the attribute value*@len: where to put the length of
smack_file_alloc_securitysmack_file_alloc_security - assign a file security blob*@file: the object* The security blob for a file is a pointer to the master* label list, so no allocation is done.* f_security is the owner security information. It
smack_mmap_filesmack_mmap_file :* Check permissions for a mmap operation. The @file may be NULL, e.g.* if mapping anonymous memory.*@file contains the file structure for file to map (may be NULL).*@reqprot contains the protection requested by the application.
smack_file_set_fownersmack_file_set_fowner - set the file security blob value*@file: object in question
smack_sk_alloc_securitysmack_sk_alloc_security - Allocate a socket blob*@sk: the socket*@family: unused*@gfp_flags: memory allocation flags* Assign Smack pointers to current* Returns 0 on success, -ENOMEM is there's no memory
smack_msg_msg_alloc_securitysmack_msg_msg_alloc_security - Set the security blob for msg_msg*@msg: the object* Returns 0
smack_ipc_alloc_securitysmack_ipc_alloc_security - Set the security blob for ipc*@isp: the object* Returns 0
smack_d_instantiatesmack_d_instantiate - Make sure the blob is correct on an inode*@opt_dentry: dentry where inode will be attached*@inode: the object* Set the inode's security blob if it hasn't been done already.
smack_sock_graftsmack_sock_graft - Initialize a newly created socket with an existing sock*@sk: child sock*@parent: parent socket* Set the smk_{in,out} state of an existing sock based on the process that* is creating the new socket.
smk_netlabel_audit_setsmk_netlabel_audit_set - fill a netlbl_audit struct*@nap: structure to fill