2005-08-15 14:46:17 +00:00
|
|
|
## <summary>Load keyboard mappings.</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute the loadkeys program in the loadkeys domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2010-08-03 15:53:36 +00:00
|
|
|
## Domain allowed to transition.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-15 14:46:17 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`loadkeys_domtrans',`
|
2007-10-02 16:04:50 +00:00
|
|
|
gen_require(`
|
|
|
|
type loadkeys_t, loadkeys_exec_t;
|
2005-11-14 20:26:41 +00:00
|
|
|
')
|
2007-10-02 16:04:50 +00:00
|
|
|
|
|
|
|
corecmd_search_bin($1)
|
|
|
|
domtrans_pattern($1, loadkeys_exec_t, loadkeys_t)
|
2010-06-18 19:12:33 +00:00
|
|
|
|
|
|
|
ifdef(`hide_broken_symptoms',`
|
|
|
|
dontaudit loadkeys_t $1:socket_class_set { read write };
|
|
|
|
')
|
2005-08-15 14:46:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute the loadkeys program in the loadkeys domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2010-08-03 15:53:36 +00:00
|
|
|
## Domain allowed to transition.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-15 14:46:17 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-15 14:46:17 +00:00
|
|
|
## The role to allow the loadkeys domain.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-15 14:46:17 +00:00
|
|
|
## </param>
|
2006-09-06 22:07:25 +00:00
|
|
|
## <rolecap/>
|
2005-08-15 14:46:17 +00:00
|
|
|
#
|
|
|
|
interface(`loadkeys_run',`
|
2007-10-02 16:04:50 +00:00
|
|
|
gen_require(`
|
|
|
|
type loadkeys_t;
|
2005-11-14 20:26:41 +00:00
|
|
|
')
|
2007-10-02 16:04:50 +00:00
|
|
|
|
|
|
|
loadkeys_domtrans($1)
|
|
|
|
role $2 types loadkeys_t;
|
2005-08-15 14:46:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute the loadkeys program in the caller domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2010-08-02 13:22:09 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-15 14:46:17 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`loadkeys_exec',`
|
2007-10-02 16:04:50 +00:00
|
|
|
gen_require(`
|
|
|
|
type loadkeys_exec_t;
|
2005-11-14 20:26:41 +00:00
|
|
|
')
|
2007-10-02 16:04:50 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
can_exec($1, loadkeys_exec_t)
|
2005-08-15 14:46:17 +00:00
|
|
|
')
|