/xen/tools/xenstore/ |
A D | xs_lib.c | 114 bool xs_strings_to_perms(struct xs_permissions *perms, unsigned int num, in xs_strings_to_perms() argument 125 perms[i].perms = XS_PERM_READ; in xs_strings_to_perms() 128 perms[i].perms = XS_PERM_WRITE; in xs_strings_to_perms() 131 perms[i].perms = XS_PERM_READ|XS_PERM_WRITE; in xs_strings_to_perms() 134 perms[i].perms = XS_PERM_NONE; in xs_strings_to_perms() 141 perms[i].id = strtol(p, &end, 0); in xs_strings_to_perms() 155 switch ((int)perm->perms & ~XS_PERM_IGNORE) { in xs_perm_to_string()
|
A D | xenstored_core.c | 412 node->perms.p = hdr->perms; in read_node() 439 + node->perms.num * sizeof(node->perms.p[0]) in write_node_raw() 455 memcpy(hdr->perms, node->perms.p, in write_node_raw() 457 p = hdr->perms + node->perms.num; in write_node_raw() 497 if (!(perms->p[i].perms & XS_PERM_IGNORE) && in perm_for_conn() 500 return perms->p[i].perms & mask; in perm_for_conn() 502 return perms->p[0].perms & mask; in perm_for_conn() 961 node->perms.num = parent->perms.num; in construct_node() 1293 perms.p[0].id != node->perms.p[0].id) in do_set_perms() 1298 node->perms = perms; in do_set_perms() [all …]
|
A D | xenstored_domain.c | 652 perms->num = 1; in set_dom_perms_default() 653 perms->p = talloc_array(NULL, struct xs_permissions, perms->num); in set_dom_perms_default() 654 if (!perms->p) in set_dom_perms_default() 656 perms->p->id = 0; in set_dom_perms_default() 657 perms->p->perms = XS_PERM_NONE; in set_dom_perms_default() 684 p->num = perms->num; in set_perms_special() 686 p->p = perms->p; in set_perms_special() 777 if (node->perms.p && node->perms.p[0].id != conn->id) { in domain_entry_inc() 843 if (node->perms.p[i].perms & XS_PERM_IGNORE) in domain_adjust_node_perms() 850 node->perms.p[i].perms |= XS_PERM_IGNORE; in domain_adjust_node_perms() [all …]
|
A D | xenstore_client.c | 167 struct xs_permissions *perms; in do_ls() local 224 if (perms == NULL) { in do_ls() 257 ret = xs_set_permissions(xsh, xth, path, perms, nperms); in do_chmod() 270 do_chmod(path, perms, nperms, 1, 0, xsh, xth); in do_chmod() 287 do_chmod(buf, perms, nperms, 0, 1, xsh, xth); in do_chmod() 459 struct xs_permissions perms[nperms]; in perform() local 463 perms[i].id = atoi(argv[optind]+1); in perform() 468 perms[i].perms = XS_PERM_NONE; in perform() 471 perms[i].perms = XS_PERM_READ; in perform() 474 perms[i].perms = XS_PERM_WRITE; in perform() [all …]
|
A D | xenstored_transaction.c | 123 struct node_perms perms; member 271 if (node->generation != NO_GENERATION && node->perms.num) { in access_node() 272 i->perms.p = talloc_array(i, struct xs_permissions, in access_node() 273 node->perms.num); in access_node() 274 if (!i->perms.p) in access_node() 276 i->perms.num = node->perms.num; in access_node() 277 memcpy(i->perms.p, node->perms.p, in access_node() 278 i->perms.num * sizeof(*i->perms.p)); in access_node() 389 i->perms.p ? &i->perms : NULL); in finalize_transaction() 392 i->perms.p ? &i->perms : NULL); in finalize_transaction()
|
A D | xenstored_watch.c | 116 struct node_perms *perms) in watch_permitted() argument 122 if (perms) { in watch_permitted() 123 perm = perm_for_conn(conn, perms); in watch_permitted() 134 perm = perm_for_conn(conn, &node->perms); in watch_permitted() 148 perm = perm_for_conn(conn, &parent->perms); in watch_permitted() 161 struct node *node, bool exact, struct node_perms *perms) in fire_watches() argument 177 if (!watch_permitted(i, ctx, name, node, perms)) in fire_watches()
|
A D | xs_tdb_dump.c | 74 perm_to_char(hdr->perms[i].perms), in main() 75 hdr->perms[i].id); in main() 76 p = (void *)&hdr->perms[hdr->num_perms]; in main()
|
A D | xenstored_core.h | 131 struct node_perms perms; member 160 const struct node_perms *perms); 174 const struct node_perms *perms);
|
A D | xenstored_watch.h | 29 struct node *node, bool exact, struct node_perms *perms);
|
/xen/xen/arch/arm/ |
A D | guest_walk.c | 33 unsigned int *perms) in guest_walk_sd() argument 137 *perms |= GV2M_EXEC; in guest_walk_sd() 146 *perms |= GV2M_EXEC; in guest_walk_sd() 151 *perms |= GV2M_WRITE; in guest_walk_sd() 173 *perms |= GV2M_WRITE; in guest_walk_sd() 175 *perms |= GV2M_EXEC; in guest_walk_sd() 360 unsigned int *perms) in guest_walk_ld() argument 582 *perms |= GV2M_WRITE; in guest_walk_ld() 584 *perms |= GV2M_EXEC; in guest_walk_ld() 601 perms = perms ?: &_perms; in guest_walk_tables() [all …]
|
A D | mem_access.c | 106 unsigned int perms; in p2m_mem_access_check_and_get_page() local 129 if ( !guest_walk_tables(v, gva, &ipa, &perms) ) in p2m_mem_access_check_and_get_page() 142 if ( (flag & GV2M_WRITE) && !(perms & GV2M_WRITE) ) in p2m_mem_access_check_and_get_page()
|
/xen/tools/ocaml/libs/xs/ |
A D | xst.ml | 26 getperms: string -> Xsraw.perms; 27 setperms: string -> Xsraw.perms -> unit; 28 setpermsv: string -> string list -> Xsraw.perms -> unit; 40 setperms = (fun path perms -> Xsraw.setperms tid path perms xsh); 41 setpermsv = (fun dir vec perms -> Xsraw.setpermsv tid dir vec perms xsh);
|
A D | xs.mli | 22 (** perms contains 3 things: 27 type perms = Xsraw.perms type 42 getperms : string -> perms; 43 setperms : string -> perms -> unit; 44 setpermsv : string -> string list -> perms -> unit;
|
A D | xs.ml | 17 type perms = Xsraw.perms type 32 getperms: string -> perms; 33 setperms: string -> perms -> unit; 34 setpermsv: string -> string list -> perms -> unit; 54 setperms = (fun path perms -> Xsraw.setperms 0 path perms con); 55 setpermsv = (fun dir vec perms -> Xsraw.setpermsv 0 dir vec perms con);
|
A D | xst.mli | 24 getperms : string -> Xsraw.perms; 25 setperms : string -> Xsraw.perms -> unit; 26 setpermsv : string -> string list -> Xsraw.perms -> unit;
|
A D | xsraw.ml | 56 type perms = int * perm * (int * perm) list type 58 let string_of_perms perms = 59 let owner, other, acl = perms in 259 let setperms tid path perms con = 261 ack (sync (Queueop.setperms tid path (string_of_perms perms)) con) 263 let setpermsv tid dir vec perms con = 267 setperms tid path perms con) vec
|
/xen/tools/python/xen/lowlevel/xs/ |
A D | xs.c | 277 struct xs_permissions *perms; in xspy_get_permissions() local 295 if (perms) { in xspy_get_permissions() 301 "read", perms[i].perms & XS_PERM_READ, in xspy_get_permissions() 302 "write", perms[i].perms & XS_PERM_WRITE); in xspy_get_permissions() 306 free(perms); in xspy_get_permissions() 328 PyObject *perms; in xspy_set_permissions() local 349 if (!PyList_Check(perms)) { in xspy_set_permissions() 354 xsperms_n = PyList_Size(perms); in xspy_set_permissions() 374 xsperms[i].perms |= XS_PERM_READ; in xspy_set_permissions() 376 xsperms[i].perms |= XS_PERM_WRITE; in xspy_set_permissions() [all …]
|
/xen/tools/xenstore/include/ |
A D | xenstore_lib.h | 43 enum xs_perm_type perms; member 52 struct xs_permissions perms[0]; member 70 bool xs_strings_to_perms(struct xs_permissions *perms, unsigned int num,
|
/xen/tools/ocaml/xenstored/ |
A D | store.ml | 23 perms: Perms.Node.t; RecordField 34 let get_perms node = node.perms 349 c.Node.perms in 449 let perms = Perms.Node.remove_domid ~domid node.perms in 450 if perms <> node.perms then 452 { node with perms } 467 let get_ops store perms = { 469 write = write store perms; 471 rm = rm store perms; 473 ls = ls store perms; [all …]
|
A D | perms.ml | 18 let info fmt = Logging.info "perms" fmt 57 let get_other perms = perms.other 58 let get_acl perms = perms.acl 112 let create ?(perms=[NONE]) domid : t = 113 { main = (domid, perms); 116 let set_target (connection:t) ?(perms=[NONE]) domid = 117 { connection with target = Some (domid, perms) } 181 let can_fire_watch connection perms = 183 || List.exists (has connection READ) perms
|
A D | connection.ml | 93 Perms.Connection.create ~perms:[Perms.READ; Perms.WRITE] domid 126 …con.perm <- Perms.Connection.set_target (get_perm con) ~perms:[Perms.READ; Perms.WRITE] target_dom… 220 let perms = lookup_watch_perms oldroot root abspath in 221 if Perms.can_fire_watch watch.con.perm perms then 224 let perms = perms |> List.map (Perms.Node.to_string ~sep:" ") |> String.concat ", " in 226 Logging.watch_not_fired ~con perms (Store.Path.to_string abspath)
|
/xen/tools/libvchan/ |
A D | init.c | 249 struct xs_permissions perms[2]; in init_xs_srv() local 262 perms[0].id = atoi(domid_str); in init_xs_srv() 264 perms[0].perms = XS_PERM_NONE; in init_xs_srv() 266 perms[1].id = domain; in init_xs_srv() 267 perms[1].perms = XS_PERM_READ; in init_xs_srv() 278 if (!xs_set_permissions(xs, xs_trans, buf, perms, 2)) in init_xs_srv() 285 if (!xs_set_permissions(xs, xs_trans, buf, perms, 2)) in init_xs_srv()
|
/xen/tools/libxl/ |
A D | libxl_xshelp.c | 50 struct xs_permissions *perms, in libxl__xs_writev_perms() argument 65 if (perms) in libxl__xs_writev_perms() 66 xs_set_permissions(ctx->xsh, t, path, perms, num_perms); in libxl__xs_writev_perms() 167 const char *path, struct xs_permissions *perms, in libxl__xs_mknod() argument 179 ok = xs_set_permissions(ctx->xsh, t, path, perms, num_perms); in libxl__xs_mknod()
|
/xen/xen/include/asm-arm/ |
A D | guest_walk.h | 8 unsigned int *perms);
|
/xen/xen/xsm/flask/ |
A D | hooks.c | 65 u16 class, u32 perms) in domain_has_perm() argument 76 return avc_has_perm(ssid, tsid, class, perms, &ad); in domain_has_perm() 88 return domain_has_perm(current->domain, d, class, perms); in current_has_perm() 96 return avc_has_perm(dsid, esid, SECCLASS_EVENT, perms, NULL); in domain_has_evtchn() 99 static int domain_has_xen(struct domain *d, u32 perms) in domain_has_xen() argument 359 u32 perms = GRANT__MAP_READ; in flask_grant_mapref() local 362 perms |= GRANT__MAP_WRITE; in flask_grant_mapref() 364 return domain_has_perm(d1, d2, SECCLASS_GRANT, perms); in flask_grant_mapref() 833 u32 perms = XEN__READCONSOLE; in flask_readconsole() local 836 perms |= XEN__CLEARCONSOLE; in flask_readconsole() [all …]
|