Searched defs:xperms (Results 1 - 9 of 9) sorted by relevance

/external/selinux/libsepol/include/sepol/policydb/
H A Davtab.h84 avtab_extended_perms_t *xperms; member in struct:avtab_datum
H A Dpolicydb.h283 av_extended_perms_t *xperms; member in struct:avrule
/external/selinux/libsepol/src/
H A Dassertion.c148 avtab_extended_perms_t *xperms; local
171 xperms = node->datum.xperms;
172 if ((xperms->specified != AVTAB_XPERMS_IOCTLFUNCTION)
173 && (xperms->specified != AVTAB_XPERMS_IOCTLDRIVER))
176 rc = check_extended_permissions(avrule->xperms, xperms);
179 extended_permissions_violated(&error, avrule->xperms, xperms);
329 avtab_extended_perms_t *xperms; local
[all...]
H A Dutil.c124 char *sepol_extended_perms_to_string(avtab_extended_perms_t *xperms) argument
137 if ((xperms->specified != AVTAB_XPERMS_IOCTLFUNCTION)
138 && (xperms->specified != AVTAB_XPERMS_IOCTLDRIVER))
145 for (bit = 0; bit < sizeof(xperms->perms)*8; bit++) {
146 if (!xperm_test(bit, xperms->perms))
149 if (in_range && next_bit_in_range(bit, xperms->perms)) {
152 } else if (next_bit_in_range(bit, xperms->perms)) {
159 if (xperms->specified & AVTAB_XPERMS_IOCTLFUNCTION) {
160 value = xperms->driver<<8 | bit;
161 low_value = xperms
[all...]
H A Davtab.c96 avtab_extended_perms_t *xperms; local
105 xperms = calloc(1, sizeof(avtab_extended_perms_t));
106 if (xperms == NULL) {
110 if (datum->xperms) /* else caller populates xperms */
111 *xperms = *(datum->xperms);
113 newnode->datum.xperms = xperms;
114 /* data is usually ignored with xperms, excep
442 avtab_extended_perms_t xperms; local
[all...]
H A Dexpand.c1607 av_extended_perms_t *xperms)
1618 if ((node->datum.xperms->specified == xperms->specified) &&
1619 (node->datum.xperms->driver == xperms->driver)) {
1788 avtab_extended_perms_t *xperms; local
1858 if (!avdatump->xperms) {
1859 xperms = (avtab_extended_perms_t *)
1861 if (!xperms) {
1865 node->datum.xperms
1604 find_avtab_node(sepol_handle_t * handle, avtab_t * avtab, avtab_key_t * key, cond_av_list_t ** cond, av_extended_perms_t *xperms) argument
2600 av_extended_perms_t *xperms = NULL; local
3175 avtab_extended_perms_t *xperms; local
[all...]
/external/selinux/checkpolicy/
H A Dpolicy_parse.y484 xperm_allow_def : ALLOWXPERM names names ':' names identifier xperms ';'
487 xperm_auditallow_def : AUDITALLOWXPERM names names ':' names identifier xperms ';'
490 xperm_dontaudit_def : DONTAUDITXPERM names names ':' names identifier xperms ';'
493 xperm_neverallow_def : NEVERALLOWXPERM names names ':' names identifier xperms ';'
760 xperms : xperm label
H A Dpolicy_define.c1960 avrule->xperms = NULL;
2056 av_extended_perms_t *xperms)
2064 xperms->perms[i] |= ~0U;
2067 xperms->perms[i] |= XPERM_SETBITS(h);
2070 xperms->perms[i] |= ~0U - XPERM_SETBITS(low);
2073 xperms->perms[i] |= XPERM_SETBITS(h) - XPERM_SETBITS(low);
2077 int avrule_xperms_used(av_extended_perms_t *xperms) argument
2081 for (i = 0; i < sizeof(xperms->perms)/sizeof(xperms->perms[0]); i++) {
2082 if (xperms
2055 avrule_xperm_setrangebits(uint16_t low, uint16_t high, av_extended_perms_t *xperms) argument
2102 av_extended_perms_t *xperms; local
2140 av_extended_perms_t *xperms; local
2182 av_extended_perms_t *xperms; local
2239 xperms_for_each_bit(unsigned int *bit, av_extended_perms_t *xperms) argument
2304 av_extended_perms_t *complete_driver, *partial_driver, *xperms; local
[all...]
/external/selinux/libsepol/cil/src/
H A Dcil_binary.c1460 void __avrule_xperm_setrangebits(uint16_t low, uint16_t high, struct avtab_extended_perms *xperms) argument
1468 xperms->perms[i] |= ~0U;
1471 xperms->perms[i] |= XPERM_SETBITS(h);
1474 xperms->perms[i] |= ~0U - XPERM_SETBITS(low);
1477 xperms->perms[i] |= XPERM_SETBITS(h) - XPERM_SETBITS(low);
1485 int __cil_permx_bitmap_to_sepol_xperms_list(ebitmap_t *xperms, struct cil_list **xperms_list) argument
1498 ebitmap_for_each_bit(xperms, node, i) {
1499 if (!ebitmap_get_bit(xperms, i)) continue;
1507 if (IOC_FUNC(i) != 0xff && ebitmap_get_bit(xperms, i + 1)) {
1583 avtab_datum.xperms
1610 __cil_avrulex_ioctl_to_hashtable(hashtab_t h, uint16_t kind, uint32_t src, uint32_t tgt, uint32_t obj, ebitmap_t *xperms) argument
4391 struct cil_list *xperms = NULL; local
[all...]

Completed in 173 milliseconds