Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 56) sorted by relevance

123

/xen-4.10.0-shim-comet/xen/xsm/flask/ss/
A Dmls.h20 int mls_compute_context_len(struct context *context);
21 void mls_sid_to_context(struct context *context, char **scontext);
22 int mls_context_isvalid(struct policydb *p, struct context *c);
26 int mls_context_to_sid(char oldc, char **scontext, struct context *context,
30 struct context *context);
32 int mls_compute_sid(struct context *scontext, struct context *tcontext,
33 u16 tclass, u32 specified, struct context *newcontext);
A Dsidtab.h18 struct context context; /* security context structure */ member
37 int sidtab_insert(struct sidtab *s, u32 sid, struct context *context);
38 struct context *sidtab_search(struct sidtab *s, u32 sid);
41 int (*apply) (u32 sid, struct context *context, void *args), void *args);
44 int (*apply) (u32 sid, struct context *context, void *args), void *args);
46 int sidtab_context_to_sid(struct sidtab *s, struct context *context, u32 *sid);
A Dmls.c30 int mls_compute_context_len(struct context * context) in mls_compute_context_len() argument
43 int index_sens = context->range.level[l].sens; in mls_compute_context_len()
49 e = &context->range.level[l].cat; in mls_compute_context_len()
73 if ( mls_level_eq(&context->range.level[0], in mls_compute_context_len()
89 void mls_sid_to_context(struct context *context, char **scontext) in mls_sid_to_context() argument
114 e = &context->range.level[l].cat; in mls_sid_to_context()
250 struct context *context, struct sidtab *s) in mls_context_to_sid() argument
366 context->range.level[1].sens = context->range.level[0].sens; in mls_context_to_sid()
368 &context->range.level[0].cat); in mls_context_to_sid()
381 static inline int mls_range_set(struct context *context, in mls_range_set() argument
[all …]
A Dcontext.h29 struct context { struct
36 static inline void mls_context_init(struct context *c) in mls_context_init() argument
41 static inline int mls_context_cpy(struct context *dst, struct context *src) in mls_context_cpy()
64 static inline int mls_context_cpy_low(struct context *dst, struct context *src) in mls_context_cpy_low()
84 static inline int mls_context_cmp(struct context *c1, struct context *c2) in mls_context_cmp()
95 static inline void mls_context_destroy(struct context *c) in mls_context_destroy()
105 static inline void context_init(struct context *c) in context_init()
110 static inline int context_cpy(struct context *dst, struct context *src) in context_cpy()
118 static inline void context_destroy(struct context *c) in context_destroy()
124 static inline int context_cmp(struct context *c1, struct context *c2) in context_cmp()
A Dsidtab.c39 int sidtab_insert(struct sidtab *s, u32 sid, struct context *context) in sidtab_insert() argument
72 if ( context_cpy(&newnode->context, context) ) in sidtab_insert()
124 return &cur->context; in sidtab_search()
128 int (*apply) (u32 sid, struct context *context, void *args), void *args) in sidtab_map() argument
152 int (*apply) (u32 sid, struct context *context, void *args), void *args) in sidtab_map_remove_on_error() argument
196 struct context *context) in sidtab_search_context() argument
206 if ( context_cmp(&cur->context, context) ) in sidtab_search_context()
214 int sidtab_context_to_sid(struct sidtab *s, struct context *context, in sidtab_context_to_sid() argument
222 sid = sidtab_search_context(s, context); in sidtab_context_to_sid()
237 ret = sidtab_insert(s, sid, context); in sidtab_context_to_sid()
[all …]
A Dservices.c81 static int context_struct_to_string(struct context *context, char **scontext,
102 struct context *tcontext, struct context *xcontext, in constraint_expr_eval()
106 struct context *c; in constraint_expr_eval()
560 struct context *ncontext, struct context *tcontext, u16 tclass) in security_validtrans_handle_fail()
767 struct context *context; in security_sid_to_context() local
789 if ( !context ) in security_sid_to_context()
818 struct context context; in security_context_to_sid() local
937 struct context *scontext, struct context *tcontext, u16 tclass, in compute_sid_handle_invalid_context()
1241 static int clone_sid(u32 sid, struct context *context, void *arg) in clone_sid() argument
1248 static inline int convert_context_handle_invalid_context(struct context *context) in convert_context_handle_invalid_context() argument
[all …]
A Dpolicydb.h161 struct context context; member
256 extern int policydb_context_isvalid(struct policydb *p, struct context *c);
/xen-4.10.0-shim-comet/tools/libs/toollog/
A Dxtl_core.c44 const char *context /* eg "xc", "xenstore", "xl" */, in xtl_logv() argument
49 logger->vmessage(logger,level,errnoval,context,format,al); in xtl_logv()
56 const char *context /* eg "xc", "xenstore", "xl" */, in xtl_log() argument
61 xtl_logv(logger,level,errnoval,context,format,al); in xtl_log()
66 const char *context, const char *doing_what, in xtl_progress() argument
77 logger->progress(logger, context, doing_what, percent, done, total); in xtl_progress()
A Dxtl_logger_stdio.c49 const char *context, in stdiostream_vmessage() argument
74 if (context) in stdiostream_vmessage()
75 fprintf(lg->f, "%s: ", context); in stdiostream_vmessage()
90 const char *context, in stdiostream_message() argument
95 stdiostream_vmessage(logger_in, level, -1, context, format, al); in stdiostream_message()
100 const char *context, in stdiostream_progress() argument
126 stdiostream_message(logger_in, this_level, context, in stdiostream_progress()
136 context?context:"", context?": ":"", in stdiostream_progress()
/xen-4.10.0-shim-comet/tools/xenstore/
A Dtalloc.c175 if (context == NULL) { in _talloc()
176 context = null_context; in _talloc()
194 if (context) { in _talloc()
291 if (context == NULL) { in talloc_unreference()
292 context = null_context; in talloc_unreference()
331 if (context == NULL) { in talloc_unlink()
332 context = null_context; in talloc_unlink()
339 if (context == NULL) { in talloc_unlink()
1267 if (context == NULL) in talloc_get_size()
1282 if (context == NULL) { in talloc_find_parent_byname()
[all …]
A Dtalloc_guide.txt60 (type *)talloc(const void *context, type);
74 level context is created.
112 talloc context and talloc_free()s only the children, not the context
147 context passed must either be a context used in talloc_reference()
236 ptr = talloc_size(context, size);
245 ptr = talloc_size(context, size);
260 level context. It is equivalent to:
283 talloc_realloc(context, NULL, type, 1) ==> talloc(context, type);
284 talloc_realloc(context, NULL, type, N) ==> talloc_array(context, type, N);
350 for the top level memory context, but only if
[all …]
A Dtalloc.h101 void *_talloc(const void *context, size_t size);
104 void *talloc_reference(const void *context, const void *ptr);
105 int talloc_unlink(const void *context, void *ptr);
108 void *talloc_named(const void *context, size_t size,
110 void *talloc_named_const(const void *context, size_t size, const char *name);
117 void *_talloc_realloc(const void *context, void *ptr, size_t size, const char *name);
138 void *talloc_realloc_fn(const void *context, void *ptr, size_t size);
142 void talloc_show_parents(const void *context, FILE *file);
/xen-4.10.0-shim-comet/tools/libs/toollog/include/
A Dxentoollog.h49 const char *context /* eg "xc", "xl", may be 0 */,
54 const char *context /* see above */,
94 const char *context /* eg "xc", "xenstore", "xl", may be 0 */,
101 const char *context /* eg "xc", "xenstore", "xl" */,
106 const char *context /* see above, may be 0 */,
/xen-4.10.0-shim-comet/tools/ocaml/libs/xentoollog/
A Dxentoollog_stubs.c75 static value Val_context(const char *context) in Val_context() argument
77 if (context == NULL) in Val_context()
79 return Val_some(caml_copy_string(context)); in Val_context()
85 const char *context, in stub_xtl_ocaml_vmessage() argument
104 args[2] = Val_context(context); in stub_xtl_ocaml_vmessage()
115 const char *context, in stub_xtl_ocaml_progress() argument
129 args[0] = Val_context(context); in stub_xtl_ocaml_progress()
A Dxentoollog.mli.in27 context: Some <string> or None
30 context: Some <string> or None
/xen-4.10.0-shim-comet/xen/arch/x86/x86_64/
A Dtraps.c37 enum context { CTXT_hypervisor, CTXT_pv_guest, CTXT_hvm_guest }; enum
57 enum context context, const struct vcpu *v) in _show_registers() argument
66 if ( context == CTXT_hypervisor ) in _show_registers()
69 if ( (context == CTXT_pv_guest) && v && v->vcpu_info ) in _show_registers()
71 printk("CONTEXT: %s", context_names[context]); in _show_registers()
105 enum context context; in show_registers() local
111 context = CTXT_hvm_guest; in show_registers()
138 context = CTXT_pv_guest; in show_registers()
143 context = CTXT_hypervisor; in show_registers()
150 _show_registers(&fault_regs, fault_crs, context, v); in show_registers()
/xen-4.10.0-shim-comet/xen/arch/x86/cpu/
A Dvpmu_amd.c204 struct xen_pmu_amd_ctxt *ctxt = vpmu->context; in context_load()
226 ctxt = vpmu->context; in amd_vpmu_load()
242 ctxt = vpmu->context; in amd_vpmu_load()
280 struct xen_pmu_amd_ctxt *ctxt = vpmu->context; in context_save()
317 ctxt = vpmu->context; in amd_vpmu_save()
330 struct xen_pmu_amd_ctxt *ctxt = vpmu->context; in context_update()
439 xfree(vpmu->context); in amd_vpmu_destroy()
440 vpmu->context = NULL; in amd_vpmu_destroy()
453 const struct xen_pmu_amd_ctxt *ctxt = vpmu->context; in amd_vpmu_dump()
524 vpmu->context = ctxt; in svm_vpmu_initialise()
A Dvpmu_intel.c277 struct xen_pmu_intel_ctxt *core2_vpmu_cxt = vcpu_vpmu(v)->context; in __core2_vpmu_save()
312 vpmu->context + regs_off, regs_sz); in core2_vpmu_save()
423 memcpy(vpmu->context + regs_off, in core2_vpmu_load()
434 memset(vpmu->context + regs_off, 0, regs_sz); in core2_vpmu_load()
478 vpmu->context = core2_vpmu_cxt; in core2_vpmu_alloc_resource()
566 core2_vpmu_cxt = vpmu->context; in core2_vpmu_do_wrmsr()
727 core2_vpmu_cxt = vpmu->context; in core2_vpmu_do_rdmsr()
762 const struct xen_pmu_intel_ctxt *core2_vpmu_cxt = vpmu->context; in core2_vpmu_dump()
808 struct xen_pmu_intel_ctxt *core2_vpmu_cxt = vpmu->context; in core2_vpmu_do_interrupt()
834 xfree(vpmu->context); in core2_vpmu_destroy()
[all …]
/xen-4.10.0-shim-comet/tools/libxc/
A Dxc_sr_restore_x86_hvm.c22 free(ctx->x86_hvm.restore.context); in handle_hvm_context()
24 ctx->x86_hvm.restore.context = memcpy(p, rec->data, rec->length); in handle_hvm_context()
211 ctx->x86_hvm.restore.context, in x86_hvm_stream_complete()
235 free(ctx->x86_hvm.restore.context); in x86_hvm_cleanup()
/xen-4.10.0-shim-comet/tools/libxl/
A Dlibxl_save_helper.c59 const char *context, in tellparent_vmessage() argument
66 helper_stub_log(level, errnoval, context, formatted, 0); in tellparent_vmessage()
71 const char *context, in tellparent_progress() argument
75 helper_stub_progress(context, doing_what, done, total, 0); in tellparent_progress()
A Dlibxl_qmp.c58 qmp_request_context *context; member
83 qmp_request_context *context);
274 if (pp->context) { in qmp_handle_error_response()
275 pp->context->rc = rc; in qmp_handle_error_response()
310 if (pp->context) { in qmp_handle_response()
311 pp->context->rc = rc; in qmp_handle_response()
510 qmp_request_context *context) in qmp_send_prepare() argument
551 elm->context = context; in qmp_send_prepare()
566 qmp_request_context *context) in qmp_send() argument
599 qmp_request_context context = { .rc = 0 }; in qmp_synchronous_send() local
[all …]
/xen-4.10.0-shim-comet/xen/arch/x86/oprofile/
A Dop_model_ppro.c140 struct arch_msr_pair *msrs_content = vcpu_vpmu(current)->context; in ppro_check_ctrs()
237 vpmu->context = (void *)msr_content; in ppro_allocate_msr()
254 xfree(vpmu->context); in ppro_free_msr()
260 struct arch_msr_pair *msrs = vcpu_vpmu(v)->context; in ppro_load_msr()
274 struct arch_msr_pair *msrs = vcpu_vpmu(v)->context; in ppro_save_msr()
/xen-4.10.0-shim-comet/xen/drivers/passthrough/vtd/
A Diommu.c126 if (iommu && context) in context_get_domain_id()
130 dom_index = context_domain_id(*context); in context_get_domain_id()
1339 context = &context_entries[devfn]; in domain_context_mapping_one()
1341 if ( context_present(*context) ) in domain_context_mapping_one()
1440 context_set_address_width(*context, agaw); in domain_context_mapping_one()
1441 context_set_fault_enable(*context); in domain_context_mapping_one()
1442 context_set_present(*context); in domain_context_mapping_one()
1575 context = &context_entries[devfn]; in domain_context_unmap_one()
1577 if ( !context_present(*context) ) in domain_context_unmap_one()
1584 context_clear_present(*context); in domain_context_unmap_one()
[all …]
/xen-4.10.0-shim-comet/docs/specs/
A Dlibxl-migration-stream.pandoc17 The _domain image format_ is the context of a running domain used for
24 * There is no `libxl` context information. `xl` is required to send certain
25 pieces of `libxl` context itself.
188 A libxc context record is a marker, indicating that the stream should be
195 The libxc context record contains no fields; its body_length is 0[^1].
232 A context blob for a specific emulator associated with the domain.
/xen-4.10.0-shim-comet/xen/xsm/flask/
A Dflask_op.c180 buf = safe_copy_string_from_guest(arg->context, arg->size, PAGE_SIZE); in flask_security_context()
197 char *context; in flask_security_sid() local
204 rv = security_sid_to_context(arg->sid, &context, &len); in flask_security_sid()
215 if ( !rv && _copy_to_guest(arg->context, context, len) ) in flask_security_sid()
218 xfree(context); in flask_security_sid()

Completed in 39 milliseconds

123