函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_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.

函数原型:static void smack_d_instantiate(struct dentry *opt_dentry, struct inode *inode)

返回类型:void

参数:

类型参数名称
struct dentry *opt_dentry
struct inode *inode
3269  ckp等于Present a pointer to the smack label in the current task blob.
3272  transflag等于0
3276  如果(inode == NULL)则返回
3279  isp等于smack_inode(inode)
3281  mutex_lock( & itialization lock )
3286  如果smack inode flags 按位与de is instantiated 则转到:unlockandout
3289  sbp等于i_sb
3290  sbsp等于s_security
3295  final等于smk_default
3303  如果 parent directory 恒等于opt_dentry
3305  :s_magic恒等于CGROUP_SUPER_MAGIC
3315  退出
3316  :s_magic恒等于TMPFS_MAGIC
3322  退出
3323  :s_magic恒等于PIPEFS_MAGIC
3325  退出
3326  :s_magic恒等于SOCKFS_MAGIC
3332  退出
3333  默认
3335  退出
3337  smack inode flags 或等于de is instantiated
3338  转到:unlockandout
3348  :s_magic恒等于"SMAC"
3349  :s_magic恒等于CGROUP_SUPER_MAGIC
3358  final等于smack_known_star
3359  退出
3360  :s_magic恒等于DEVPTS_SUPER_MAGIC
3366  final等于ckp
3367  退出
3368  :s_magic恒等于PROC_SUPER_MAGIC
3373  退出
3374  :s_magic恒等于TMPFS_MAGIC
3380  final等于smack_known_star
3388  默认
3397  如果S_ISSOCK(i_mode)则
3398  final等于smack_known_star
3399  退出
3407  如果非i_opflags按位与IOP_XATTR的值则退出
3414  如果非是错误或空final等于skp
3420  如果S_ISDIR(i_mode)则
3430  如果smack inode flags 按位与smack was transmuted
3436  否则
3440  如果rc大于等于0且字符串指定长度比较不等于0则rc等于负EINVAL
3444  如果rc大于等于0则transflag等于directory is transmuting
3451  如果是错误skp恒等于smack_known_starskp恒等于smack_known_webskp = NULL
3454  label of the task 等于skp
3457  如果是错误skp恒等于smack_known_starskp恒等于smack_known_webskp = NULL
3462  dput(dp)
3463  退出
3466  如果(final == NULL)则label of the fso 等于ckp
3468  否则label of the fso 等于final
3471  smack inode flags 或等于de is instantiated 按位或transflag
3473  unlockandout :
3474  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
3475  返回