Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:58:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Check whether a task has the ioctl permission and cmd* operation to an inode.
Proto:static int ioctl_has_perm(const struct cred *cred, struct file *file, unsigned int requested, u16 cmd)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct cred * | cred | |
| struct file * | file | |
| unsigned int | requested | |
| u16 | cmd |
| 3576 | fsec = selinux_file(file) |
| 3577 | inode = file_inode(file) |
| 3585 | type = LSM_AUDIT_DATA_IOCTL_OP |
| 3590 | If ssid != SID of open file description Then |
| 3600 | If Value for the false possibility is greater at compile time(IS_PRIVATE(inode)) Then Return 0 |
| 3604 | rc = The avc extended permissions logic adds an additional 256 bits of* permissions to an avc node when extended permissions for that node are* specified in the avtab |
| 3607 | out : |
| 3608 | Return rc |
| Name | Describe |
|---|---|
| selinux_file_ioctl |
| 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 |