|
Chris PeBenito |
9a66d4 |
## <summary>Berkeley process accounting</summary>
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
########################################
|
|
Chris PeBenito |
9a66d4 |
## <summary>
|
|
Chris PeBenito |
9a66d4 |
## Transition to the accounting management domain.
|
|
Chris PeBenito |
9a66d4 |
## </summary>
|
|
Chris PeBenito |
9a66d4 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
9a66d4 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
9a66d4 |
## </param>
|
|
Chris PeBenito |
9a66d4 |
#
|
|
Chris PeBenito |
9a66d4 |
interface(`acct_domtrans',`
|
|
Chris PeBenito |
9a66d4 |
gen_require(`
|
|
Chris PeBenito |
9a66d4 |
type acct_t, acct_exec_t;
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
8021cb |
corecmd_search_bin($1)
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, acct_exec_t, acct_t)
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
########################################
|
|
Chris PeBenito |
9a66d4 |
## <summary>
|
|
Chris PeBenito |
9a66d4 |
## Execute accounting management tools in the caller domain.
|
|
Chris PeBenito |
9a66d4 |
## </summary>
|
|
Chris PeBenito |
9a66d4 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
9a66d4 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
9a66d4 |
## </param>
|
|
Chris PeBenito |
9a66d4 |
#
|
|
Chris PeBenito |
9a66d4 |
interface(`acct_exec',`
|
|
Chris PeBenito |
9a66d4 |
gen_require(`
|
|
Chris PeBenito |
9a66d4 |
type acct_exec_t;
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
8021cb |
corecmd_search_bin($1)
|
|
Chris PeBenito |
0bfccd |
can_exec($1, acct_exec_t)
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
########################################
|
|
Chris PeBenito |
9a66d4 |
## <summary>
|
|
Chris PeBenito |
9a66d4 |
## Execute accounting management data in the caller domain.
|
|
Chris PeBenito |
9a66d4 |
## </summary>
|
|
Chris PeBenito |
9a66d4 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
9a66d4 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
9a66d4 |
## </param>
|
|
Chris PeBenito |
9a66d4 |
#
|
|
Chris PeBenito |
9a66d4 |
# cjp: this is added for logrotate, and does
|
|
Chris PeBenito |
9a66d4 |
# not make sense to me.
|
|
Chris PeBenito |
9a66d4 |
interface(`acct_exec_data',`
|
|
Chris PeBenito |
9a66d4 |
gen_require(`
|
|
Chris PeBenito |
9a66d4 |
type acct_data_t;
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
files_search_var($1)
|
|
Chris PeBenito |
0bfccd |
can_exec($1, acct_data_t)
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
########################################
|
|
Chris PeBenito |
9a66d4 |
## <summary>
|
|
Chris PeBenito |
9a66d4 |
## Create, read, write, and delete process accounting data.
|
|
Chris PeBenito |
9a66d4 |
## </summary>
|
|
Chris PeBenito |
9a66d4 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
9a66d4 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
9a66d4 |
## </param>
|
|
Chris PeBenito |
9a66d4 |
#
|
|
Chris PeBenito |
9a66d4 |
interface(`acct_manage_data',`
|
|
Chris PeBenito |
9a66d4 |
gen_require(`
|
|
Chris PeBenito |
9a66d4 |
type acct_data_t;
|
|
Chris PeBenito |
9a66d4 |
')
|
|
Chris PeBenito |
9a66d4 |
|
|
Chris PeBenito |
9a66d4 |
files_search_var($1)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern($1, acct_data_t, acct_data_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern($1, acct_data_t, acct_data_t)
|
|
Chris PeBenito |
9a66d4 |
')
|