Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack.h Create Date:2022-07-28 19:19:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Present a pointer to the smack label in the current task blob.

Proto:static inline struct smack_known *smk_of_current(void)

Type:struct smack_known

Parameter:Nothing

430  Return Present a pointer to the smack label entry in an task blob.
Caller
NameDescribe
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