Chris PeBenito 239db5
Chris PeBenito 2b3c99
policy_module(networkmanager,1.3.0)
Chris PeBenito 239db5
Chris PeBenito 239db5
########################################
Chris PeBenito 239db5
#
Chris PeBenito 239db5
# Declarations
Chris PeBenito 239db5
#
Chris PeBenito 239db5
Chris PeBenito 239db5
type NetworkManager_t;
Chris PeBenito 239db5
type NetworkManager_exec_t;
Chris PeBenito 239db5
init_daemon_domain(NetworkManager_t,NetworkManager_exec_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
type NetworkManager_var_run_t;
Chris PeBenito 239db5
files_pid_file(NetworkManager_var_run_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
########################################
Chris PeBenito 239db5
#
Chris PeBenito 239db5
# Local policy
Chris PeBenito 239db5
#
Chris PeBenito 239db5
Chris PeBenito 239db5
allow NetworkManager_t self:capability { kill setgid setuid sys_nice dac_override net_admin net_raw net_bind_service ipc_lock};
Chris PeBenito 239db5
dontaudit NetworkManager_t self:capability sys_tty_config;
Chris PeBenito f85544
allow NetworkManager_t self:process { setcap getsched signal_perms };
Chris PeBenito 239db5
allow NetworkManager_t self:fifo_file rw_file_perms;
Chris PeBenito 8cf671
allow NetworkManager_t self:unix_dgram_socket { sendto create_socket_perms };
Chris PeBenito 239db5
allow NetworkManager_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 955019
allow NetworkManager_t self:netlink_route_socket create_netlink_socket_perms;
Chris PeBenito 239db5
allow NetworkManager_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 239db5
allow NetworkManager_t self:udp_socket create_socket_perms;
Chris PeBenito 239db5
allow NetworkManager_t self:packet_socket create_socket_perms;
Chris PeBenito 239db5
Chris PeBenito 239db5
allow NetworkManager_t NetworkManager_var_run_t:file create_file_perms;
Chris PeBenito b0d224
allow NetworkManager_t NetworkManager_var_run_t:dir create_dir_perms;
Chris PeBenito b0d224
allow NetworkManager_t NetworkManager_var_run_t:sock_file create_file_perms;
Chris PeBenito 103fe2
files_pid_filetrans(NetworkManager_t,NetworkManager_var_run_t, { dir file sock_file })
Chris PeBenito 239db5
Chris PeBenito 239db5
kernel_read_system_state(NetworkManager_t)
Chris PeBenito 239db5
kernel_read_network_state(NetworkManager_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(NetworkManager_t)
Chris PeBenito 239db5
kernel_load_module(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
corenet_tcp_sendrecv_all_if(NetworkManager_t)
Chris PeBenito 239db5
corenet_udp_sendrecv_all_if(NetworkManager_t)
Chris PeBenito 239db5
corenet_raw_sendrecv_all_if(NetworkManager_t)
Chris PeBenito 239db5
corenet_tcp_sendrecv_all_nodes(NetworkManager_t)
Chris PeBenito 239db5
corenet_udp_sendrecv_all_nodes(NetworkManager_t)
Chris PeBenito 239db5
corenet_raw_sendrecv_all_nodes(NetworkManager_t)
Chris PeBenito 239db5
corenet_tcp_sendrecv_all_ports(NetworkManager_t)
Chris PeBenito 239db5
corenet_udp_sendrecv_all_ports(NetworkManager_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(NetworkManager_t)
Chris PeBenito 239db5
corenet_tcp_bind_all_nodes(NetworkManager_t)
Chris PeBenito 239db5
corenet_udp_bind_all_nodes(NetworkManager_t)
Chris PeBenito 239db5
corenet_tcp_connect_all_ports(NetworkManager_t)
Chris PeBenito 239db5
corenet_udp_bind_isakmp_port(NetworkManager_t)
Chris PeBenito 239db5
corenet_udp_bind_dhcpc_port(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
dev_read_sysfs(NetworkManager_t)
Chris PeBenito 239db5
dev_read_rand(NetworkManager_t)
Chris PeBenito 239db5
dev_read_urand(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
fs_getattr_all_fs(NetworkManager_t)
Chris PeBenito 239db5
fs_search_auto_mountpoints(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
mls_file_read_up(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito d828b5
selinux_dontaudit_search_fs(NetworkManager_t)
Chris PeBenito d828b5
Chris PeBenito 239db5
term_dontaudit_use_console(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
corecmd_exec_shell(NetworkManager_t)
Chris PeBenito 239db5
corecmd_exec_bin(NetworkManager_t)
Chris PeBenito 239db5
corecmd_exec_sbin(NetworkManager_t)
Chris PeBenito 239db5
corecmd_exec_ls(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 15722e
domain_use_interactive_fds(NetworkManager_t)
Chris PeBenito 239db5
domain_read_confined_domains_state(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
files_read_etc_files(NetworkManager_t)
Chris PeBenito 239db5
files_read_etc_runtime_files(NetworkManager_t)
Chris PeBenito 239db5
files_read_usr_files(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 1c1ac6
init_use_fds(NetworkManager_t)
Chris PeBenito 1815ba
init_use_script_ptys(NetworkManager_t)
Chris PeBenito 68228b
init_read_utmp(NetworkManager_t)
Chris PeBenito 239db5
init_domtrans_script(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
libs_use_ld_so(NetworkManager_t)
Chris PeBenito 239db5
libs_use_shared_libs(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
logging_send_syslog_msg(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
miscfiles_read_localization(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
modutils_domtrans_insmod(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
seutil_read_config(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
sysnet_domtrans_ifconfig(NetworkManager_t)
Chris PeBenito 239db5
sysnet_domtrans_dhcpc(NetworkManager_t)
Chris PeBenito 239db5
sysnet_signal_dhcpc(NetworkManager_t)
Chris PeBenito d828b5
sysnet_read_dhcpc_pid(NetworkManager_t)
Chris PeBenito d828b5
sysnet_delete_dhcpc_pid(NetworkManager_t)
Chris PeBenito d828b5
sysnet_search_dhcp_state(NetworkManager_t)
Chris PeBenito 239db5
# in /etc created by NetworkManager will be labelled net_conf_t.
Chris PeBenito 239db5
sysnet_manage_config(NetworkManager_t)
Chris PeBenito 103fe2
sysnet_etc_filetrans_config(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 15722e
userdom_dontaudit_use_unpriv_user_fds(NetworkManager_t)
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(NetworkManager_t)
Chris PeBenito 1815ba
userdom_dontaudit_use_unpriv_users_ttys(NetworkManager_t)
Chris PeBenito 239db5
Chris PeBenito 239db5
ifdef(`targeted_policy', `
Chris PeBenito 1815ba
	term_dontaudit_use_unallocated_ttys(NetworkManager_t)
Chris PeBenito 1815ba
	term_dontaudit_use_generic_ptys(NetworkManager_t)
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(NetworkManager_t)
Chris PeBenito 239db5
')
Chris PeBenito 239db5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 6f81e1
	bind_domtrans(NetworkManager_t)
Chris PeBenito 6f81e1
	bind_manage_cache(NetworkManager_t)
Chris PeBenito 6f81e1
	bind_signal(NetworkManager_t)
Chris PeBenito 6f81e1
')
Chris PeBenito 6f81e1
Chris PeBenito bb7170
optional_policy(`
Don Miner d2c573
	bluetooth_dontaudit_read_helper_files(NetworkManager_t)
Don Miner 9c4fcf
')
Don Miner 9c4fcf
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 239db5
	consoletype_exec(NetworkManager_t)
Chris PeBenito 239db5
')
Chris PeBenito 239db5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito f525b4
	gen_require(`
Chris PeBenito f525b4
		class dbus send_msg;
Chris PeBenito f525b4
	')
Chris PeBenito f525b4
Chris PeBenito f525b4
	allow NetworkManager_t self:dbus send_msg;
Chris PeBenito f525b4
Chris PeBenito d828b5
	dbus_system_bus_client_template(NetworkManager,NetworkManager_t)
Chris PeBenito d828b5
	dbus_connect_system_bus(NetworkManager_t)
Chris PeBenito 1815ba
	dbus_send_system_bus(NetworkManager_t)
Chris PeBenito d828b5
')
Chris PeBenito d828b5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito d828b5
	howl_signal(NetworkManager_t)
Chris PeBenito d828b5
')
Chris PeBenito d828b5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 239db5
	mount_send_nfs_client_request(NetworkManager_t)
Chris PeBenito 239db5
')
Chris PeBenito 239db5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 239db5
	nis_use_ypbind(NetworkManager_t)
Chris PeBenito 239db5
')
Chris PeBenito 239db5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 1815ba
	nscd_socket_use(NetworkManager_t)
Chris PeBenito 239db5
')
Chris PeBenito 239db5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 239db5
	seutil_sigchld_newrole(NetworkManager_t)
Chris PeBenito 239db5
')
Chris PeBenito 239db5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 239db5
	udev_read_db(NetworkManager_t)
Chris PeBenito 239db5
')
Chris PeBenito 239db5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 239db5
	vpn_domtrans(NetworkManager_t)
Chris PeBenito a77e65
	vpn_signal(NetworkManager_t)
Chris PeBenito 239db5
')