selinux-policy/policy/modules/admin/consoletype.if

74 lines
1.6 KiB
Plaintext
Raw Normal View History

2005-06-24 13:36:57 +00:00
## <summary>
## Determine of the console connected to the controlling terminal.
## </summary>
2005-05-02 19:24:29 +00:00
2005-06-24 13:36:57 +00:00
########################################
2005-08-08 15:43:20 +00:00
## <summary>
2005-06-24 13:36:57 +00:00
## Execute consoletype in the consoletype domain.
2005-08-08 15:43:20 +00:00
## </summary>
2005-06-24 13:36:57 +00:00
## <param name="domain">
## <summary>
2005-06-24 13:36:57 +00:00
## The type of the process performing this action.
## </summary>
2005-06-24 13:36:57 +00:00
## </param>
2005-05-02 19:24:29 +00:00
#
interface(`consoletype_domtrans',`
2005-06-17 18:27:08 +00:00
gen_require(`
type consoletype_t, consoletype_exec_t;
')
corecmd_search_sbin($1)
2006-12-12 20:08:08 +00:00
domtrans_pattern($1,consoletype_exec_t,consoletype_t)
2005-05-02 19:24:29 +00:00
')
2006-01-17 23:01:14 +00:00
########################################
## <summary>
## Execute consoletype in the consoletype domain, and
## allow the specified role the consoletype domain.
## </summary>
## <param name="domain">
## <summary>
2006-01-17 23:01:14 +00:00
## The type of the process performing this action.
## </summary>
2006-01-17 23:01:14 +00:00
## </param>
## <param name="role">
## <summary>
2006-01-17 23:01:14 +00:00
## The role to be allowed the consoletype domain.
## </summary>
2006-01-17 23:01:14 +00:00
## </param>
## <param name="terminal">
## <summary>
2006-01-17 23:01:14 +00:00
## The type of the terminal allow the consoletype domain to use.
## </summary>
2006-01-17 23:01:14 +00:00
## </param>
#
interface(`consoletype_run',`
gen_require(`
type consoletype_t;
')
consoletype_domtrans($1)
role $2 types consoletype_t;
allow consoletype_t $3:chr_file rw_term_perms;
')
2005-06-24 13:36:57 +00:00
########################################
2005-08-08 15:43:20 +00:00
## <summary>
2005-06-24 13:36:57 +00:00
## Execute consoletype in the caller domain.
2005-08-08 15:43:20 +00:00
## </summary>
2005-06-24 13:36:57 +00:00
## <param name="domain">
## <summary>
2005-06-24 13:36:57 +00:00
## The type of the process performing this action.
## </summary>
2005-06-24 13:36:57 +00:00
## </param>
2006-09-06 22:07:25 +00:00
## <rolecap/>
2005-05-02 19:24:29 +00:00
#
interface(`consoletype_exec',`
2005-06-17 18:27:08 +00:00
gen_require(`
type consoletype_exec_t;
')
2005-06-17 18:27:08 +00:00
corecmd_search_sbin($1)
2005-06-09 17:21:52 +00:00
can_exec($1,consoletype_exec_t)
2005-05-02 19:24:29 +00:00
')