15 lines
304 B
Plaintext
15 lines
304 B
Plaintext
[request_definition]
|
|
r = sub, obj, act, ctx
|
|
|
|
[policy_definition]
|
|
p = sub, obj, act, cond, eft
|
|
|
|
[role_definition]
|
|
g = _, _
|
|
|
|
[policy_effect]
|
|
e = some(where (p.eft == allow)) && !some(where (p.eft == deny))
|
|
|
|
[matchers]
|
|
m = g(r.sub, p.sub) && keyMatch(r.obj, p.obj) && keyMatch(r.act, p.act) && eval(p.cond)
|