Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_inode_post_setxattr - Apply the Smack update approved above*@dentry: object*@name: attribute name*@value: attribute value*@size: attribute size*@flags: unused* Set the pointer in the inode blob to the entry found* in the master label list.

Proto:static void smack_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
const char *name
const void *value
size_tsize
intflags
1323  isp = smack_inode(d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper)
1325  If strcmp(name, XATTR_NAME_SMACKTRANSMUTE) == 0 Then
1326  smack inode flags |= directory is transmuting
1327  Return
1330  If strcmp(name, XATTR_NAME_SMACK) == 0 Then
1331  skp = smk_import_entry(value, size)
1332  If Not IS_ERR(skp) Then label of the fso = skp
1334  Else if strcmp(name, XATTR_NAME_SMACKEXEC) == 0 Then
1335  skp = smk_import_entry(value, size)
1336  If Not IS_ERR(skp) Then label of the task = skp
1338  Else if strcmp(name, XATTR_NAME_SMACKMMAP) == 0 Then
1339  skp = smk_import_entry(value, size)
1340  If Not IS_ERR(skp) Then label of the mmap domain = skp
1344  Return