Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_dentry_create_files_as

Proto:static int smack_dentry_create_files_as(struct dentry *dentry, int mode, struct qstr *name, const struct cred *old, struct cred *new)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
intmode
struct qstr *name
const struct cred *old
struct cred *new
4549  otsp = smack_cred(old)
4550  ntsp = smack_cred(new)
4558  label for access control = label for access control
4563  isp = smack_inode(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.)
4565  If smack inode flags & directory is transmuting Then
4566  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
4567  may = These functions are in smack_access.c
4570  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
4577  If may > 0 && may & Controls directory labeling Then label for access control = label of the fso
4580  Return 0