|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
668b30 |
policy_module(networkmanager, 1.12.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type NetworkManager_t;
|
|
Chris PeBenito |
17de1b |
type NetworkManager_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(NetworkManager_t, NetworkManager_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
48f645 |
type NetworkManager_initrc_exec_t;
|
|
Chris PeBenito |
48f645 |
init_script_file(NetworkManager_initrc_exec_t)
|
|
Chris PeBenito |
48f645 |
|
|
Chris PeBenito |
ae3386 |
type NetworkManager_log_t;
|
|
Chris PeBenito |
ae3386 |
logging_log_file(NetworkManager_log_t)
|
|
Chris PeBenito |
ae3386 |
|
|
Chris PeBenito |
52ceaa |
type NetworkManager_tmp_t;
|
|
Chris PeBenito |
52ceaa |
files_tmp_file(NetworkManager_tmp_t)
|
|
Chris PeBenito |
52ceaa |
|
|
Chris PeBenito |
17de1b |
type NetworkManager_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(NetworkManager_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
fd49fe |
type wpa_cli_t;
|
|
Chris PeBenito |
fd49fe |
type wpa_cli_exec_t;
|
|
Chris PeBenito |
fd49fe |
init_system_domain(wpa_cli_t, wpa_cli_exec_t)
|
|
Chris PeBenito |
fd49fe |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
5dbda5 |
# networkmanager will ptrace itself if gdb is installed
|
|
Chris PeBenito |
5dbda5 |
# and it receives a unexpected signal (rh bug #204161)
|
|
Chris PeBenito |
4416c4 |
allow NetworkManager_t self:capability { kill setgid setuid dac_override net_admin net_raw net_bind_service ipc_lock };
|
|
Chris PeBenito |
8708d9 |
dontaudit NetworkManager_t self:capability { sys_tty_config sys_ptrace };
|
|
Chris PeBenito |
9af48e |
allow NetworkManager_t self:process { ptrace setcap setpgid getsched signal_perms };
|
|
Chris PeBenito |
c0868a |
allow NetworkManager_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow NetworkManager_t self:unix_dgram_socket { sendto create_socket_perms };
|
|
Chris PeBenito |
17de1b |
allow NetworkManager_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow NetworkManager_t self:netlink_route_socket create_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow NetworkManager_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow NetworkManager_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow NetworkManager_t self:packet_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
fd49fe |
allow NetworkManager_t wpa_cli_t:unix_dgram_socket sendto;
|
|
Chris PeBenito |
fd49fe |
|
|
Chris PeBenito |
72f82c |
can_exec(NetworkManager_t, NetworkManager_exec_t)
|
|
Chris PeBenito |
72f82c |
|
|
Chris PeBenito |
52ceaa |
manage_files_pattern(NetworkManager_t, NetworkManager_log_t, NetworkManager_log_t)
|
|
Chris PeBenito |
52ceaa |
logging_log_filetrans(NetworkManager_t, NetworkManager_log_t, file)
|
|
Chris PeBenito |
52ceaa |
|
|
Chris PeBenito |
fd49fe |
rw_sock_files_pattern(NetworkManager_t, NetworkManager_tmp_t, NetworkManager_tmp_t)
|
|
Chris PeBenito |
fd49fe |
files_search_tmp(NetworkManager_t)
|
|
Chris PeBenito |
52ceaa |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(NetworkManager_t, NetworkManager_var_run_t, NetworkManager_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(NetworkManager_t, NetworkManager_var_run_t, NetworkManager_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(NetworkManager_t, NetworkManager_var_run_t, NetworkManager_var_run_t)
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(NetworkManager_t,NetworkManager_var_run_t, { dir file sock_file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_network_state(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
kernel_load_module(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(NetworkManager_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(NetworkManager_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(NetworkManager_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(NetworkManager_t)
|
|
Chris PeBenito |
668b30 |
corenet_raw_sendrecv_generic_if(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_all_nodes(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_all_nodes(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_isakmp_port(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_dhcpc_port(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_isakmp_server_packets(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_dhcpc_server_packets(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_client_packets(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
dev_read_rand(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
f8233a |
mls_file_read_all_levels(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
selinux_dontaudit_search_fs(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
domain_read_confined_domains_state(NetworkManager_t)
|
|
Chris PeBenito |
8708d9 |
domain_dontaudit_read_all_domains_state(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_read_utmp(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
init_domtrans_script(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
miscfiles_read_certs(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
modutils_domtrans_insmod(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_read_config(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_domtrans_ifconfig(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
sysnet_domtrans_dhcpc(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
sysnet_signal_dhcpc(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
sysnet_read_dhcpc_pid(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
sysnet_delete_dhcpc_pid(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
sysnet_search_dhcp_state(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
# in /etc created by NetworkManager will be labelled net_conf_t.
|
|
Chris PeBenito |
17de1b |
sysnet_manage_config(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
sysnet_etc_filetrans_config(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(NetworkManager_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_use_user_ttys(NetworkManager_t)
|
|
Chris PeBenito |
350b6a |
# Read gnome-keyring
|
|
Chris PeBenito |
296273 |
userdom_read_user_home_content_files(NetworkManager_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
bind_domtrans(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
bind_manage_cache(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
bind_signal(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
296273 |
bluetooth_dontaudit_read_helper_state(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
consoletype_exec(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
296273 |
dbus_system_bus_client(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
dbus_connect_system_bus(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
howl_signal(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
nscd_signal(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
72f82c |
openvpn_domtrans(NetworkManager_t)
|
|
Chris PeBenito |
72f82c |
openvpn_signal(NetworkManager_t)
|
|
Chris PeBenito |
72f82c |
')
|
|
Chris PeBenito |
72f82c |
|
|
Chris PeBenito |
72f82c |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
ppp_domtrans(NetworkManager_t)
|
|
Chris PeBenito |
8708d9 |
ppp_read_pid_files(NetworkManager_t)
|
|
Chris PeBenito |
693d4a |
ppp_signal(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
vpn_domtrans(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
vpn_signal(NetworkManager_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
fd49fe |
|
|
Chris PeBenito |
fd49fe |
########################################
|
|
Chris PeBenito |
fd49fe |
#
|
|
Chris PeBenito |
fd49fe |
# wpa_cli local policy
|
|
Chris PeBenito |
fd49fe |
#
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
fd49fe |
allow wpa_cli_t self:capability dac_override;
|
|
Chris PeBenito |
fd49fe |
allow wpa_cli_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
fd49fe |
|
|
Chris PeBenito |
fd49fe |
allow wpa_cli_t NetworkManager_t:unix_dgram_socket sendto;
|
|
Chris PeBenito |
fd49fe |
|
|
Chris PeBenito |
fd49fe |
manage_sock_files_pattern(wpa_cli_t, NetworkManager_tmp_t, NetworkManager_tmp_t)
|
|
Chris PeBenito |
fd49fe |
files_tmp_filetrans(wpa_cli_t, NetworkManager_tmp_t, sock_file)
|
|
Chris PeBenito |
fd49fe |
|
|
Chris PeBenito |
fd49fe |
list_dirs_pattern(wpa_cli_t, NetworkManager_var_run_t, NetworkManager_var_run_t)
|
|
Chris PeBenito |
fd49fe |
rw_sock_files_pattern(wpa_cli_t, NetworkManager_var_run_t, NetworkManager_var_run_t)
|
|
Chris PeBenito |
fd49fe |
|
|
Chris PeBenito |
fd49fe |
init_dontaudit_use_fds(wpa_cli_t)
|
|
Chris PeBenito |
fd49fe |
init_use_script_ptys(wpa_cli_t)
|
|
Chris PeBenito |
fd49fe |
|
|
Chris PeBenito |
fd49fe |
miscfiles_read_localization(wpa_cli_t)
|
|
Chris PeBenito |
fd49fe |
|
|
Chris PeBenito |
fd49fe |
term_dontaudit_use_console(wpa_cli_t)
|