Lines Matching refs:xperms
1621 av_extended_perms_t *xperms) in find_avtab_node() argument
1632 if ((node->datum.xperms->specified == xperms->specified) && in find_avtab_node()
1633 (node->datum.xperms->driver == xperms->driver)) { in find_avtab_node()
1798 avtab_extended_perms_t *xperms = avdatump->xperms; in allocate_xperms() local
1799 if (!xperms) { in allocate_xperms()
1800 xperms = (avtab_extended_perms_t *) in allocate_xperms()
1802 if (!xperms) { in allocate_xperms()
1806 avdatump->xperms = xperms; in allocate_xperms()
1811 xperms->specified = AVTAB_XPERMS_IOCTLFUNCTION; in allocate_xperms()
1814 xperms->specified = AVTAB_XPERMS_IOCTLDRIVER; in allocate_xperms()
1820 xperms->driver = extended_perms->driver; in allocate_xperms()
1821 for (i = 0; i < ARRAY_SIZE(xperms->perms); i++) in allocate_xperms()
1822 xperms->perms[i] |= extended_perms->perms[i]; in allocate_xperms()
1916 dest_avtab, enabled, source_rule->xperms); in expand_rule_helper()
1934 dest_avtab, enabled, source_rule->xperms); in expand_rule_helper()
2649 av_extended_perms_t *xperms = NULL; in copy_neverallow() local
2706 if (source_rule->xperms) { in copy_neverallow()
2707 xperms = calloc(1, sizeof(av_extended_perms_t)); in copy_neverallow()
2708 if (!xperms) in copy_neverallow()
2710 memcpy(xperms, source_rule->xperms, sizeof(av_extended_perms_t)); in copy_neverallow()
2711 avrule->xperms = xperms; in copy_neverallow()
2739 free(xperms); in copy_neverallow()
3224 avtab_extended_perms_t *xperms; in expand_avtab_insert() local
3235 if ((node->datum.xperms->specified == d->xperms->specified) && in expand_avtab_insert()
3236 (node->datum.xperms->driver == d->xperms->driver)) { in expand_avtab_insert()
3259 xperms = node->datum.xperms; in expand_avtab_insert()
3271 for (i = 0; i < ARRAY_SIZE(xperms->perms); i++) in expand_avtab_insert()
3272 xperms->perms[i] |= d->xperms->perms[i]; in expand_avtab_insert()