Home
last modified time | relevance | path

Searched refs:context_struct_t (Results 1 – 20 of 20) sorted by relevance

/external/selinux/libsepol/src/
Dmls.h32 const char *str, context_struct_t * mls);
36 const context_struct_t * mls, char **str);
40 const context_struct_t * context);
44 const context_struct_t * context,
50 char **scontext, context_struct_t * context);
53 const context_struct_t * c);
56 policydb_t * newp, context_struct_t * context);
59 context_struct_t * scontext,
60 context_struct_t * tcontext,
62 uint32_t specified, context_struct_t * newcontext);
[all …]
Dcontext.h13 context_struct_t ** cptr,
18 const context_struct_t * context,
24 context_struct_t ** cptr,
29 const context_struct_t * context);
34 const context_struct_t * context,
Dmls.c44 const context_struct_t * mls, char **str) in mls_to_string()
80 const char *str, context_struct_t * mls) in mls_from_string()
110 const context_struct_t * context) in mls_compute_context_len()
168 const context_struct_t * context, char **scontext) in mls_sid_to_context()
258 int mls_context_isvalid(const policydb_t * p, const context_struct_t * c) in mls_context_isvalid()
332 char oldc, char **scontext, context_struct_t * context) in mls_context_to_sid()
455 static inline int mls_copy_context(context_struct_t * dst, in mls_copy_context()
456 context_struct_t * src) in mls_copy_context()
475 static inline int mls_scopy_context(context_struct_t * dst, in mls_scopy_context()
476 context_struct_t * src) in mls_scopy_context()
[all …]
Dcontext.c16 int policydb_context_isvalid(const policydb_t * p, const context_struct_t * c) in policydb_context_isvalid()
35 int context_is_valid(const policydb_t * p, const context_struct_t * c) in context_is_valid()
90 const context_struct_t * context, in context_to_string()
146 context_struct_t ** cptr, in context_from_record()
150 context_struct_t *scontext = NULL; in context_from_record()
161 scontext = (context_struct_t *) malloc(sizeof(context_struct_t)); in context_from_record()
245 const context_struct_t * context, in context_to_record()
294 context_struct_t ** cptr, in context_from_string()
339 context_struct_t *con = NULL; in sepol_context_check()
Dservices.c291 context_struct_t *xcontext) in get_class_info()
385 static int constraint_expr_eval_reason(context_struct_t *scontext, in constraint_expr_eval_reason()
386 context_struct_t *tcontext, in constraint_expr_eval_reason()
387 context_struct_t *xcontext, in constraint_expr_eval_reason()
394 context_struct_t *c; in constraint_expr_eval_reason()
828 static int context_struct_compute_av(context_struct_t * scontext,
829 context_struct_t * tcontext,
837 static void type_attribute_bounds_av(context_struct_t *scontext, in type_attribute_bounds_av()
838 context_struct_t *tcontext, in type_attribute_bounds_av()
844 context_struct_t lo_scontext; in type_attribute_bounds_av()
[all …]
Dsidtab.c43 context_struct_t * context) in sepol_sidtab_insert()
118 context_struct_t *sepol_sidtab_search(sidtab_t * s, sepol_security_id_t sid) in sepol_sidtab_search()
147 context_struct_t * context, in sepol_sidtab_map()
170 context_struct_t * context, in sepol_sidtab_map_remove_on_error()
207 context_struct_t * in sepol_sidtab_search_context()
225 context_struct_t * context, in sepol_sidtab_context_to_sid()
Dinterfaces.c18 context_struct_t *tmp_con = NULL; in iface_from_record()
72 context_struct_t *ifcon = &iface->context[0]; in iface_to_record()
73 context_struct_t *msgcon = &iface->context[1]; in iface_to_record()
Dports.c54 context_struct_t *tmp_con = NULL; in port_from_record()
115 context_struct_t *con = &port->context[0]; in port_to_record()
Dusers.c50 context_struct_t context; in user_to_record()
125 context_struct_t context; in sepol_user_modify()
Dnodes.c20 context_struct_t *tmp_con = NULL; in node_from_record()
88 context_struct_t *con = &node->context[0]; in node_to_record()
Dgenusers.c187 context_struct_t context;
Dexpand.c2103 static int context_copy(context_struct_t * dst, context_struct_t * src, in context_copy()
Dwrite.c825 static int context_write(struct policydb *p, context_struct_t * c, in context_write()
Dpolicydb.c1960 static int context_read_and_validate(context_struct_t * c, in context_read_and_validate()
/external/selinux/libsepol/include/sepol/policydb/
Dcontext.h38 } context_struct_t; typedef
40 static inline void mls_context_init(context_struct_t * c) in mls_context_init()
45 static inline int mls_context_cpy(context_struct_t * dst, in mls_context_cpy()
46 context_struct_t * src) in mls_context_cpy()
58 static inline int mls_context_cpy_low(context_struct_t *dst, context_struct_t *src) in mls_context_cpy_low()
78 static inline int mls_context_cpy_high(context_struct_t *dst, context_struct_t *src) in mls_context_cpy_high()
95 static inline int mls_context_cmp(context_struct_t * c1, context_struct_t * c2) in mls_context_cmp()
102 static inline void mls_context_destroy(context_struct_t * c) in mls_context_destroy()
111 static inline void context_init(context_struct_t * c) in context_init()
116 static inline int context_cpy(context_struct_t * dst, context_struct_t * src) in context_cpy()
[all …]
Dsidtab.h21 context_struct_t context; /* security context structure */
44 context_struct_t * context);
46 extern context_struct_t *sepol_sidtab_search(sidtab_t * s,
51 context_struct_t * context,
57 context_struct_t *
62 context_struct_t * context, /* IN */
Dpolicydb.h366 context_struct_t context[2]; /* security context(s) */
632 const context_struct_t * c);
/external/selinux/checkpolicy/
Dcheckpolicy.c124 context_struct_t * context in print_sid()
Dpolicy_define.c78 static int parse_security_context(context_struct_t *c);
4405 static int parse_security_context(context_struct_t * c) in parse_security_context()
/external/selinux/libsepol/cil/src/
Dcil_binary.c3049 …_to_sepol_context(policydb_t *pdb, struct cil_context *cil_context, context_struct_t *sepol_contex… in __cil_context_to_sepol_context()