Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:54:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:inode_mode_to_security_class

Proto:static inline u16 inode_mode_to_security_class(umode_t mode)

Type:u16

Parameter:

TypeParameterName
umode_tmode
1149  Case & == S_IFSOCK
1150  Return SECCLASS_SOCK_FILE
1151  Case & == S_IFLNK
1152  Return SECCLASS_LNK_FILE
1153  Case & == S_IFREG
1154  Return SECCLASS_FILE
1155  Case & == S_IFBLK
1156  Return SECCLASS_BLK_FILE
1157  Case & == S_IFDIR
1158  Return SECCLASS_DIR
1159  Case & == S_IFCHR
1160  Return SECCLASS_CHR_FILE
1161  Case & == S_IFIFO
1162  Return SECCLASS_FIFO_FILE
1166  Return SECCLASS_FILE
Caller
NameDescribe
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