函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:inode_mode_to_security_class

函数原型:static inline u16 inode_mode_to_security_class(umode_t mode)

返回类型:u16

参数:

类型参数名称
umode_tmode
1149  : & == S_IFSOCK
1150  返回:SECCLASS_SOCK_FILE
1151  : & == S_IFLNK
1152  返回:SECCLASS_LNK_FILE
1153  : & == S_IFREG
1154  返回:SECCLASS_FILE
1155  : & == S_IFBLK
1156  返回:SECCLASS_BLK_FILE
1157  : & == S_IFDIR
1158  返回:SECCLASS_DIR
1159  : & == S_IFCHR
1160  返回:SECCLASS_CHR_FILE
1161  : & == S_IFIFO
1162  返回:SECCLASS_FIFO_FILE
1166  返回:SECCLASS_FILE
调用者
名称描述
inode_doinit_with_dentry
selinux_dentry_init_security
selinux_dentry_create_files_as
selinux_inode_init_security
selinux_inode_mknod
selinux_inode_post_setxattr
selinux_inode_setsecurity
selinux_kernfs_init_securitykernfs node operations
selinux_task_to_inode