forked from OwlCyberDefense/refpolicy-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlightsquid.te
52 lines (38 loc) · 1.42 KB
/
lightsquid.te
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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_rw_content_t;
files_type(lightsquid_rw_content_t)
########################################
#
# Local policy
#
manage_dirs_pattern(lightsquid_t, lightsquid_rw_content_t, lightsquid_rw_content_t)
manage_files_pattern(lightsquid_t, lightsquid_rw_content_t, lightsquid_rw_content_t)
manage_lnk_files_pattern(lightsquid_t, lightsquid_rw_content_t, lightsquid_rw_content_t)
files_var_filetrans(lightsquid_t, lightsquid_rw_content_t, dir)
corecmd_exec_bin(lightsquid_t)
corecmd_exec_shell(lightsquid_t)
dev_read_urand(lightsquid_t)
files_read_etc_files(lightsquid_t)
files_read_usr_files(lightsquid_t)
miscfiles_read_localization(lightsquid_t)
squid_read_config(lightsquid_t)
squid_read_log(lightsquid_t)
optional_policy(`
apache_content_template(lightsquid)
list_dirs_pattern(httpd_lightsquid_script_t, lightsquid_rw_content_t, lightsquid_rw_content_t)
read_files_pattern(httpd_lightsquid_script_t, lightsquid_rw_content_t, lightsquid_rw_content_t)
read_lnk_files_pattern(httpd_lightsquid_script_t, lightsquid_rw_content_t, lightsquid_rw_content_t)
')
optional_policy(`
cron_system_entry(lightsquid_t, lightsquid_exec_t)
')