Files
xen/tools/flask/policy/modules/vm_role.cons
T
Daniel De Graaf d72fd26d5f flask/policy: move user definitions and constraints into modules
This also renames the example users created by vm_role.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
2016-06-21 15:29:17 +01:00

41 lines
849 B
Plaintext

#
# Constraints are defined by:
#
# constrain class_set perm_set expression ;
#
# expression : ( expression )
# | not expression
# | expression and expression
# | expression or expression
# | u1 op u2
# | r1 role_op r2
# | t1 op t2
# | u1 op names
# | u2 op names
# | r1 op names
# | r2 op names
# | t1 op names
# | t2 op names
#
# op : == | !=
# role_op : == | != | eq | dom | domby | incomp
#
# names : name | { name_list }
# name_list : name | name_list name
#
# Prevent event channels and grants between different users. This could be
# further limited to only restricting those domains using the vm_r role.
constrain event bind (
u1 == system_u or
u2 == system_u or
u1 == u2
);
constrain grant { map_read map_write copy } (
u1 == system_u or
u2 == system_u or
u1 == u2
);