Blame policy/modules/apps/loadkeys.if
|
Chris PeBenito |
17de1b |
## <summary>Load keyboard mappings.</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute the loadkeys program in the loadkeys domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dominick Grift |
03b866 |
## Domain allowed to transition.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`loadkeys_domtrans',`
|
|
Chris PeBenito |
350b6a |
gen_require(`
|
|
Chris PeBenito |
350b6a |
type loadkeys_t, loadkeys_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
350b6a |
corecmd_search_bin($1)
|
|
Chris PeBenito |
350b6a |
domtrans_pattern($1, loadkeys_exec_t, loadkeys_t)
|
|
Chris PeBenito |
a99f69 |
|
|
Chris PeBenito |
a99f69 |
ifdef(`hide_broken_symptoms',`
|
|
Chris PeBenito |
a99f69 |
dontaudit loadkeys_t $1:socket_class_set { read write };
|
|
Chris PeBenito |
a99f69 |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute the loadkeys program in the loadkeys domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dominick Grift |
03b866 |
## Domain allowed to transition.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
## <param name="role">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## The role to allow the loadkeys domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`loadkeys_run',`
|
|
Chris PeBenito |
350b6a |
gen_require(`
|
|
Chris PeBenito |
350b6a |
type loadkeys_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
350b6a |
loadkeys_domtrans($1)
|
|
Chris PeBenito |
350b6a |
role $2 types loadkeys_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute the loadkeys program in the caller domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
a72e42 |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`loadkeys_exec',`
|
|
Chris PeBenito |
350b6a |
gen_require(`
|
|
Chris PeBenito |
350b6a |
type loadkeys_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
0bfccd |
can_exec($1, loadkeys_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|