Home
last modified time | relevance | path

Searched refs:mls_level (Results 1 – 16 of 16) sorted by relevance

/external/selinux/libsepol/include/sepol/policydb/
Dmls_types.h44 typedef struct mls_level { struct
77 static inline int mls_level_cpy(struct mls_level *dst, struct mls_level *src) in mls_level_cpy()
86 static inline void mls_level_init(struct mls_level *level) in mls_level_init()
92 static inline void mls_level_destroy(struct mls_level *level) in mls_level_destroy()
102 static inline int mls_level_eq(const struct mls_level *l1, const struct mls_level *l2) in mls_level_eq()
107 static inline int mls_level_dom(const struct mls_level *l1, const struct mls_level *l2) in mls_level_dom()
/external/selinux/libsepol/src/
Duser_record.c13 char *mls_level; member
124 return user->mls_level; in hidden_def()
130 sepol_user_t * user, const char *mls_level) in hidden_def()
133 char *tmp_mls_level = strdup(mls_level); in hidden_def()
139 free(user->mls_level); in hidden_def()
140 user->mls_level = tmp_mls_level; in hidden_def()
326 user->mls_level = NULL; in sepol_user_create()
354 if (user->mls_level && in hidden_def()
355 (sepol_user_set_mlslevel(handle, new_user, user->mls_level) < 0)) in hidden_def()
384 free(user->mls_level); in sepol_user_free()
Dkernel_to_conf.c1855 static char *level_to_str(struct policydb *pdb, struct mls_level *level) in level_to_str()
Dkernel_to_cil.c1875 static char *level_to_str(struct policydb *pdb, struct mls_level *level) in level_to_str()
Dmodule_to_cil.c2475 static int level_to_cil(struct policydb *pdb, struct mls_level *level) in level_to_cil()
/external/selinux/mcstrans/utils/
DMakefile16 transcon: transcon.o ../src/mcstrans.o ../src/mls_level.o $(LIBSEPOLA)
19 untranscon: untranscon.o ../src/mcstrans.o ../src/mls_level.o $(LIBSEPOLA)
/external/selinux/libsemanage/src/
Dusers_base_file.c31 const char *mls_level = semanage_user_base_get_mlslevel(user); in user_base_print() local
49 if (mls_level != NULL && mls_range != NULL) in user_base_print()
50 if (fprintf(str, "level %s range %s", mls_level, mls_range) < 0) in user_base_print()
Duser_base_record.c84 const char *mls_level) in semanage_user_base_set_mlslevel() argument
87 return sepol_user_set_mlslevel(handle->sepolh, user, mls_level); in semanage_user_base_set_mlslevel()
Duser_record.c155 semanage_user_t * user, const char *mls_level) in hidden_def()
158 return semanage_user_base_set_mlslevel(handle, user->base, mls_level); in hidden_def()
Duser_internal.h103 const char *mls_level);
/external/selinux/libsepol/cil/src/
Dcil_binary.c859 mls_level_t *mls_level = NULL; in cil_sensitivityorder_to_policydb() local
864 mls_level = cil_malloc(sizeof(*mls_level)); in cil_sensitivityorder_to_policydb()
866 mls_level_init(mls_level); in cil_sensitivityorder_to_policydb()
873 mls_level->sens = value; in cil_sensitivityorder_to_policydb()
874 sepol_level->level = mls_level; in cil_sensitivityorder_to_policydb()
881 mls_level_destroy(mls_level); in cil_sensitivityorder_to_policydb()
883 free(mls_level); in cil_sensitivityorder_to_policydb()
892 mls_level_t *mls_level = NULL; in cil_sensalias_to_policydb() local
906 mls_level = cil_malloc(sizeof(*mls_level)); in cil_sensalias_to_policydb()
907 mls_level_init(mls_level); in cil_sensalias_to_policydb()
[all …]
Dcil_binary.h475 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level);
/external/selinux/mcstrans/src/
DMakefile14 PROG_SRC=mcstrans.c mcscolor.c mcstransd.c mls_level.c
/external/selinux/libsepol/include/sepol/
Duser_record.h45 sepol_user_t * user, const char *mls_level);
/external/selinux/libsemanage/include/semanage/
Duser_record.h52 const char *mls_level);
/external/selinux/python/sepolicy/sepolicy/
D__init__.py263 'level': str(x.mls_level),