]> git.ipfire.org Git - people/stevee/selinux-policy.git/blame - policy/modules/services/matahari.te
Policy cleanup for upstream acceptance
[people/stevee/selinux-policy.git] / policy / modules / services / matahari.te
CommitLineData
b6df0faf
DW
1policy_module(matahari,1.0.0)
2
3########################################
4#
5# Declarations
6#
7
ad3f3631 8attribute matahari_domain;
b6df0faf 9
d8a1e83e
MG
10matahari_domain_template(hostd)
11matahari_domain_template(netd)
12matahari_domain_template(serviced)
d6771a7e 13matahari_domain_template(sysconfigd)
b6df0faf
DW
14
15type matahari_initrc_exec_t;
16init_script_file(matahari_initrc_exec_t)
17
b6df0faf
DW
18type matahari_var_lib_t;
19files_type(matahari_var_lib_t)
20
21type matahari_var_run_t;
22files_pid_file(matahari_var_run_t)
23
24########################################
25#
26# matahari_hostd local policy
27#
b6df0faf 28kernel_read_network_state(matahari_hostd_t)
b6df0faf
DW
29
30dev_read_sysfs(matahari_hostd_t)
241ff5ca 31dev_rw_mtrr(matahari_hostd_t)
b6df0faf
DW
32
33domain_use_interactive_fds(matahari_hostd_t)
34domain_read_all_domains_state(matahari_hostd_t)
35
b6df0faf
DW
36optional_policy(`
37 dbus_system_bus_client(matahari_hostd_t)
38')
39
40########################################
41#
42# matahari_netd local policy
43#
b6df0faf
DW
44
45domain_use_interactive_fds(matahari_netd_t)
46
e43da3a5
MG
47optional_policy(`
48 dbus_system_bus_client(matahari_netd_t)
49')
b6df0faf
DW
50
51########################################
52#
53# matahari_serviced local policy
54#
529a547a
DW
55allow matahari_serviced_t self:process setpgid;
56
57kernel_read_network_state(matahari_serviced_t)
58
59dev_read_sysfs(matahari_serviced_t)
b6df0faf 60
d8a1e83e 61domain_use_interactive_fds(matahari_serviced_t)
529a547a 62
14b81b8c
DW
63files_read_etc_runtime_files(matahari_serviced_t)
64
99962fff 65init_domtrans_script(matahari_serviced_t)
529a547a 66
99962fff 67systemd_config_all_services(matahari_serviced_t)
b6df0faf 68
14b81b8c
DW
69########################################
70#
71# matahari_sysconfigd local policy
72#
73dev_read_sysfs(matahari_sysconfigd_t)
74
d8a1e83e
MG
75#######################################
76#
77# matahari domain local policy
78#
b6df0faf 79
0703a8c8 80allow matahari_domain self:process signal;
b6df0faf 81
d8a1e83e
MG
82allow matahari_domain self:fifo_file rw_fifo_file_perms;
83allow matahari_domain self:unix_stream_socket create_stream_socket_perms;
b6df0faf 84
d8a1e83e
MG
85kernel_read_system_state(matahari_domain)
86
87corenet_tcp_connect_matahari_port(matahari_domain)
b6df0faf 88
d8a1e83e 89dev_read_urand(matahari_domain)
b6df0faf 90
d8a1e83e 91files_read_etc_files(matahari_domain)
b6df0faf 92
d8a1e83e 93logging_send_syslog_msg(matahari_domain)
b6df0faf 94
d8a1e83e 95miscfiles_read_localization(matahari_domain)
b6df0faf 96
d8a1e83e 97sysnet_dns_name_resolve(matahari_domain)