Skip to main content

migrate_policy_csv

Function migrate_policy_csv 

Source
pub fn migrate_policy_csv(csv: &str) -> String
Expand description

Rewrite a policy.csv string, upgrading flat action strings to dot-namespaced form.

  • Lines that already have dot-namespaced actions (containing .) are left unchanged.
  • g-lines (role inheritance) and comments are left unchanged.
  • Only 6-field p-lines (p, sub, dom, obj, act, eft) are rewritten.