2005-06-07 22:36:07 +00:00
|
|
|
## <summary>Policy for local logins.</summary>
|
2005-04-28 19:50:58 +00:00
|
|
|
|
2005-06-07 22:36:07 +00:00
|
|
|
########################################
|
2005-06-30 18:54:08 +00:00
|
|
|
## <summary>
|
|
|
|
## Execute local logins in the local login domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-30 18:54:08 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-30 18:54:08 +00:00
|
|
|
## </param>
|
2005-04-28 19:50:58 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`locallogin_domtrans',`
|
2005-06-17 17:59:26 +00:00
|
|
|
gen_require(`
|
|
|
|
type local_login_t;
|
|
|
|
')
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2009-06-26 14:40:13 +00:00
|
|
|
auth_domtrans_login_program($1, local_login_t)
|
2006-10-04 17:25:34 +00:00
|
|
|
|
|
|
|
ifdef(`enable_mcs',`
|
2009-06-26 14:40:13 +00:00
|
|
|
auth_ranged_domtrans_login_program($1, local_login_t, s0 - mcs_systemhigh)
|
2006-10-04 17:25:34 +00:00
|
|
|
')
|
2005-04-28 19:50:58 +00:00
|
|
|
')
|
|
|
|
|
2005-06-07 22:36:07 +00:00
|
|
|
########################################
|
2005-06-30 18:54:08 +00:00
|
|
|
## <summary>
|
2005-09-15 15:34:31 +00:00
|
|
|
## Allow processes to inherit local login file descriptors.
|
2005-06-30 18:54:08 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-30 18:54:08 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-30 18:54:08 +00:00
|
|
|
## </param>
|
2005-06-07 22:36:07 +00:00
|
|
|
#
|
2006-03-02 23:41:11 +00:00
|
|
|
interface(`locallogin_use_fds',`
|
2005-06-17 17:59:26 +00:00
|
|
|
gen_require(`
|
|
|
|
type local_login_t;
|
|
|
|
')
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 local_login_t:fd use;
|
2005-05-03 20:23:33 +00:00
|
|
|
')
|
|
|
|
|
2005-09-15 15:34:31 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to inherit local login file descriptors.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-15 15:34:31 +00:00
|
|
|
## Domain to not audit.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-15 15:34:31 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-03-02 23:41:11 +00:00
|
|
|
interface(`locallogin_dontaudit_use_fds',`
|
2005-09-15 15:34:31 +00:00
|
|
|
gen_require(`
|
|
|
|
type local_login_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 local_login_t:fd use;
|
|
|
|
')
|
|
|
|
|
2005-06-30 18:54:08 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send a null signal to local login processes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-30 18:54:08 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-30 18:54:08 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`locallogin_signull',`
|
|
|
|
gen_require(`
|
|
|
|
type local_login_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 local_login_t:process signull;
|
|
|
|
')
|
2006-12-04 20:10:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Search for key.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`locallogin_search_keys',`
|
|
|
|
gen_require(`
|
|
|
|
type local_login_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 local_login_t:key search;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Allow link to the local_login key ring.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`locallogin_link_keys',`
|
|
|
|
gen_require(`
|
|
|
|
type local_login_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 local_login_t:key link;
|
|
|
|
')
|
2007-07-19 18:57:48 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute local logins in the local login domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`locallogin_domtrans_sulogin',`
|
|
|
|
gen_require(`
|
|
|
|
type sulogin_exec_t, sulogin_t;
|
|
|
|
')
|
|
|
|
|
2009-06-26 14:40:13 +00:00
|
|
|
domtrans_pattern($1, sulogin_exec_t, sulogin_t)
|
2007-07-19 18:57:48 +00:00
|
|
|
')
|