Oreon-Lime-R2/selinux-policy/selinux-policy-bc228bd/selinux-policy-bc228bd0c249a9e4aa3dcf238c2b1bb138943b07/policy/modules/contrib/lightsquid.te

49 lines
1.4 KiB
Text
Raw Normal View History

policy_module(lightsquid, 1.1.0)
########################################
#
# Declarations
#
attribute_role lightsquid_roles;
roleattribute system_r lightsquid_roles;
type lightsquid_t;
type lightsquid_exec_t;
application_domain(lightsquid_t, lightsquid_exec_t)
role lightsquid_roles types lightsquid_t;
type lightsquid_report_content_t;
files_type(lightsquid_report_content_t)
########################################
#
# Local policy
#
manage_dirs_pattern(lightsquid_t, lightsquid_report_content_t, lightsquid_report_content_t)
manage_files_pattern(lightsquid_t, lightsquid_report_content_t, lightsquid_report_content_t)
manage_lnk_files_pattern(lightsquid_t, lightsquid_report_content_t, lightsquid_report_content_t)
files_var_filetrans(lightsquid_t, lightsquid_report_content_t, dir)
corecmd_exec_bin(lightsquid_t)
corecmd_exec_shell(lightsquid_t)
dev_read_urand(lightsquid_t)
squid_read_config(lightsquid_t)
squid_read_log(lightsquid_t)
optional_policy(`
apache_content_template(lightsquid)
apache_content_alias_template(lightsquid, lightsquid)
list_dirs_pattern(lightsquid_script_t, lightsquid_report_content_t, lightsquid_report_content_t)
read_files_pattern(lightsquid_script_t, lightsquid_report_content_t, lightsquid_report_content_t)
read_lnk_files_pattern(lightsquid_script_t, lightsquid_report_content_t, lightsquid_report_content_t)
')
optional_policy(`
cron_system_entry(lightsquid_t, lightsquid_exec_t)
')