Home
last modified time | relevance | path

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

/third_party/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_glblub(context_struct_t *dst, context_struct_t *c1, context_struct_t in mls_context_glblub()
100 static inline int mls_context_cmp(context_struct_t * c1, context_struct_t * c2) in mls_context_cmp()
107 static inline void mls_context_destroy(context_struct_t * c) in mls_context_destroy()
116 static inline void context_init(context_struct_t * c) in context_init()
[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.h380 context_struct_t context[2]; /* security context(s) */
662 const context_struct_t * c);
/third_party/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()
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.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()
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()
338 context_struct_t *con = NULL; in sepol_context_check()
Dservices.c289 context_struct_t *xcontext) in get_class_info()
384 static int constraint_expr_eval_reason(context_struct_t *scontext, in constraint_expr_eval_reason()
385 context_struct_t *tcontext, in constraint_expr_eval_reason()
386 context_struct_t *xcontext, in constraint_expr_eval_reason()
393 context_struct_t *c; in constraint_expr_eval_reason()
840 static int context_struct_compute_av(context_struct_t * scontext,
841 context_struct_t * tcontext,
849 static void type_attribute_bounds_av(context_struct_t *scontext, in type_attribute_bounds_av()
850 context_struct_t *tcontext, in type_attribute_bounds_av()
856 context_struct_t lo_scontext; in type_attribute_bounds_av()
[all …]
Dsidtab.c43 context_struct_t * context) in sepol_sidtab_insert()
87 context_struct_t *sepol_sidtab_search(sidtab_t * s, sepol_security_id_t sid) in sepol_sidtab_search()
116 context_struct_t * context, in sepol_sidtab_map()
139 context_struct_t * context, in sepol_sidtab_map_remove_on_error()
176 context_struct_t * in sepol_sidtab_search_context()
194 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()
Dibendports.c20 context_struct_t *tmp_con = NULL; in ibendport_from_record()
77 context_struct_t *con = &ibendport->context[0]; in ibendport_to_record()
Dibpkeys.c21 context_struct_t *tmp_con = NULL; in ibpkey_from_record()
72 context_struct_t *con = &ibpkey->context[0]; in ibpkey_to_record()
Dusers.c48 context_struct_t context; in user_to_record()
123 context_struct_t context; in sepol_user_modify()
Dports.c61 context_struct_t *tmp_con = NULL; in port_from_record()
122 context_struct_t *con = &port->context[0]; in port_to_record()
Dnodes.c20 context_struct_t *tmp_con = NULL; in node_from_record()
88 context_struct_t *con = &node->context[0]; in node_to_record()
Dexpand.c2083 static int context_copy(context_struct_t * dst, context_struct_t * src, in context_copy()
Dwrite.c892 static int context_write(struct policydb *p, context_struct_t * c, in context_write()
Dpolicydb.c2005 static int context_read_and_validate(context_struct_t * c, in context_read_and_validate()
/third_party/selinux/checkpolicy/
Dcheckpolicy.c128 context_struct_t * context in print_sid()
Dpolicy_define.c4341 static int parse_security_context(context_struct_t * c) in parse_security_context()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c3085 …_to_sepol_context(policydb_t *pdb, struct cil_context *cil_context, context_struct_t *sepol_contex… in __cil_context_to_sepol_context()