|
Chris PeBenito |
992aba |
## <summary>Policy for the RPM package manager.</summary>
|
|
Chris PeBenito |
992aba |
|
|
Chris PeBenito |
992aba |
########################################
|
|
Chris PeBenito |
ebdc3b |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Execute rpm programs in the rpm domain.
|
|
Chris PeBenito |
ebdc3b |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
992aba |
#
|
|
Chris PeBenito |
199895 |
interface(`rpm_domtrans',`
|
|
Chris PeBenito |
7f2e39 |
gen_require(`
|
|
Chris PeBenito |
7f2e39 |
type rpm_t, rpm_exec_t;
|
|
Chris PeBenito |
7f2e39 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
7f2e39 |
files_search_usr($1)
|
|
Chris PeBenito |
7f2e39 |
corecmd_search_bin($1)
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, rpm_exec_t, rpm_t)
|
|
Chris PeBenito |
992aba |
')
|
|
Chris PeBenito |
992aba |
|
|
Chris PeBenito |
992aba |
########################################
|
|
Chris PeBenito |
ebdc3b |
## <summary>
|
|
Chris PeBenito |
cd6676 |
## Execute rpm_script programs in the rpm_script domain.
|
|
Chris PeBenito |
cd6676 |
## </summary>
|
|
Chris PeBenito |
cd6676 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
cd6676 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
cd6676 |
## </param>
|
|
Chris PeBenito |
cd6676 |
#
|
|
Chris PeBenito |
1815ba |
interface(`rpm_domtrans_script',`
|
|
Chris PeBenito |
cd6676 |
gen_require(`
|
|
Chris PeBenito |
fc4054 |
type rpm_script_t;
|
|
Chris PeBenito |
cd6676 |
')
|
|
Chris PeBenito |
cd6676 |
|
|
Chris PeBenito |
cd6676 |
# transition to rpm script:
|
|
Chris PeBenito |
3f67f7 |
corecmd_shell_domtrans($1, rpm_script_t)
|
|
Chris PeBenito |
cd6676 |
allow rpm_script_t $1:fd use;
|
|
Chris PeBenito |
cd6676 |
allow rpm_script_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
cd6676 |
allow rpm_script_t $1:process sigchld;
|
|
Chris PeBenito |
cd6676 |
')
|
|
Chris PeBenito |
cd6676 |
|
|
Chris PeBenito |
cd6676 |
########################################
|
|
Chris PeBenito |
cd6676 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Execute RPM programs in the RPM domain.
|
|
Chris PeBenito |
ebdc3b |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <param name="role">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## The role to allow the RPM domain.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
992aba |
#
|
|
Chris PeBenito |
199895 |
interface(`rpm_run',`
|
|
Chris PeBenito |
7f2e39 |
gen_require(`
|
|
Chris PeBenito |
7f2e39 |
type rpm_t, rpm_script_t;
|
|
Chris PeBenito |
7f2e39 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c9428d |
rpm_domtrans($1)
|
|
Chris PeBenito |
0c73cd |
role $2 types rpm_t;
|
|
Chris PeBenito |
0c73cd |
role $2 types rpm_script_t;
|
|
Chris PeBenito |
296273 |
seutil_run_loadpolicy(rpm_script_t, $2)
|
|
Chris PeBenito |
296273 |
seutil_run_semanage(rpm_script_t, $2)
|
|
Chris PeBenito |
296273 |
seutil_run_setfiles(rpm_script_t, $2)
|
|
Chris PeBenito |
992aba |
')
|
|
Chris PeBenito |
992aba |
|
|
Chris PeBenito |
992aba |
########################################
|
|
Chris PeBenito |
ebdc3b |
## <summary>
|
|
Chris PeBenito |
522b59 |
## Execute the rpm client in the caller domain.
|
|
Chris PeBenito |
522b59 |
## </summary>
|
|
Chris PeBenito |
522b59 |
## <param name="domain">
|
|
Chris PeBenito |
522b59 |
## <summary>
|
|
Chris PeBenito |
522b59 |
## Domain allowed access.
|
|
Chris PeBenito |
522b59 |
## </summary>
|
|
Chris PeBenito |
522b59 |
## </param>
|
|
Chris PeBenito |
522b59 |
#
|
|
Chris PeBenito |
522b59 |
interface(`rpm_exec',`
|
|
Chris PeBenito |
522b59 |
gen_require(`
|
|
Chris PeBenito |
522b59 |
type rpm_exec_t;
|
|
Chris PeBenito |
522b59 |
')
|
|
Chris PeBenito |
522b59 |
|
|
Chris PeBenito |
522b59 |
corecmd_search_bin($1)
|
|
Chris PeBenito |
0bfccd |
can_exec($1, rpm_exec_t)
|
|
Chris PeBenito |
522b59 |
')
|
|
Chris PeBenito |
522b59 |
|
|
Chris PeBenito |
522b59 |
########################################
|
|
Chris PeBenito |
522b59 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Send a null signal to rpm.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_signull',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
allow $1 rpm_t:process signull;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
########################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Inherit and use file descriptors from RPM.
|
|
Chris PeBenito |
ebdc3b |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
992aba |
#
|
|
Chris PeBenito |
1c1ac6 |
interface(`rpm_use_fds',`
|
|
Chris PeBenito |
7f2e39 |
gen_require(`
|
|
Chris PeBenito |
7f2e39 |
type rpm_t;
|
|
Chris PeBenito |
7f2e39 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 rpm_t:fd use;
|
|
Chris PeBenito |
992aba |
')
|
|
Chris PeBenito |
992aba |
|
|
Chris PeBenito |
992aba |
########################################
|
|
Chris PeBenito |
ebdc3b |
## <summary>
|
|
Chris PeBenito |
b24f35 |
## Read from an unnamed RPM pipe.
|
|
Chris PeBenito |
ebdc3b |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
992aba |
#
|
|
Chris PeBenito |
1815ba |
interface(`rpm_read_pipes',`
|
|
Chris PeBenito |
7f2e39 |
gen_require(`
|
|
Chris PeBenito |
7f2e39 |
type rpm_t;
|
|
Chris PeBenito |
7f2e39 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c0868a |
allow $1 rpm_t:fifo_file read_fifo_file_perms;
|
|
Chris PeBenito |
992aba |
')
|
|
Chris PeBenito |
992aba |
|
|
Chris PeBenito |
992aba |
########################################
|
|
Chris PeBenito |
ebdc3b |
## <summary>
|
|
Chris PeBenito |
b24f35 |
## Read and write an unnamed RPM pipe.
|
|
Chris PeBenito |
b24f35 |
## </summary>
|
|
Chris PeBenito |
b24f35 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
b24f35 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
b24f35 |
## </param>
|
|
Chris PeBenito |
b24f35 |
#
|
|
Chris PeBenito |
1815ba |
interface(`rpm_rw_pipes',`
|
|
Chris PeBenito |
b24f35 |
gen_require(`
|
|
Chris PeBenito |
b24f35 |
type rpm_t;
|
|
Chris PeBenito |
b24f35 |
')
|
|
Chris PeBenito |
b24f35 |
|
|
Chris PeBenito |
c0868a |
allow $1 rpm_t:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
b24f35 |
')
|
|
Chris PeBenito |
b24f35 |
|
|
Chris PeBenito |
b24f35 |
########################################
|
|
Chris PeBenito |
b24f35 |
## <summary>
|
|
Chris PeBenito |
d9845a |
## Send and receive messages from
|
|
Chris PeBenito |
d9845a |
## rpm over dbus.
|
|
Chris PeBenito |
d9845a |
## </summary>
|
|
Chris PeBenito |
d9845a |
## <param name="domain">
|
|
Chris PeBenito |
d9845a |
## <summary>
|
|
Chris PeBenito |
d9845a |
## Domain allowed access.
|
|
Chris PeBenito |
d9845a |
## </summary>
|
|
Chris PeBenito |
d9845a |
## </param>
|
|
Chris PeBenito |
d9845a |
#
|
|
Chris PeBenito |
d9845a |
interface(`rpm_dbus_chat',`
|
|
Chris PeBenito |
d9845a |
gen_require(`
|
|
Chris PeBenito |
d9845a |
type rpm_t;
|
|
Chris PeBenito |
d9845a |
class dbus send_msg;
|
|
Chris PeBenito |
d9845a |
')
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
d9845a |
allow $1 rpm_t:dbus send_msg;
|
|
Chris PeBenito |
d9845a |
allow rpm_t $1:dbus send_msg;
|
|
Chris PeBenito |
d9845a |
')
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
d9845a |
########################################
|
|
Chris PeBenito |
d9845a |
## <summary>
|
|
Chris PeBenito |
160704 |
## Do not audit attempts to send and
|
|
Chris PeBenito |
160704 |
## receive messages from rpm over dbus.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_dontaudit_dbus_chat',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_t;
|
|
Chris PeBenito |
160704 |
class dbus send_msg;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
dontaudit $1 rpm_t:dbus send_msg;
|
|
Chris PeBenito |
160704 |
dontaudit rpm_t $1:dbus send_msg;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
########################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Send and receive messages from
|
|
Chris PeBenito |
160704 |
## rpm_script over dbus.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_script_dbus_chat',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_script_t;
|
|
Chris PeBenito |
160704 |
class dbus send_msg;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
allow $1 rpm_script_t:dbus send_msg;
|
|
Chris PeBenito |
160704 |
allow rpm_script_t $1:dbus send_msg;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
########################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Search RPM log directory.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## The type of the process performing this action.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_search_log',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_log_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
allow $1 rpm_log_t:dir search_dir_perms;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
#####################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Allow the specified domain to append
|
|
Chris PeBenito |
160704 |
## to rpm log files.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_append_log',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_log_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
logging_search_logs($1)
|
|
Chris PeBenito |
160704 |
append_files_pattern($1, rpm_log_t, rpm_log_t)
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
########################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
b24f35 |
## Create, read, write, and delete the RPM log.
|
|
Chris PeBenito |
b24f35 |
## </summary>
|
|
Chris PeBenito |
b24f35 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
b24f35 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
b24f35 |
## </param>
|
|
Chris PeBenito |
b24f35 |
#
|
|
Chris PeBenito |
b24f35 |
interface(`rpm_manage_log',`
|
|
Chris PeBenito |
b24f35 |
gen_require(`
|
|
Chris PeBenito |
b24f35 |
type rpm_log_t;
|
|
Chris PeBenito |
b24f35 |
')
|
|
Chris PeBenito |
b24f35 |
|
|
Chris PeBenito |
1815ba |
logging_rw_generic_log_dirs($1)
|
|
Chris PeBenito |
c0868a |
allow $1 rpm_log_t:file manage_file_perms;
|
|
Chris PeBenito |
b24f35 |
')
|
|
Chris PeBenito |
b24f35 |
|
|
Chris PeBenito |
b24f35 |
########################################
|
|
Chris PeBenito |
b24f35 |
## <summary>
|
|
Chris PeBenito |
df00b2 |
## Inherit and use file descriptors from RPM scripts.
|
|
Chris PeBenito |
df00b2 |
## </summary>
|
|
Chris PeBenito |
df00b2 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
df00b2 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
df00b2 |
## </param>
|
|
Chris PeBenito |
df00b2 |
#
|
|
Chris PeBenito |
15722e |
interface(`rpm_use_script_fds',`
|
|
Chris PeBenito |
df00b2 |
gen_require(`
|
|
Chris PeBenito |
df00b2 |
type rpm_script_t;
|
|
Chris PeBenito |
df00b2 |
')
|
|
Chris PeBenito |
df00b2 |
|
|
Chris PeBenito |
df00b2 |
allow $1 rpm_script_t:fd use;
|
|
Chris PeBenito |
df00b2 |
')
|
|
Chris PeBenito |
df00b2 |
|
|
Chris PeBenito |
df00b2 |
########################################
|
|
Chris PeBenito |
df00b2 |
## <summary>
|
|
Chris PeBenito |
82e284 |
## Create, read, write, and delete RPM
|
|
Chris PeBenito |
82e284 |
## script temporary files.
|
|
Chris PeBenito |
82e284 |
## </summary>
|
|
Chris PeBenito |
82e284 |
## <param name="domain">
|
|
Chris PeBenito |
82e284 |
## <summary>
|
|
Chris PeBenito |
82e284 |
## Domain allowed access.
|
|
Chris PeBenito |
82e284 |
## </summary>
|
|
Chris PeBenito |
82e284 |
## </param>
|
|
Chris PeBenito |
82e284 |
#
|
|
Chris PeBenito |
82e284 |
interface(`rpm_manage_script_tmp_files',`
|
|
Chris PeBenito |
82e284 |
gen_require(`
|
|
Chris PeBenito |
82e284 |
type rpm_script_tmp_t;
|
|
Chris PeBenito |
82e284 |
')
|
|
Chris PeBenito |
82e284 |
|
|
Chris PeBenito |
82e284 |
files_search_tmp($1)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern($1, rpm_script_tmp_t, rpm_script_tmp_t)
|
|
Chris PeBenito |
82e284 |
')
|
|
Chris PeBenito |
82e284 |
|
|
Chris PeBenito |
160704 |
#####################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Allow the specified domain to append
|
|
Chris PeBenito |
160704 |
## to rpm tmp files.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_append_tmp_files',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_tmp_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
files_search_tmp($1)
|
|
Chris PeBenito |
160704 |
append_files_pattern($1, rpm_tmp_t, rpm_tmp_t)
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
########################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Create, read, write, and delete RPM
|
|
Chris PeBenito |
160704 |
## temporary files.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_manage_tmp_files',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_tmp_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
files_search_tmp($1)
|
|
Chris PeBenito |
160704 |
manage_files_pattern($1, rpm_tmp_t, rpm_tmp_t)
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
########################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Read RPM script temporary files.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_read_script_tmp_files',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_script_tmp_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
read_files_pattern($1, rpm_script_tmp_t, rpm_script_tmp_t)
|
|
Chris PeBenito |
160704 |
read_lnk_files_pattern($1, rpm_script_tmp_t, rpm_script_tmp_t)
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
########################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Read the RPM cache.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_read_cache',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_var_cache_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
files_search_var($1)
|
|
Chris PeBenito |
160704 |
allow $1 rpm_var_cache_t:dir list_dir_perms;
|
|
Chris PeBenito |
160704 |
read_files_pattern($1, rpm_var_cache_t, rpm_var_cache_t)
|
|
Chris PeBenito |
160704 |
read_lnk_files_pattern($1, rpm_var_cache_t, rpm_var_cache_t)
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
########################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Create, read, write, and delete the RPM package database.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_manage_cache',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_var_cache_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
files_search_var_lib($1)
|
|
Chris PeBenito |
160704 |
manage_dirs_pattern($1, rpm_var_cache_t, rpm_var_cache_t)
|
|
Chris PeBenito |
160704 |
manage_files_pattern($1, rpm_var_cache_t, rpm_var_cache_t)
|
|
Chris PeBenito |
160704 |
manage_lnk_files_pattern($1, rpm_var_cache_t, rpm_var_cache_t)
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
82e284 |
########################################
|
|
Chris PeBenito |
82e284 |
## <summary>
|
|
Chris PeBenito |
ebdc3b |
## Read the RPM package database.
|
|
Chris PeBenito |
ebdc3b |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
992aba |
#
|
|
Chris PeBenito |
199895 |
interface(`rpm_read_db',`
|
|
Chris PeBenito |
7f2e39 |
gen_require(`
|
|
Chris PeBenito |
1f91e1 |
type rpm_var_lib_t;
|
|
Chris PeBenito |
7f2e39 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
9fd4b8 |
files_search_var_lib($1)
|
|
Chris PeBenito |
c0868a |
allow $1 rpm_var_lib_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern($1, rpm_var_lib_t, rpm_var_lib_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern($1, rpm_var_lib_t, rpm_var_lib_t)
|
|
Chris PeBenito |
992aba |
')
|
|
Chris PeBenito |
992aba |
|
|
Chris PeBenito |
dc771f |
########################################
|
|
Chris PeBenito |
ebdc3b |
## <summary>
|
|
Chris PeBenito |
160704 |
## Delete the RPM package database.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_delete_db',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_var_lib_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
delete_files_pattern($1, rpm_var_lib_t, rpm_var_lib_t)
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
########################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
ebdc3b |
## Create, read, write, and delete the RPM package database.
|
|
Chris PeBenito |
ebdc3b |
## </summary>
|
|
Chris PeBenito |
ebdc3b |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
ebdc3b |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
ebdc3b |
## </param>
|
|
Chris PeBenito |
dc771f |
#
|
|
Chris PeBenito |
199895 |
interface(`rpm_manage_db',`
|
|
Chris PeBenito |
7f2e39 |
gen_require(`
|
|
Chris PeBenito |
b24f35 |
type rpm_var_lib_t;
|
|
Chris PeBenito |
7f2e39 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
9fd4b8 |
files_search_var_lib($1)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern($1, rpm_var_lib_t, rpm_var_lib_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern($1, rpm_var_lib_t, rpm_var_lib_t)
|
|
Chris PeBenito |
dc771f |
')
|
|
Chris PeBenito |
757207 |
|
|
Chris PeBenito |
757207 |
########################################
|
|
Chris PeBenito |
757207 |
## <summary>
|
|
Chris PeBenito |
757207 |
## Do not audit attempts to create, read,
|
|
Chris PeBenito |
757207 |
## write, and delete the RPM package database.
|
|
Chris PeBenito |
757207 |
## </summary>
|
|
Chris PeBenito |
757207 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
757207 |
## Domain to not audit.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
757207 |
## </param>
|
|
Chris PeBenito |
757207 |
#
|
|
Chris PeBenito |
757207 |
interface(`rpm_dontaudit_manage_db',`
|
|
Chris PeBenito |
757207 |
gen_require(`
|
|
Chris PeBenito |
757207 |
type rpm_var_lib_t;
|
|
Chris PeBenito |
757207 |
')
|
|
Chris PeBenito |
757207 |
|
|
Chris PeBenito |
757207 |
dontaudit $1 rpm_var_lib_t:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
dontaudit $1 rpm_var_lib_t:file manage_file_perms;
|
|
Chris PeBenito |
c0868a |
dontaudit $1 rpm_var_lib_t:lnk_file manage_lnk_file_perms;
|
|
Chris PeBenito |
757207 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
#####################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Read rpm pid files.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_read_pid_files',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_var_run_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
read_files_pattern($1,rpm_var_run_t,rpm_var_run_t)
|
|
Chris PeBenito |
160704 |
files_search_pids($1)
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
#####################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Create, read, write, and delete rpm pid files.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_manage_pid_files',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_var_run_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
manage_files_pattern($1,rpm_var_run_t,rpm_var_run_t)
|
|
Chris PeBenito |
160704 |
files_search_pids($1)
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
######################################
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Create files in /var/run with the rpm pid file type.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## <param name="domain">
|
|
Chris PeBenito |
160704 |
## <summary>
|
|
Chris PeBenito |
160704 |
## Domain allowed access.
|
|
Chris PeBenito |
160704 |
## </summary>
|
|
Chris PeBenito |
160704 |
## </param>
|
|
Chris PeBenito |
160704 |
#
|
|
Chris PeBenito |
160704 |
interface(`rpm_pid_filetrans',`
|
|
Chris PeBenito |
160704 |
gen_require(`
|
|
Chris PeBenito |
160704 |
type rpm_var_run_t;
|
|
Chris PeBenito |
160704 |
')
|
|
Chris PeBenito |
160704 |
|
|
Chris PeBenito |
160704 |
files_pid_filetrans($1, rpm_var_run_t, file)
|
|
Chris PeBenito |
160704 |
')
|