/external/selinux/libsepol/src/ |
util.c | 124 char *sepol_extended_perms_to_string(avtab_extended_perms_t *xperms) 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->driver<<8 | low_bit [all...] |
avtab.c | 96 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, except in the case o 442 avtab_extended_perms_t xperms; local [all...] |
assertion.c | 148 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...] |
expand.c | 1788 avtab_extended_perms_t *xperms; local 2600 av_extended_perms_t *xperms = NULL; local 3175 avtab_extended_perms_t *xperms; local [all...] |
write.c | 240 buf8 = cur->datum.xperms->specified; 244 buf8 = cur->datum.xperms->driver; 248 for (i = 0; i < ARRAY_SIZE(cur->datum.xperms->perms); i++) 249 buf32[i] = cpu_to_le32(cur->datum.xperms->perms[i]); [all...] |
/external/selinux/libsepol/include/sepol/policydb/ |
util.h | 35 char *sepol_extended_perms_to_string(avtab_extended_perms_t *xperms);
|
avtab.h | 84 avtab_extended_perms_t *xperms; member in struct:avtab_datum
|
policydb.h | 283 av_extended_perms_t *xperms; member in struct:avrule
|
/external/selinux/checkpolicy/ |
policy_define.c | 2102 av_extended_perms_t *xperms; local 2140 av_extended_perms_t *xperms; local 2182 av_extended_perms_t *xperms; local 2304 av_extended_perms_t *complete_driver, *partial_driver, *xperms; local [all...] |
policy_parse.y | 484 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 [all...] |
/external/selinux/libsepol/cil/src/ |
cil_binary.c | 4391 struct cil_list *xperms = NULL; local [all...] |
/external/selinux/checkpolicy/test/ |
dispol.c | 158 fprintf(fp, "%s;\n", sepol_extended_perms_to_string(datum->xperms));
|