Home
last modified time | relevance | path

Searched refs:mls_range (Results 1 – 25 of 30) sorted by relevance

12

/external/selinux/libsemanage/src/
Dseuser_record.c31 char *mls_range; member
160 return seuser->mls_range; in semanage_seuser_get_mlsrange()
166 const char *mls_range) in semanage_seuser_set_mlsrange() argument
169 char *tmp_mls_range = strdup(mls_range); in semanage_seuser_set_mlsrange()
174 free(seuser->mls_range); in semanage_seuser_set_mlsrange()
175 seuser->mls_range = tmp_mls_range; in semanage_seuser_set_mlsrange()
195 seuser->mls_range = NULL; in semanage_seuser_create()
219 if (seuser->mls_range && in semanage_seuser_clone()
220 (semanage_seuser_set_mlsrange(handle, new_seuser, seuser->mls_range) in semanage_seuser_clone()
243 free(seuser->mls_range); in semanage_seuser_free()
Dseusers_local.c131 const char *mls_range = semanage_seuser_get_mlsrange(data); in semanage_seuser_modify_local() local
144 if (!mls_range && semanage_mls_enabled(handle)) { in semanage_seuser_modify_local()
154 mls_range = semanage_user_get_mlsrange(u); in semanage_seuser_modify_local()
155 rc = semanage_seuser_set_mlsrange(handle, new, mls_range); in semanage_seuser_modify_local()
256 const char *mls_range = semanage_seuser_get_mlsrange(seuser); in validate_handler() local
271 if (mls_range && sepol_policydb_mls_enabled(policydb)) { in validate_handler()
277 if (sepol_mls_check(handle->sepolh, policydb, mls_range) < 0) in validate_handler()
280 user_mls_range, mls_range, &mls_ok) < 0) in validate_handler()
286 mls_range, name, user_mls_range, sename); in validate_handler()
290 } else if (mls_range) { in validate_handler()
[all …]
Dusers_base_file.c32 const char *mls_range = semanage_user_base_get_mlsrange(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()
Dcontext_record.c62 semanage_context_t * con, const char *mls_range) in semanage_context_set_mls() argument
65 return sepol_context_set_mls(handle->sepolh, con, mls_range); in semanage_context_set_mls()
Duser_base_record.c99 const char *mls_range) in semanage_user_base_set_mlsrange() argument
102 return sepol_user_set_mlsrange(handle->sepolh, user, mls_range); in semanage_user_base_set_mlsrange()
Duser_record.c162 semanage_user_t * user, const char *mls_range) in semanage_user_set_mlsrange() argument
165 return semanage_user_base_set_mlsrange(handle, user->base, mls_range); in semanage_user_set_mlsrange()
Duser_internal.h90 const char *mls_range);
/external/selinux/libsepol/include/sepol/policydb/
Dmls_types.h49 typedef struct mls_range { struct
53 static inline int mls_range_glblub(struct mls_range *dst, const struct mls_range *r1, const struct in mls_range_glblub() argument
140 static inline void mls_range_init(struct mls_range *r) in mls_range_init()
146 static inline void mls_range_destroy(struct mls_range *r) in mls_range_destroy()
152 static inline int mls_range_eq(const struct mls_range *r1, const struct mls_range *r2) in mls_range_eq()
/external/selinux/libsepol/src/
Duser_record.c17 char *mls_range; member
145 return user->mls_range; in sepol_user_get_mlsrange()
150 sepol_user_t * user, const char *mls_range) in sepol_user_set_mlsrange() argument
153 char *tmp_mls_range = strdup(mls_range); in sepol_user_set_mlsrange()
159 free(user->mls_range); in sepol_user_set_mlsrange()
160 user->mls_range = tmp_mls_range; in sepol_user_set_mlsrange()
319 user->mls_range = NULL; in sepol_user_create()
349 if (user->mls_range && in sepol_user_clone()
350 (sepol_user_set_mlsrange(handle, new_user, user->mls_range) < 0)) in sepol_user_clone()
376 free(user->mls_range); in sepol_user_free()
Dmls.c610 struct mls_range *r; in mls_compute_sid()
Dkernel_to_conf.c1969 mls_range_t *mls_range = data; in map_range_trans_to_str() local
1979 range = range_to_str(pdb, mls_range); in map_range_trans_to_str()
Dpolicydb.c1435 struct mls_range *rt = (struct mls_range *)datum; in range_tr_destroy()
3624 struct mls_range *r = NULL; in range_read()
Dkernel_to_cil.c1993 mls_range_t *mls_range = data; in map_range_trans_to_str() local
2003 range = range_to_str(pdb, mls_range); in map_range_trans_to_str()
Dwrite.c1680 struct mls_range *r = data; in range_write_helper()
/external/selinux/libsepol/tests/policies/support/
Dmisc_macros.spt9 # gen_user(username, prefix, role_set, mls_defaultlevel, mls_range, [mcs_categories])
/external/selinux/libsemanage/include/semanage/
Dcontext_record.h40 const char *mls_range);
Dseuser_record.h50 const char *mls_range);
Duser_record.h58 const char *mls_range);
/external/selinux/libsepol/include/sepol/
Dcontext_record.h38 sepol_context_t * con, const char *mls_range);
Duser_record.h50 sepol_user_t * user, const char *mls_range);
/external/selinux/python/sepolicy/sepolicy/
Dgui.py1924 mls_range = self.login_mls_entry.get_text()
1934 …self.cur_dict["login"][name] = {"action": "-m", "range": mls_range, "seuser": seuser, "oldrange": …
1937 self.cur_dict["login"][name] = {"action": "-a", "range": mls_range, "seuser": seuser}
1941 self.liststore.set_value(iter, 2, mls_range)
1949 mls_range = self.user_mls_entry.get_text()
1961 …self.cur_dict["user"][name] = {"action": "-m", "range": mls_range, "level": level, "role": roles, …
1964 if mls_range or level:
1965 … self.cur_dict["user"][name] = {"action": "-a", "range": mls_range, "level": level, "role": roles}
1972 self.liststore.set_value(iter, 3, mls_range)
D__init__.py272 'range': str(x.mls_range),
/external/selinux/libsepol/cil/src/
Dcil_binary.c3120 …velrange_to_mls_range(policydb_t *pdb, struct cil_levelrange *cil_lvlrange, mls_range_t *mls_range) in __cil_levelrange_to_mls_range() argument
3127 mls_level = &mls_range->level[0]; in __cil_levelrange_to_mls_range()
3134 mls_level = &mls_range->level[1]; in __cil_levelrange_to_mls_range()
3256 struct mls_range *newdatum = NULL; in cil_rangetransition_to_policydb()
3261 struct mls_range *o_range = NULL; in cil_rangetransition_to_policydb()
/external/libbpf/.github/actions/build-selftests/
Dvmlinux.h54004 struct mls_range { struct
54013 struct mls_range range; argument
54176 struct mls_range range;
/external/bcc/libbpf-tools/powerpc/
Dvmlinux_510.h82615 struct mls_range { struct
82624 struct mls_range range; argument
82786 struct mls_range range;

12