2005-06-07 22:36:07 +00:00
|
|
|
## <module name="locallogin" layer="system">
|
|
|
|
## <summary>Policy for local logins.</summary>
|
2005-04-28 19:50:58 +00:00
|
|
|
|
2005-06-07 22:36:07 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="locallogin_domtrans">
|
2005-06-07 22:36:07 +00:00
|
|
|
## <description>
|
|
|
|
## Execute local logins in the locallogin domain.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-28 19:50:58 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`locallogin_domtrans',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
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-13 17:35:46 +00:00
|
|
|
define(`locallogin_domtrans_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type local_login_t;
|
2005-04-28 19:50:58 +00:00
|
|
|
')
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2005-06-07 22:36:07 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="locallogin_use_fd">
|
2005-06-07 22:36:07 +00:00
|
|
|
## <description>
|
|
|
|
## Allow processes to inherit local login file descriptors
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# locallogin_use_fd(domain)
|
2005-05-03 20:23:33 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`locallogin_use_fd',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 local_login_t:fd use;
|
2005-05-03 20:23:33 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`locallogin_use_fd_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type local_login_t;
|
|
|
|
|
|
|
|
class fd use;
|
2005-05-03 20:23:33 +00:00
|
|
|
')
|
2005-06-07 22:36:07 +00:00
|
|
|
|
|
|
|
## </module>
|