2021-01-25 13:27:35 +00:00
|
|
|
policy_module(vdagent, 1.7.1)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type vdagent_t;
|
|
|
|
type vdagent_exec_t;
|
|
|
|
init_daemon_domain(vdagent_t, vdagent_exec_t)
|
|
|
|
|
|
|
|
type vdagentd_initrc_exec_t;
|
|
|
|
init_script_file(vdagentd_initrc_exec_t)
|
|
|
|
|
|
|
|
type vdagent_log_t;
|
|
|
|
logging_log_file(vdagent_log_t)
|
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type vdagent_runtime_t alias vdagent_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(vdagent_runtime_t)
|
2019-09-11 00:05:46 +00:00
|
|
|
|
2018-06-23 13:00:56 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
dontaudit vdagent_t self:capability sys_admin;
|
|
|
|
allow vdagent_t self:process signal;
|
|
|
|
allow vdagent_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow vdagent_t self:unix_stream_socket { accept listen };
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_dirs_pattern(vdagent_t, vdagent_runtime_t, vdagent_runtime_t)
|
|
|
|
manage_files_pattern(vdagent_t, vdagent_runtime_t, vdagent_runtime_t)
|
|
|
|
manage_sock_files_pattern(vdagent_t, vdagent_runtime_t, vdagent_runtime_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(vdagent_t, vdagent_runtime_t, { dir file sock_file })
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
manage_dirs_pattern(vdagent_t, vdagent_log_t, vdagent_log_t)
|
|
|
|
append_files_pattern(vdagent_t, vdagent_log_t, vdagent_log_t)
|
|
|
|
create_files_pattern(vdagent_t, vdagent_log_t, vdagent_log_t)
|
|
|
|
setattr_files_pattern(vdagent_t, vdagent_log_t, vdagent_log_t)
|
|
|
|
logging_log_filetrans(vdagent_t, vdagent_log_t, file)
|
|
|
|
|
|
|
|
dev_rw_input_dev(vdagent_t)
|
|
|
|
dev_rw_mtrr(vdagent_t)
|
|
|
|
dev_read_sysfs(vdagent_t)
|
|
|
|
dev_dontaudit_write_mtrr(vdagent_t)
|
|
|
|
|
|
|
|
files_read_etc_files(vdagent_t)
|
|
|
|
|
|
|
|
term_use_virtio_console(vdagent_t)
|
|
|
|
|
|
|
|
init_read_state(vdagent_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(vdagent_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(vdagent_t)
|
|
|
|
|
|
|
|
userdom_read_all_users_state(vdagent_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dbus_system_bus_client(vdagent_t)
|
|
|
|
')
|