Chris PeBenito 17de1b
Chris PeBenito 12e9ea
policy_module(networkmanager,1.8.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 17de1b
init_daemon_domain(NetworkManager_t,NetworkManager_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type NetworkManager_var_run_t;
Chris PeBenito 17de1b
files_pid_file(NetworkManager_var_run_t)
Chris PeBenito 17de1b
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 c0868a
allow NetworkManager_t self:capability { kill setgid setuid sys_nice 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 72f82c
can_exec(NetworkManager_t, NetworkManager_exec_t)
Chris PeBenito 72f82c
Chris PeBenito c0868a
manage_dirs_pattern(NetworkManager_t,NetworkManager_var_run_t,NetworkManager_var_run_t)
Chris PeBenito c0868a
manage_files_pattern(NetworkManager_t,NetworkManager_var_run_t,NetworkManager_var_run_t)
Chris PeBenito c0868a
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 17de1b
corenet_tcp_sendrecv_all_if(NetworkManager_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_if(NetworkManager_t)
Chris PeBenito 17de1b
corenet_raw_sendrecv_all_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
libs_use_ld_so(NetworkManager_t)
Chris PeBenito 17de1b
libs_use_shared_libs(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 17de1b
userdom_dontaudit_search_sysadm_home_dirs(NetworkManager_t)
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_users_ttys(NetworkManager_t)
Chris PeBenito 350b6a
# Read gnome-keyring
Chris PeBenito 350b6a
userdom_read_unpriv_users_home_content_files(NetworkManager_t)
Chris PeBenito 17de1b
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 17de1b
	bluetooth_dontaudit_read_helper_files(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 17de1b
	dbus_system_bus_client_template(NetworkManager,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 350b6a
	# Read gnome-keyring
Chris PeBenito 350b6a
	unconfined_read_home_content_files(NetworkManager_t)
Chris PeBenito 350b6a
')
Chris PeBenito 350b6a
Chris PeBenito 350b6a
optional_policy(`
Chris PeBenito 17de1b
	vpn_domtrans(NetworkManager_t)
Chris PeBenito 17de1b
	vpn_signal(NetworkManager_t)
Chris PeBenito 17de1b
')