/external/selinux/libsepol/cil/src/ |
cil_post.c | 755 static int __evaluate_permissionx_expression(struct cil_permissionx *permx, struct cil_db *db) 759 permx->perms = cil_malloc(sizeof(*permx->perms)); 760 ebitmap_init(permx->perms); 762 rc = __cil_expr_to_bitmap(permx->expr_str, permx->perms, 0x10000, db); // max is one more than 0xFFFF 765 ebitmap_destroy(permx->perms); 766 free(permx->perms); 767 permx->perms = NULL; 1267 rc = __evaluate_permissionx_expression(rule->perms.x.permx, db) 1273 struct cil_permissionx *permx = node->data; local [all...] |
cil_write_ast.c | 377 static int cil_unfill_permx(struct cil_permissionx *permx, char **out_str) { 383 switch (permx->kind) { 388 cil_log(CIL_ERR, "Unknown permissionx kind: %d\n", permx->kind); 393 obj = permx->obj_str; 394 rc = cil_unfill_expr(permx->expr_str, &expr, 1); 778 rc = cil_unfill_permx(avrule->perms.x.permx, &xperms); [all...] |
cil_find.c | 339 if (cil_permissionx_match_any(avrule->perms.x.permx, target->perms.x.permx)) {
|
cil_verify.c | 1230 int __cil_verify_permissionx(struct cil_permissionx *permx, struct cil_tree_node *node) 1239 switch (permx->kind) { 1244 cil_tree_log(node, CIL_ERR, "Invalid permissionx kind (%d)", permx->kind); 1249 classes = cil_expand_class(permx->obj); 1280 return __cil_verify_permissionx(avrulex->perms.x.permx, node); [all...] |
cil.c | [all...] |
cil_internal.h | 604 struct cil_permissionx *permx; member in struct:cil_avrule::__anon30572::__anon30573 1002 void cil_permissionx_init(struct cil_permissionx **permx);
|
cil_binary.c | [all...] |
cil_build_ast.c | 2100 struct cil_permissionx *permx = NULL; local [all...] |
cil_policy.c | 1106 static void cil_xperms_to_policy(FILE *out, struct cil_permissionx *permx) 1113 if (permx->kind == CIL_PERMX_KIND_IOCTL) { 1119 fprintf(out, "%s %s {", DATUM(permx->obj)->fqn, kind); 1121 ebitmap_for_each_bit(permx->perms, node, i) { 1122 if (!ebitmap_get_bit(permx->perms, i)) 1184 cil_xperms_to_policy(out, rule->perms.x.permx); [all...] |
cil_copy_ast.c | 833 cil_permissionx_init(&new->perms.x.permx); 834 cil_copy_fill_permissionx(db, orig->perms.x.permx, new->perms.x.permx); [all...] |
cil_build_ast.h | 116 void cil_destroy_permissionx(struct cil_permissionx *permx);
|
cil_resolve_ast.c | 294 int cil_resolve_permissionx(struct cil_tree_node *current, struct cil_permissionx *permx, void *extra_args) 299 rc = cil_resolve_name(current, permx->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); 303 permx->obj = (struct cil_class*)obj_datum; 358 rule->perms.x.permx = (struct cil_permissionx*)permx_datum; 360 rc = cil_resolve_permissionx(current, rule->perms.x.permx, extra_args); [all...] |