函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_dentry_create_files_as

函数原型:static int smack_dentry_create_files_as(struct dentry *dentry, int mode, struct qstr *name, const struct cred *old, struct cred *new)

返回类型:int

参数:

类型参数名称
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(获得目录项的索引节点)
4565  如果smack inode flags 按位与directory is transmuting
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  如果may大于0且may按位与Controls directory labeling label for access control 等于label of the fso
4580  返回:0