equal
deleted
inserted
replaced
364 |
364 |
365 chmod: |
365 chmod: |
366 "access root path uid {} = Some file \<Longrightarrow> |
366 "access root path uid {} = Some file \<Longrightarrow> |
367 uid = 0 \<or> uid = owner (attributes file) \<Longrightarrow> |
367 uid = 0 \<or> uid = owner (attributes file) \<Longrightarrow> |
368 root \<midarrow>(Chmod uid perms path)\<rightarrow> update path |
368 root \<midarrow>(Chmod uid perms path)\<rightarrow> update path |
369 (Some (map_attributes (others_update (K_record perms)) file)) root" | |
369 (Some (map_attributes (others_update (\<lambda>_. perms)) file)) root" | |
370 |
370 |
371 creat: |
371 creat: |
372 "path = parent_path @ [name] \<Longrightarrow> |
372 "path = parent_path @ [name] \<Longrightarrow> |
373 access root parent_path uid {Writable} = Some (Env att parent) \<Longrightarrow> |
373 access root parent_path uid {Writable} = Some (Env att parent) \<Longrightarrow> |
374 access root path uid {} = None \<Longrightarrow> |
374 access root path uid {} = None \<Longrightarrow> |