]> git.ipfire.org Git - people/stevee/selinux-policy.git/blob - policy/modules/services/avahi.te
Bump module versions for release.
[people/stevee/selinux-policy.git] / policy / modules / services / avahi.te
1
2 policy_module(avahi, 1.12.0)
3
4 ########################################
5 #
6 # Declarations
7 #
8
9 type avahi_t;
10 type avahi_exec_t;
11 init_daemon_domain(avahi_t, avahi_exec_t)
12
13 type avahi_initrc_exec_t;
14 init_script_file(avahi_initrc_exec_t)
15
16 type avahi_var_lib_t;
17 files_pid_file(avahi_var_lib_t)
18
19 type avahi_var_run_t;
20 files_pid_file(avahi_var_run_t)
21
22 ########################################
23 #
24 # Local policy
25 #
26
27 allow avahi_t self:capability { dac_override setgid chown fowner kill net_admin net_raw setuid sys_chroot };
28 dontaudit avahi_t self:capability sys_tty_config;
29 allow avahi_t self:process { setrlimit signal_perms getcap setcap };
30 allow avahi_t self:fifo_file rw_fifo_file_perms;
31 allow avahi_t self:unix_stream_socket { connectto create_stream_socket_perms };
32 allow avahi_t self:unix_dgram_socket create_socket_perms;
33 allow avahi_t self:tcp_socket create_stream_socket_perms;
34 allow avahi_t self:udp_socket create_socket_perms;
35 allow avahi_t self:packet_socket create_socket_perms;
36
37 manage_dirs_pattern(avahi_t, avahi_var_lib_t, avahi_var_lib_t)
38 manage_files_pattern(avahi_t, avahi_var_lib_t, avahi_var_lib_t)
39 files_var_lib_filetrans(avahi_t, avahi_var_lib_t, { dir file })
40
41 manage_files_pattern(avahi_t, avahi_var_run_t, avahi_var_run_t)
42 manage_sock_files_pattern(avahi_t, avahi_var_run_t, avahi_var_run_t)
43 allow avahi_t avahi_var_run_t:dir setattr;
44 files_pid_filetrans(avahi_t, avahi_var_run_t, file)
45
46 kernel_read_system_state(avahi_t)
47 kernel_read_kernel_sysctls(avahi_t)
48 kernel_read_network_state(avahi_t)
49
50 corecmd_exec_bin(avahi_t)
51 corecmd_exec_shell(avahi_t)
52
53 corenet_all_recvfrom_unlabeled(avahi_t)
54 corenet_all_recvfrom_netlabel(avahi_t)
55 corenet_tcp_sendrecv_generic_if(avahi_t)
56 corenet_udp_sendrecv_generic_if(avahi_t)
57 corenet_tcp_sendrecv_generic_node(avahi_t)
58 corenet_udp_sendrecv_generic_node(avahi_t)
59 corenet_tcp_sendrecv_all_ports(avahi_t)
60 corenet_udp_sendrecv_all_ports(avahi_t)
61 corenet_tcp_bind_generic_node(avahi_t)
62 corenet_udp_bind_generic_node(avahi_t)
63 corenet_tcp_bind_howl_port(avahi_t)
64 corenet_udp_bind_howl_port(avahi_t)
65 corenet_send_howl_client_packets(avahi_t)
66 corenet_receive_howl_server_packets(avahi_t)
67
68 dev_read_sysfs(avahi_t)
69 dev_read_urand(avahi_t)
70
71 fs_getattr_all_fs(avahi_t)
72 fs_search_auto_mountpoints(avahi_t)
73 fs_list_inotifyfs(avahi_t)
74
75 domain_use_interactive_fds(avahi_t)
76
77 files_read_etc_files(avahi_t)
78 files_read_etc_runtime_files(avahi_t)
79 files_read_usr_files(avahi_t)
80
81 auth_use_nsswitch(avahi_t)
82
83 init_signal_script(avahi_t)
84 init_signull_script(avahi_t)
85
86 logging_send_syslog_msg(avahi_t)
87
88 miscfiles_read_localization(avahi_t)
89 miscfiles_read_certs(avahi_t)
90
91 sysnet_domtrans_ifconfig(avahi_t)
92 sysnet_manage_config(avahi_t)
93 sysnet_etc_filetrans_config(avahi_t)
94
95 userdom_dontaudit_use_unpriv_user_fds(avahi_t)
96 userdom_dontaudit_search_user_home_dirs(avahi_t)
97
98 optional_policy(`
99 dbus_system_domain(avahi_t, avahi_exec_t)
100 dbus_system_bus_client(avahi_t)
101 dbus_connect_system_bus(avahi_t)
102
103 init_dbus_chat_script(avahi_t)
104 ')
105
106 optional_policy(`
107 seutil_sigchld_newrole(avahi_t)
108 ')
109
110 optional_policy(`
111 udev_read_db(avahi_t)
112 ')