函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_inode_post_setxattr

函数原型:static void selinux_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)

返回类型:void

参数:

类型参数名称
struct dentry *dentry
const char *name
const void *value
size_tsize
intflags
3231  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
3236  如果字符串比较
3238  返回
3241  如果非initialized
3247  返回
3250  rc等于security_context_to_sid_force( & selinux_state, value, size, & newsid)
3252  如果rc
3253  打印错误信息("SELinux: unable to map context to SIDfor (%s, %lu), rc=%d\n", s_id, Stat data, not accessed from path walking , - rc)
3256  返回
3259  isec等于Get the security label of a dentry's backing inode.
3260  加自旋锁
3261  security class of this object 等于inode_mode_to_security_class(i_mode)
3262  SID of this object 等于newsid
3263  initialization flag 等于 initialized
3264  自旋锁解锁
3266  返回