Home
last modified time | relevance | path

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

123

/xen/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
791 if ( !context ) in security_sid_to_context()
820 struct context context; in security_context_to_sid() local
939 struct context *scontext, struct context *tcontext, u16 tclass, in compute_sid_handle_invalid_context()
1243 static int clone_sid(u32 sid, struct context *context, void *arg) in clone_sid() argument
1250 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/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/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/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/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/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()
100 enum context context; in show_registers() local
106 context = CTXT_hvm_guest; in show_registers()
133 context = CTXT_pv_guest; in show_registers()
138 context = CTXT_hypervisor; in show_registers()
145 _show_registers(&fault_regs, fault_crs, context, v); in show_registers()
/xen/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()
476 vpmu->context = core2_vpmu_cxt; in core2_vpmu_alloc_resource()
544 core2_vpmu_cxt = vpmu->context; in core2_vpmu_do_wrmsr()
705 core2_vpmu_cxt = vpmu->context; in core2_vpmu_do_rdmsr()
740 const struct xen_pmu_intel_ctxt *core2_vpmu_cxt = vpmu->context; in core2_vpmu_dump()
786 struct xen_pmu_intel_ctxt *core2_vpmu_cxt = vpmu->context; in core2_vpmu_do_interrupt()
812 xfree(vpmu->context); in core2_vpmu_destroy()
[all …]
/xen/docs/
A Dglossary.rst32 The term 'guest' has two different meanings, depending on context, and
39 this context.
41 In the code, "guest context" and "guest state" is considered in terms of
42 the CPU architecture, and contrasted against hypervisor context/state.
/xen/tools/libxc/
A Dxc_sr_restore_x86_hvm.c13 int rc = update_blob(&ctx->x86.hvm.restore.context, rec->data, rec->length); in handle_hvm_context()
220 ctx->x86.hvm.restore.context.ptr, in x86_hvm_stream_complete()
221 ctx->x86.hvm.restore.context.size); in x86_hvm_stream_complete()
244 free(ctx->x86.hvm.restore.context.ptr); in x86_hvm_cleanup()
/xen/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.c109 qmp_request_context *context; member
137 qmp_request_context *context);
212 if (pp->context) { in qmp_handle_error_response()
213 pp->context->rc = rc; in qmp_handle_error_response()
261 if (pp->context) { in qmp_handle_response()
262 pp->context->rc = rc; in qmp_handle_response()
527 qmp_request_context *context) in qmp_send_prepare() argument
547 elm->context = context; in qmp_send_prepare()
559 qmp_request_context *context) in qmp_send() argument
589 qmp_request_context context = { .rc = 0 }; in qmp_synchronous_send() local
[all …]
/xen/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/xen/drivers/passthrough/vtd/
A Diommu.c133 if (iommu && context) in context_get_domain_id()
137 dom_index = context_domain_id(*context); in context_get_domain_id()
1330 context = &context_entries[devfn]; in domain_context_mapping_one()
1332 if ( context_present(*context) ) in domain_context_mapping_one()
1429 context_set_address_width(*context, agaw); in domain_context_mapping_one()
1430 context_set_fault_enable(*context); in domain_context_mapping_one()
1431 context_set_present(*context); in domain_context_mapping_one()
1585 context = &context_entries[devfn]; in domain_context_unmap_one()
1587 if ( !context_present(*context) ) in domain_context_unmap_one()
1594 context_clear_present(*context); in domain_context_unmap_one()
[all …]
/xen/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.

Completed in 47 milliseconds

123