Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:55:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Convert a file to an access vector and include the correct open* open permission.
Proto:static inline unsigned int open_file_to_av(struct file *file)
Type:unsigned int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | file |
| 2034 | inode = file_inode(file) |
| 2036 | If selinux_policycap_openperm() && s_magic != SOCKFS_MAGIC Then av |= FILE__OPEN |
| 2040 | Return av |
| Name | Describe |
|---|---|
| selinux_file_open |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |