aboutsummaryrefslogtreecommitdiff
blob: 171fafb990c180efc97dda386a35cf06f53ea30a (plain)
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
53
54
55
56
57
policy_module(certwatch, 1.8.0)

########################################
#
# Declarations
#

attribute_role certwatch_roles;
roleattribute system_r certwatch_roles;

type certwatch_t;
type certwatch_exec_t;
application_domain(certwatch_t, certwatch_exec_t)
role certwatch_roles types certwatch_t;

########################################
#
# Local policy
#

allow certwatch_t self:capability sys_nice;
allow certwatch_t self:process { setsched getsched };

dev_read_urand(certwatch_t)

files_read_etc_files(certwatch_t)
files_read_usr_files(certwatch_t)
files_read_usr_symlinks(certwatch_t)
files_list_tmp(certwatch_t)

fs_list_inotifyfs(certwatch_t)

auth_manage_cache(certwatch_t)
auth_var_filetrans_cache(certwatch_t)

logging_send_syslog_msg(certwatch_t)

miscfiles_read_all_certs(certwatch_t)
miscfiles_read_localization(certwatch_t)

userdom_use_user_terminals(certwatch_t)
userdom_dontaudit_list_user_home_dirs(certwatch_t)

optional_policy(`
	apache_exec_modules(certwatch_t)
	apache_read_config(certwatch_t)
')

optional_policy(`
	cron_system_entry(certwatch_t, certwatch_exec_t)
')

optional_policy(`
	pcscd_domtrans(certwatch_t)
	pcscd_read_pid_files(certwatch_t)
	pcscd_stream_connect(certwatch_t)
')