Lines Matching refs:xperms
99 struct extended_perms *xperms);
589 struct extended_perms *xperms, in services_compute_xperms_drivers() argument
594 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLDRIVER) { in services_compute_xperms_drivers()
596 for (i = 0; i < ARRAY_SIZE(xperms->drivers.p); i++) in services_compute_xperms_drivers()
597 xperms->drivers.p[i] |= node->datum.u.xperms->perms.p[i]; in services_compute_xperms_drivers()
598 } else if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLFUNCTION) { in services_compute_xperms_drivers()
600 security_xperm_set(xperms->drivers.p, in services_compute_xperms_drivers()
601 node->datum.u.xperms->driver); in services_compute_xperms_drivers()
606 xperms->len = 1; in services_compute_xperms_drivers()
618 struct extended_perms *xperms) in context_struct_compute_av() argument
632 if (xperms) { in context_struct_compute_av()
633 memset(&xperms->drivers, 0, sizeof(xperms->drivers)); in context_struct_compute_av()
634 xperms->len = 0; in context_struct_compute_av()
667 else if (xperms && (node->key.specified & AVTAB_XPERMS)) in context_struct_compute_av()
668 services_compute_xperms_drivers(xperms, node); in context_struct_compute_av()
673 avd, xperms); in context_struct_compute_av()
949 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLFUNCTION) { in services_compute_xperms_decision()
950 if (xpermd->driver != node->datum.u.xperms->driver) in services_compute_xperms_decision()
952 } else if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLDRIVER) { in services_compute_xperms_decision()
953 if (!security_xperm_test(node->datum.u.xperms->perms.p, in services_compute_xperms_decision()
962 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLDRIVER) { in services_compute_xperms_decision()
966 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLFUNCTION) { in services_compute_xperms_decision()
969 node->datum.u.xperms->perms.p[i]; in services_compute_xperms_decision()
973 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLDRIVER) { in services_compute_xperms_decision()
977 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLFUNCTION) { in services_compute_xperms_decision()
980 node->datum.u.xperms->perms.p[i]; in services_compute_xperms_decision()
984 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLDRIVER) { in services_compute_xperms_decision()
988 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLFUNCTION) { in services_compute_xperms_decision()
991 node->datum.u.xperms->perms.p[i]; in services_compute_xperms_decision()
1097 struct extended_perms *xperms) in security_compute_av() argument
1106 xperms->len = 0; in security_compute_av()
1138 xperms); in security_compute_av()