Function report |
Source Code:security\selinux\avc.c |
Create Date:2022-07-28 18:44:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int avc_has_extended_perms(struct selinux_state *state, unsigned int ssid, unsigned int tsid, u16 tclass, unsigned int requested, u8 driver, u8 xperm, struct common_audit_data *ad)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct selinux_state * | state | |
| unsigned int | ssid | |
| unsigned int | tsid | |
| u16 | tclass | |
| unsigned int | requested | |
| u8 | driver | |
| u8 | xperm | |
| struct common_audit_data * | ad |
| 1040 | struct extended_perms_decision * xpd = NULL |
| 1046 | rc = 0 |
| 1048 | xp_node = local_xp_node |
| 1055 | If Value for the false possibility is greater at compile time(!node) Then |
| 1057 | Else |
| 1062 | If Not xp_node || Not length associated decision chain Then Go to decision |
| 1066 | auditallow = auditallow |
| 1069 | xpd = sing a linked list for extended_perms_decision lookup because the list is* always small. i.e. less than 5, typically 1 |
| 1070 | If Value for the false possibility is greater at compile time(!xpd) Then |
| 1075 | If Not security_xperm_test(p, driver) Then |
| 1086 | Else |
| 1091 | If Not avc_xperms_has_perm(xpd, xperm, XPERMS_ALLOWED) Then allowed &= ~requested |
| 1094 | decision : |
| 1096 | If Value for the false possibility is greater at compile time(denied) Then rc = avc_denied(state, ssid, tsid, tclass, requested, driver, xperm, update extended permissions , & avd) |
| 1106 | Return rc |
| Name | Describe |
|---|---|
| ioctl_has_perm | Check whether a task has the ioctl permission and cmd* operation to an inode. |
| 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 |