selinux-policy/refpolicy/policy/modules/system/locallogin.if

36 lines
794 B
Plaintext
Raw Normal View History

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-23 16:00:05 +00:00
## <desc>
2005-06-07 22:36:07 +00:00
## Execute local logins in the locallogin domain.
2005-06-23 16:00:05 +00:00
## </desc>
## <param name="domain">
2005-06-07 22:36:07 +00:00
## The type of the process performing this action.
2005-06-23 16:00:05 +00:00
## </param>
2005-04-28 19:50:58 +00:00
#
interface(`locallogin_domtrans',`
2005-06-17 17:59:26 +00:00
gen_require(`
type local_login_t;
')
2005-06-13 17:35:46 +00:00
auth_domtrans_login_program($1,local_login_t)
2005-04-28 19:50:58 +00:00
')
2005-06-07 22:36:07 +00:00
########################################
2005-06-23 16:00:05 +00:00
## <desc>
2005-06-07 22:36:07 +00:00
## Allow processes to inherit local login file descriptors
2005-06-23 16:00:05 +00:00
## </desc>
## <param name="domain">
2005-06-07 22:36:07 +00:00
## The type of the process performing this action.
2005-06-23 16:00:05 +00:00
## </param>
2005-06-07 22:36:07 +00:00
#
interface(`locallogin_use_fd',`
2005-06-17 17:59:26 +00:00
gen_require(`
type local_login_t;
class fd use;
')
allow $1 local_login_t:fd use;
')