Debian Codegraph @

tools/flask/policy/modules/vm_role.cons

raw
1 #
2 # Constraints are defined by:
3 #
4 # constrain class_set perm_set expression ;
5 #
6 # expression : ( expression )
7 # | not expression
8 # | expression and expression
9 # | expression or expression
10 # | u1 op u2
11 # | r1 role_op r2
12 # | t1 op t2
13 # | u1 op names
14 # | u2 op names
15 # | r1 op names
16 # | r2 op names
17 # | t1 op names
18 # | t2 op names
19 #
20 # op : == | !=
21 # role_op : == | != | eq | dom | domby | incomp
22 #
23 # names : name | { name_list }
24 # name_list : name | name_list name
25 #
26
27
28 # Prevent event channels and grants between different users. This could be
29 # further limited to only restricting those domains using the vm_r role.
30 constrain event bind (
31 u1 == system_u or
32 u2 == system_u or
33 u1 == u2
34 );
35
36 constrain grant { map_read map_write copy } (
37 u1 == system_u or
38 u2 == system_u or
39 u1 == u2
40 );