Lines Matching refs:perm
235 let path_mkdir store perm path =
239 Node.check_perm ent perm Perms.WRITE;
242 Node.check_perm node perm Perms.WRITE;
249 let path_write store perm path value =
254 Node.check_perm ent perm Perms.WRITE;
259 Node.check_perm node perm Perms.WRITE;
262 Node.check_perm store.root perm Perms.WRITE;
267 let path_rm store perm path =
271 Node.check_perm ent perm Perms.WRITE;
280 let path_setperms store perm path perms =
286 Node.check_owner c perm;
287 Node.check_perm c perm Perms.WRITE;
300 let read store perm path =
303 Node.check_perm ent perm Perms.READ;
308 Node.check_perm ent perm Perms.READ;
313 let ls store perm path =
320 Node.check_perm cnode perm Perms.READ;
325 let getperms store perm path =
331 Node.check_perm c perm Perms.READ;
387 let write store perm path value =
390 if existing || (Perms.Connection.is_dom0 perm) then
396 let root, node_created = path_write store perm path value in
401 let mkdir store perm path =
405 if not (existing || (Perms.Connection.is_dom0 perm)) then Quota.check store.quota owner 0;
406 store.root <- path_mkdir store perm path;
409 let rm store perm path =
414 store.root <- path_rm store perm path;
417 let setperms store perm path nperms =
423 …if not ((old_owner = new_owner) || (Perms.Connection.is_dom0 perm)) then Quota.check store.quota n…
424 store.root <- path_setperms store perm path nperms;