Home
last modified time | relevance | path

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

/xen/tools/ocaml/libs/xs/
A Dxsraw.mli24 type perm = PERM_NONE | PERM_READ | PERM_WRITE | PERM_RDWR type
25 type perms = int * perm * (int * perm) list
26 val string_of_perms : int * perm * (int * perm) list -> string
27 val perms_of_string : string -> int * perm * (int * perm) list
44 val getperms : int -> string -> con -> int * perm * (int * perm) list
57 val setperms : int -> string -> int * perm * (int * perm) list -> con -> unit
60 string -> string list -> int * perm * (int * perm) list -> con -> unit
A Dxsraw.ml54 type perm = PERM_NONE | PERM_READ | PERM_WRITE | PERM_RDWR type
56 type perms = int * perm * (int * perm) list
60 let char_of_perm perm =
61 match perm with PERM_NONE -> 'n' | PERM_READ -> 'r'
63 let string_of_perm (id, perm) = Printf.sprintf "%c%u" (char_of_perm perm) id in
73 …then invalid_arg (Printf.sprintf "perm of string: length = %d; contents=\"%s\"" (String.length s) …
A Dxs.mli24 - other perm: applied to domain that is not owner or in ACL.
/xen/tools/ocaml/xenstored/
A Dperms.ml27 let char_of_permty perm =
28 match perm with
59 let get_owner perm = perm.owner
61 (** [remote_domid ~domid perm] removes all ACLs for [domid] from perm.
65 let remove_domid ~domid perm =
67 let owner = if perm.owner = domid then 0 else perm.owner in
68 { perm with acl; owner }
89 let string_of_perm perm =
90 Printf.sprintf "%c%u" (char_of_permty (snd perm)) (fst perm)
148 let perm =
[all …]
A Dstore.ml247 let path_mkdir store perm path =
280 let path_rm store perm path =
301 Node.check_owner c perm;
315 let read store perm path =
328 let ls store perm path =
341 let getperms store perm path =
348 Node.check_perm c perm Perms.READ;
404 let write store perm path value =
418 let mkdir store perm path =
426 let rm store perm path =
[all …]
A Dtransaction.ml148 && not (Perms.Connection.is_dom0 perm)
158 let write t perm path value =
160 Store.write t.store perm path value;
167 Store.mkdir t.store perm path;
172 let setperms t perm path perms =
177 let rm t perm path =
178 Store.rm t.store perm path;
182 let ls t perm path =
183 let r = Store.ls t.store perm path in
187 let read t perm path =
[all …]
A Ddisk.ml112 (* don't let the permission get on our way, full perm ! *)
115 (* a line is : path{perm} or path{perm} = value *)
117 let path, perm, value =
139 v.Store.setperms path (Perms.Node.of_strings (parse_perm perm)) in
A Dstdext.ml81 let mkdir_safe dir perm =
82 try Unix.mkdir dir perm with Unix.Unix_error (Unix.EEXIST, _, _) -> ()
85 let mkdir_rec dir perm =
90 mkdir_safe dir perm in
A Dconnection.ml40 mutable perm: Perms.Connection.t; RecordField
59 (* perm is the same *)
111 perm = make_perm dom;
123 con.perm
126 …con.perm <- Perms.Connection.set_target (get_perm con) ~perms:[Perms.READ; Perms.WRITE] target_dom…
221 if Perms.can_fire_watch watch.con.perm perms then
A Dprocess.ml72 let create_implicit_path t perm path =
84 List.iter (fun s -> Transaction.mkdir ~with_watch:false t perm s) ret
550 Transaction.add_operation ~perm:(Connection.get_perm con) t req response;
A Dxenstored.ml180 (* don't let the permission get on our way, full perm ! *)
/xen/tools/xenstore/
A Dxs_tdb_dump.c20 static char perm_to_char(enum xs_perm_type perm) in perm_to_char() argument
22 return perm == XS_PERM_READ ? 'r' : in perm_to_char()
23 perm == XS_PERM_WRITE ? 'w' : in perm_to_char()
24 perm == XS_PERM_NONE ? '-' : in perm_to_char()
25 perm == (XS_PERM_READ|XS_PERM_WRITE) ? 'b' : in perm_to_char()
A Dxenstored_watch.c118 enum xs_perm_type perm; in watch_permitted() local
123 perm = perm_for_conn(conn, perms); in watch_permitted()
124 if (perm & XS_PERM_READ) in watch_permitted()
134 perm = perm_for_conn(conn, &node->perms); in watch_permitted()
135 if (perm & XS_PERM_READ) in watch_permitted()
148 perm = perm_for_conn(conn, &parent->perms); in watch_permitted()
150 return perm & XS_PERM_READ; in watch_permitted()
A Dxs_lib.c152 bool xs_perm_to_string(const struct xs_permissions *perm, in xs_perm_to_string() argument
155 switch ((int)perm->perms & ~XS_PERM_IGNORE) { in xs_perm_to_string()
172 snprintf(buffer+1, buf_len-1, "%i", (int)perm->id); in xs_perm_to_string()
A Dxenstored_core.c527 const char *name, enum xs_perm_type *perm) in ask_parents() argument
545 *perm = XS_PERM_NONE; in ask_parents()
549 *perm = perm_for_conn(conn, &node->perms); in ask_parents()
562 enum xs_perm_type perm) in errno_from_parents() argument
572 if (parent_perm & perm) in errno_from_parents()
584 enum xs_perm_type perm) in get_node() argument
595 if ((perm_for_conn(conn, &node->perms) & perm) != perm) { in get_node()
602 errno = errno_from_parents(conn, ctx, name, errno, perm); in get_node()
811 enum xs_perm_type perm) in get_node_canonicalized() argument
818 return get_node(conn, ctx, *canonical_name, perm); in get_node_canonicalized()
/xen/xen/xsm/flask/
A Dhooks.c435 u32 perm; in flask_console_io() local
454 u32 perm; in flask_profile() local
900 return perm; in flask_iommu_resource_use_perm()
1008 u32 perm; member
1062 u32 perm; in flask_pci_config_permission() local
1195 u32 perm; in flask_hvm_param() local
1200 perm = HVM__SETPARAM; in flask_hvm_param()
1206 perm = HVM__HVMCTL; in flask_hvm_param()
1482 u32 perm; in flask_shadow_control() local
1510 u32 perm; member
[all …]
A Davc.c154 int i, i2, perm; in avc_dump_av() local
164 perm = 1; in avc_dump_av()
168 if ( perm & av ) in avc_dump_av()
173 (av_perm_to_string[i2].value == perm) ) in avc_dump_av()
179 av &= ~perm; in avc_dump_av()
183 perm <<= 1; in avc_dump_av()
A Dflask_op.c504 u32 perm = sid ? SECURITY__ADD_OCONTEXT : SECURITY__DEL_OCONTEXT; in flask_devicetree_label() local
506 rv = domain_has_security(current->domain, perm); in flask_devicetree_label()
/xen/tools/xenstore/include/
A Dxenstore_lib.h74 bool xs_perm_to_string(const struct xs_permissions *perm,
/xen/docs/designs/
A Dxenstore-migration.md330 | access | perm-count |
370 | `perm-count` | The number (N) of node permission specifiers |
389 | perm | pad | domid |
395 | `perm` | One of the ASCII values `w`, `r`, `b` or `n` as |
/xen/docs/misc/
A Dxenstore.txt164 GET_PERMS <path>| <perm-as-string>|+
165 SET_PERMS <path>|<perm-as-string>|+?
166 <perm-as-string> is one of the following
/xen/tools/libxl/
A Dlibxl_dm.c2253 struct xs_permissions perm[2]; in libxl__spawn_stub_dm() local
2398 perm[0].id = dm_domid; in libxl__spawn_stub_dm()
2399 perm[0].perms = XS_PERM_NONE; in libxl__spawn_stub_dm()
2400 perm[1].id = guest_domid; in libxl__spawn_stub_dm()
2401 perm[1].perms = XS_PERM_READ; in libxl__spawn_stub_dm()
2407 perm, ARRAY_SIZE(perm)); in libxl__spawn_stub_dm()
/xen/tools/tests/x86_emulator/
A Dsimd.h290 OVR_VFP(perm);
A Devex-disp8.c348 INSN(perm, 66, 0f38, 36, vl, dq, vl),
349 INSN(perm, 66, 0f38, 16, vl, sd, vl),
/xen/xen/drivers/passthrough/arm/
A Dsmmu.c201 #define module_param_named(name, value, type, perm) argument

Completed in 44 milliseconds