blob: ee9f3c6eaf275c87bed1d3bdf849d04df45c62cf (
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
|
policy_module(tcsd, 1.0.0)
########################################
#
# Declarations
#
type tcsd_t;
type tcsd_exec_t;
domain_type(tcsd_t)
init_daemon_domain(tcsd_t, tcsd_exec_t)
type tcsd_initrc_exec_t;
init_script_file(tcsd_initrc_exec_t)
type tcsd_var_lib_t;
files_type(tcsd_var_lib_t)
########################################
#
# tcsd local policy
#
allow tcsd_t self:capability { dac_override setuid };
allow tcsd_t self:process { signal sigkill };
allow tcsd_t self:tcp_socket create_stream_socket_perms;
manage_dirs_pattern(tcsd_t, tcsd_var_lib_t, tcsd_var_lib_t)
manage_files_pattern(tcsd_t, tcsd_var_lib_t, tcsd_var_lib_t)
files_var_lib_filetrans(tcsd_t, tcsd_var_lib_t, { file dir })
# Accept connections on the TCS port over loopback.
corenet_all_recvfrom_unlabeled(tcsd_t)
corenet_tcp_bind_generic_node(tcsd_t)
corenet_tcp_bind_tcs_port(tcsd_t)
dev_read_urand(tcsd_t)
# Access /dev/tpm0.
dev_rw_tpm(tcsd_t)
files_read_etc_files(tcsd_t)
files_read_usr_files(tcsd_t)
auth_use_nsswitch(tcsd_t)
logging_send_syslog_msg(tcsd_t)
miscfiles_read_localization(tcsd_t)
sysnet_dns_name_resolve(tcsd_t)
|