Lines Matching refs:xperms

93 				      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()
604 xperms->len = 1; in services_compute_xperms_drivers()
616 struct extended_perms *xperms) in context_struct_compute_av() argument
630 if (xperms) { in context_struct_compute_av()
631 memset(&xperms->drivers, 0, sizeof(xperms->drivers)); in context_struct_compute_av()
632 xperms->len = 0; in context_struct_compute_av()
664 else if (xperms && (node->key.specified & AVTAB_XPERMS)) in context_struct_compute_av()
665 services_compute_xperms_drivers(xperms, node); in context_struct_compute_av()
670 avd, xperms); in context_struct_compute_av()
950 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLFUNCTION) { in services_compute_xperms_decision()
951 if (xpermd->driver != node->datum.u.xperms->driver) in services_compute_xperms_decision()
953 } else if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLDRIVER) { in services_compute_xperms_decision()
954 if (!security_xperm_test(node->datum.u.xperms->perms.p, in services_compute_xperms_decision()
963 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLDRIVER) { in services_compute_xperms_decision()
967 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLFUNCTION) { in services_compute_xperms_decision()
970 node->datum.u.xperms->perms.p[i]; in services_compute_xperms_decision()
974 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLDRIVER) { in services_compute_xperms_decision()
978 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLFUNCTION) { in services_compute_xperms_decision()
981 node->datum.u.xperms->perms.p[i]; in services_compute_xperms_decision()
985 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLDRIVER) { in services_compute_xperms_decision()
989 if (node->datum.u.xperms->specified == AVTAB_XPERMS_IOCTLFUNCTION) { in services_compute_xperms_decision()
992 node->datum.u.xperms->perms.p[i]; in services_compute_xperms_decision()
1098 struct extended_perms *xperms) in security_compute_av() argument
1109 xperms->len = 0; in security_compute_av()
1141 xperms); in security_compute_av()