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 …]
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()
330 char oldc, char **scontext, context_struct_t * context) in mls_context_to_sid()
453 static inline int mls_copy_context(context_struct_t * dst, in mls_copy_context()
454 context_struct_t * src) in mls_copy_context()
473 static inline int mls_scopy_context(context_struct_t * dst, in mls_scopy_context()
474 context_struct_t * src) in mls_scopy_context()
[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,
Dcontext.c15 int policydb_context_isvalid(const policydb_t * p, const context_struct_t * c) in policydb_context_isvalid()
34 int context_is_valid(const policydb_t * p, const context_struct_t * c) in context_is_valid()
89 const context_struct_t * context, in context_to_string()
145 context_struct_t ** cptr, in context_from_record()
149 context_struct_t *scontext = NULL; in context_from_record()
160 scontext = (context_struct_t *) malloc(sizeof(context_struct_t)); in context_from_record()
244 const context_struct_t * context, in context_to_record()
293 context_struct_t ** cptr, in context_from_string()
333 context_struct_t *con = NULL; in sepol_context_check()
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()
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()
831 static int context_struct_compute_av(context_struct_t * scontext, in context_struct_compute_av()
832 context_struct_t * tcontext, in context_struct_compute_av()
957 context_struct_t *ocontext; in sepol_validate_transition()
958 context_struct_t *ncontext; in sepol_validate_transition()
959 context_struct_t *tcontext; in sepol_validate_transition()
[all …]
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.c47 context_struct_t *tmp_con = NULL; in port_from_record()
108 context_struct_t *con = &port->context[0]; in port_to_record()
Dusers.c45 context_struct_t context; in user_to_record()
120 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.c186 context_struct_t context;
Dexpand.c2087 static int context_copy(context_struct_t * dst, context_struct_t * src, in context_copy()
Dwrite.c810 static int context_write(struct policydb *p, context_struct_t * c, in context_write()
Dpolicydb.c1856 static int context_read_and_validate(context_struct_t * c, in context_read_and_validate()
/external/selinux/libsepol/include/sepol/policydb/
Dcontext.h36 } context_struct_t; typedef
38 static inline void mls_context_init(context_struct_t * c) in mls_context_init()
43 static inline int mls_context_cpy(context_struct_t * dst, in mls_context_cpy()
44 context_struct_t * src) in mls_context_cpy()
53 static inline int mls_context_cmp(context_struct_t * c1, context_struct_t * c2) in mls_context_cmp()
60 static inline void mls_context_destroy(context_struct_t * c) in mls_context_destroy()
69 static inline void context_init(context_struct_t * c) in context_init()
74 static inline int context_cpy(context_struct_t * dst, context_struct_t * src) in context_cpy()
82 static inline void context_destroy(context_struct_t * c) in context_destroy()
91 static inline int context_cmp(context_struct_t * c1, context_struct_t * c2) in context_cmp()
Dsidtab.h20 context_struct_t context; /* security context structure */
43 context_struct_t * context);
45 extern context_struct_t *sepol_sidtab_search(sidtab_t * s,
50 context_struct_t * context,
56 context_struct_t *
61 context_struct_t * context, /* IN */
Dpolicydb.h361 context_struct_t context[2]; /* security context(s) */
619 const context_struct_t * c);
/external/selinux/checkpolicy/
Dcheckpolicy.c122 context_struct_t * context in print_sid()
Dpolicy_define.c75 static int parse_security_context(context_struct_t *c);
4280 static int parse_security_context(context_struct_t * c) in parse_security_context()
/external/selinux/libsepol/cil/src/
Dcil_binary.c2859 …_to_sepol_context(policydb_t *pdb, struct cil_context *cil_context, context_struct_t *sepol_contex… in __cil_context_to_sepol_context()