Home
last modified time | relevance | path

Searched refs:mls_level_t (Results 1 – 15 of 15) sorted by relevance

/external/selinux/mcstrans/src/
Dmls_level.c5 mls_level_t *mls_level_from_string(char *mls_context) in mls_level_from_string()
9 mls_level_t *l; in mls_level_from_string()
15 l = (mls_level_t *) calloc(1, sizeof(mls_level_t)); in mls_level_from_string()
81 unsigned int mls_compute_string_len(mls_level_t *l) in mls_compute_string_len()
117 char *mls_level_to_string(mls_level_t *l) in mls_level_to_string()
Dmls_level.h6 unsigned int mls_compute_string_len(mls_level_t *r);
7 mls_level_t *mls_level_from_string(char *mls_context);
8 char *mls_level_to_string(mls_level_t *r);
Dmcstrans.c99 mls_level_t *level;
227 mls_level_t *
229 mls_level_t *mls = calloc(1, sizeof(mls_level_t)); in parse_raw()
525 violates_constraints(mls_level_t *l) { in violates_constraints()
604 mls_level_t *level = parse_raw(raw); in add_base_classification()
1103 mls_level_t *mraw = NULL; in compute_raw_from_trans()
1132 mraw = malloc(sizeof(mls_level_t)); in compute_raw_from_trans()
1289 mls_level_t *l = NULL; in compute_trans_from_raw()
/external/selinux/libsepol/include/sepol/policydb/
Dmls_types.h47 } mls_level_t; typedef
50 mls_level_t level[2]; /* low == level[0], high == level[1] */
89 memset(level, 0, sizeof(mls_level_t)); in mls_level_init()
Dexpand.h68 extern int mls_semantic_level_expand(mls_semantic_level_t *sl, mls_level_t *l,
Dpolicydb.h211 mls_level_t exp_dfltlevel; /* expanded range used for validation */
217 mls_level_t *level; /* sensitivity and associated categories */
/external/selinux/libsepol/src/
Dmls.c513 mls_level_t *fromcon_sen = &(fromcon->range.level[0]); in mls_setup_user_range()
514 mls_level_t *fromcon_clr = &(fromcon->range.level[1]); in mls_setup_user_range()
515 mls_level_t *user_low = &(user->exp_range.level[0]); in mls_setup_user_range()
516 mls_level_t *user_clr = &(user->exp_range.level[1]); in mls_setup_user_range()
517 mls_level_t *user_def = &(user->exp_dfltlevel); in mls_setup_user_range()
518 mls_level_t *usercon_sen = &(usercon->range.level[0]); in mls_setup_user_range()
519 mls_level_t *usercon_clr = &(usercon->range.level[1]); in mls_setup_user_range()
Dexpand.c881 int mls_semantic_level_expand(mls_semantic_level_t * sl, mls_level_t * l, in mls_semantic_level_expand()
1025 mls_level_t tmp_level; in user_copy_callback()
1143 new_level->level = (mls_level_t *) malloc(sizeof(mls_level_t)); in sens_copy_callback()
Dpolicydb.c1975 static int mls_level_to_semantic(mls_level_t * l, mls_semantic_level_t * sl) in mls_level_to_semantic()
3109 static int mls_read_level(mls_level_t * lp, struct policy_file *fp) in mls_read_level()
3252 levdatum->level = malloc(sizeof(mls_level_t)); in sens_read()
Dservices.c397 mls_level_t *l1, *l2; in constraint_expr_eval_reason()
Dwrite.c404 static int mls_write_level(mls_level_t * l, struct policy_file *fp) in mls_write_level()
/external/selinux/libsepol/cil/src/
Dcil_binary.h475 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level);
Dcil_binary.c859 mls_level_t *mls_level = NULL; in cil_sensitivityorder_to_policydb()
892 mls_level_t *mls_level = NULL; in cil_sensalias_to_policydb()
2854 int __cil_cats_to_mls_level(policydb_t *pdb, struct cil_cats *cats, mls_level_t *mls_level) in __cil_cats_to_mls_level()
2892 mls_level_t *mls_level = NULL; in cil_sepol_level_define()
2920 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level) in cil_level_to_mls_level()
2952 mls_level_t *mls_level = NULL; in __cil_levelrange_to_mls_range()
/external/selinux/checkpolicy/
Dpolicy_define.c709 mls_level_t *level = 0; in define_sens()
734 level = (mls_level_t *) malloc(sizeof(mls_level_t)); in define_sens()
1011 mls_level_t *level = (mls_level_t *) arg, *newlevel; in clone_level()
1017 newlevel = (mls_level_t *) malloc(sizeof(mls_level_t)); in clone_level()
Dmodule_compiler.c1045 level->level = malloc(sizeof(mls_level_t)); in require_sens()