mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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>
41 lines
849 B
Plaintext
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
|
|
);
|