Home
last modified time | relevance | path

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

/external/selinux/libsepol/include/sepol/policydb/
Dmls_types.h41 typedef struct mls_level { struct
50 static inline int mls_level_cpy(struct mls_level *dst, struct mls_level *src) in mls_level_cpy() argument
59 static inline void mls_level_init(struct mls_level *level) in mls_level_init()
65 static inline void mls_level_destroy(struct mls_level *level) in mls_level_destroy()
75 static inline int mls_level_eq(const struct mls_level *l1, const struct mls_level *l2) in mls_level_eq()
80 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
116 return user->mls_level; in hidden_def()
122 sepol_user_t * user, const char *mls_level) in hidden_def()
125 char *tmp_mls_level = strdup(mls_level); in hidden_def()
131 free(user->mls_level); in hidden_def()
132 user->mls_level = tmp_mls_level; in hidden_def()
316 user->mls_level = NULL; in sepol_user_create()
344 if (user->mls_level && in hidden_def()
345 (sepol_user_set_mlslevel(handle, new_user, user->mls_level) < 0)) in hidden_def()
374 free(user->mls_level); in sepol_user_free()
Dmodule_to_cil.c2378 static int level_to_cil(struct policydb *pdb, struct mls_level *level) in level_to_cil()
/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/policycoreutils/mcstrans/utils/
DMakefile24 LDLIBS += -L../src ../src/mcstrans.o ../src/mls_level.o -lselinux -lpcre $(LIBDIR)/libsepol.a
/external/selinux/libsepol/cil/src/
Dcil_binary.c858 mls_level_t *mls_level = NULL; in cil_sensitivityorder_to_policydb() local
863 mls_level = cil_malloc(sizeof(*mls_level)); in cil_sensitivityorder_to_policydb()
865 mls_level_init(mls_level); in cil_sensitivityorder_to_policydb()
872 mls_level->sens = value; in cil_sensitivityorder_to_policydb()
873 sepol_level->level = mls_level; in cil_sensitivityorder_to_policydb()
880 mls_level_destroy(mls_level); in cil_sensitivityorder_to_policydb()
882 free(mls_level); in cil_sensitivityorder_to_policydb()
891 mls_level_t *mls_level = NULL; in cil_sensalias_to_policydb() local
905 mls_level = cil_malloc(sizeof(*mls_level)); in cil_sensalias_to_policydb()
906 mls_level_init(mls_level); in cil_sensalias_to_policydb()
[all …]
Dcil_binary.h451 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level);
/external/selinux/libsemanage/include/semanage/
Duser_record.h52 const char *mls_level);
/external/selinux/libsepol/include/sepol/
Duser_record.h44 sepol_user_t * user, const char *mls_level);
/external/selinux/policycoreutils/mcstrans/src/
DMakefile22 PROG_SRC=mcstrans.c mcscolor.c mcstransd.c mls_level.c