2005-06-07 22:36:07 +00:00
|
|
|
## <summary>Policy for getty.</summary>
|
|
|
|
|
|
|
|
########################################
|
2005-08-11 17:46:39 +00:00
|
|
|
## <summary>
|
|
|
|
## Execute gettys in the getty domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-19 22:01:48 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-11 17:46:39 +00:00
|
|
|
## </param>
|
2005-04-20 13:24:10 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`getty_domtrans',`
|
2005-06-17 17:59:26 +00:00
|
|
|
gen_require(`
|
|
|
|
type getty_t, getty_exec_t;
|
|
|
|
')
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-17 17:59:26 +00:00
|
|
|
corecmd_search_sbin($1)
|
|
|
|
domain_auto_trans($1,getty_exec_t,getty_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 getty_t:fd use;
|
|
|
|
allow getty_t $1:fd use;
|
|
|
|
allow getty_t $1:fifo_file rw_file_perms;
|
|
|
|
allow getty_t $1:process sigchld;
|
2005-04-20 13:24:10 +00:00
|
|
|
')
|
|
|
|
|
2006-01-19 22:01:48 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Inherit and use getty file descriptors.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-19 22:01:48 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-19 22:01:48 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-03-02 23:41:11 +00:00
|
|
|
interface(`getty_use_fds',`
|
2006-01-19 22:01:48 +00:00
|
|
|
gen_require(`
|
|
|
|
type getty_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 getty_t:fd use;
|
|
|
|
')
|
|
|
|
|
2005-06-07 22:36:07 +00:00
|
|
|
########################################
|
2005-08-11 17:46:39 +00:00
|
|
|
## <summary>
|
|
|
|
## Allow process to read getty log file.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-19 22:01:48 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-11 17:46:39 +00:00
|
|
|
## </param>
|
2005-04-20 13:24:10 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`getty_read_log',`
|
2005-06-17 17:59:26 +00:00
|
|
|
gen_require(`
|
|
|
|
type getty_log_t;
|
|
|
|
')
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-17 17:59:26 +00:00
|
|
|
logging_search_logs($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 getty_log_t:file { getattr read };
|
2005-04-20 13:24:10 +00:00
|
|
|
')
|
|
|
|
|
2005-06-07 22:36:07 +00:00
|
|
|
########################################
|
2005-08-11 17:46:39 +00:00
|
|
|
## <summary>
|
|
|
|
## Allow process to read getty config file.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-19 22:01:48 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-11 17:46:39 +00:00
|
|
|
## </param>
|
2005-04-20 13:24:10 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`getty_read_config',`
|
2005-06-17 17:59:26 +00:00
|
|
|
gen_require(`
|
|
|
|
type getty_etc_t;
|
|
|
|
')
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-17 17:59:26 +00:00
|
|
|
files_search_etc($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 getty_etc_t:file { getattr read };
|
2005-04-20 13:24:10 +00:00
|
|
|
')
|
|
|
|
|
2005-06-07 22:36:07 +00:00
|
|
|
########################################
|
2005-08-11 17:46:39 +00:00
|
|
|
## <summary>
|
|
|
|
## Allow process to edit getty config file.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-19 22:01:48 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-11 17:46:39 +00:00
|
|
|
## </param>
|
2005-04-20 13:24:10 +00:00
|
|
|
#
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`getty_rw_config',`
|
2005-06-17 17:59:26 +00:00
|
|
|
gen_require(`
|
|
|
|
type getty_etc_t;
|
|
|
|
')
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-17 17:59:26 +00:00
|
|
|
files_search_etc($1)
|
|
|
|
allow $1 getty_etc_t:file rw_file_perms;
|
2005-04-20 13:24:10 +00:00
|
|
|
')
|