15 lines
314 B
Plaintext
15 lines
314 B
Plaintext
|
[request_definition]
|
||
|
r = sub, obj, act
|
||
|
|
||
|
[policy_definition]
|
||
|
p = sub, obj, act, eft
|
||
|
|
||
|
# RBAC角色继承关系的定义
|
||
|
[role_definition]
|
||
|
g = _, _
|
||
|
|
||
|
[policy_effect]
|
||
|
e = some(where (p.eft == allow)) && !some(where (p.eft == deny))
|
||
|
|
||
|
[matchers]
|
||
|
m = g(r.sub, p.sub) && keyMatch2(r.obj, p.obj) && regexMatch(r.act, p.act)
|