2 ## <summary>policy for thumb</summary>
5 ########################################
7 ## Transition to thumb.
9 ## <param name="domain">
11 ## Domain allowed to transition.
15 interface(`thumb_domtrans',`
17 type thumb_t, thumb_exec_t;
20 corecmd_search_bin($1)
21 domtrans_pattern($1, thumb_exec_t, thumb_t)
25 ########################################
27 ## Execute thumb in the thumb domain, and
28 ## allow the specified role the thumb domain.
30 ## <param name="domain">
32 ## Domain allowed to transition
35 ## <param name="role">
37 ## The role to be allowed the thumb domain.
41 interface(`thumb_run',`
47 role $2 types thumb_t;
49 allow $1 thumb_t:process signal;
52 ########################################
54 ## Role access for thumb
56 ## <param name="role">
58 ## Role allowed access
61 ## <param name="domain">
63 ## User domain for the role
67 interface(`thumb_role',`
73 role $1 types thumb_t;
77 ps_process_pattern($2, thumb_t)
78 allow $2 thumb_t:process signal;
79 allow thumb_t $2:unix_stream_socket connectto;
81 allow $2 thumb_t:dbus send_msg;
82 allow thumb_t $2:dbus send_msg;