selinux-policy/refpolicy/policy/modules/services/networkmanager.te

172 lines
5.0 KiB
Plaintext
Raw Normal View History

2005-10-22 17:44:04 +00:00
policy_module(networkmanager,1.2.3)
2005-10-22 17:44:04 +00:00
########################################
#
# Declarations
#
type NetworkManager_t;
type NetworkManager_exec_t;
init_daemon_domain(NetworkManager_t,NetworkManager_exec_t)
type NetworkManager_var_run_t;
files_pid_file(NetworkManager_var_run_t)
########################################
#
# Local policy
#
allow NetworkManager_t self:capability { kill setgid setuid sys_nice dac_override net_admin net_raw net_bind_service ipc_lock};
dontaudit NetworkManager_t self:capability sys_tty_config;
2005-10-23 22:46:06 +00:00
allow NetworkManager_t self:process { setcap getsched signal_perms };
2005-10-22 17:44:04 +00:00
allow NetworkManager_t self:fifo_file rw_file_perms;
allow NetworkManager_t self:unix_dgram_socket { sendto create_socket_perms };
2005-10-22 17:44:04 +00:00
allow NetworkManager_t self:unix_stream_socket create_stream_socket_perms;
allow NetworkManager_t self:netlink_route_socket create_netlink_socket_perms;
2005-10-22 17:44:04 +00:00
allow NetworkManager_t self:tcp_socket create_stream_socket_perms;
allow NetworkManager_t self:udp_socket create_socket_perms;
allow NetworkManager_t self:packet_socket create_socket_perms;
allow NetworkManager_t NetworkManager_var_run_t:file create_file_perms;
allow NetworkManager_t NetworkManager_var_run_t:dir create_dir_perms;
allow NetworkManager_t NetworkManager_var_run_t:sock_file create_file_perms;
2006-02-21 18:40:44 +00:00
files_pid_filetrans(NetworkManager_t,NetworkManager_var_run_t, { dir file sock_file })
2005-10-22 17:44:04 +00:00
kernel_read_system_state(NetworkManager_t)
kernel_read_network_state(NetworkManager_t)
kernel_read_kernel_sysctls(NetworkManager_t)
2005-10-22 17:44:04 +00:00
kernel_load_module(NetworkManager_t)
corenet_tcp_sendrecv_all_if(NetworkManager_t)
corenet_udp_sendrecv_all_if(NetworkManager_t)
corenet_raw_sendrecv_all_if(NetworkManager_t)
corenet_tcp_sendrecv_all_nodes(NetworkManager_t)
corenet_udp_sendrecv_all_nodes(NetworkManager_t)
corenet_raw_sendrecv_all_nodes(NetworkManager_t)
corenet_tcp_sendrecv_all_ports(NetworkManager_t)
corenet_udp_sendrecv_all_ports(NetworkManager_t)
2005-12-06 19:59:50 +00:00
corenet_non_ipsec_sendrecv(NetworkManager_t)
2005-10-22 17:44:04 +00:00
corenet_tcp_bind_all_nodes(NetworkManager_t)
corenet_udp_bind_all_nodes(NetworkManager_t)
corenet_tcp_connect_all_ports(NetworkManager_t)
corenet_udp_bind_isakmp_port(NetworkManager_t)
corenet_udp_bind_dhcpc_port(NetworkManager_t)
dev_read_sysfs(NetworkManager_t)
dev_read_rand(NetworkManager_t)
dev_read_urand(NetworkManager_t)
fs_getattr_all_fs(NetworkManager_t)
fs_search_auto_mountpoints(NetworkManager_t)
mls_file_read_up(NetworkManager_t)
2005-11-25 16:43:03 +00:00
selinux_dontaudit_search_fs(NetworkManager_t)
2005-10-22 17:44:04 +00:00
term_dontaudit_use_console(NetworkManager_t)
corecmd_exec_shell(NetworkManager_t)
corecmd_exec_bin(NetworkManager_t)
corecmd_exec_sbin(NetworkManager_t)
corecmd_exec_ls(NetworkManager_t)
2006-02-20 21:33:25 +00:00
domain_use_interactive_fds(NetworkManager_t)
2005-10-22 17:44:04 +00:00
domain_read_confined_domains_state(NetworkManager_t)
files_read_etc_files(NetworkManager_t)
files_read_etc_runtime_files(NetworkManager_t)
files_read_usr_files(NetworkManager_t)
init_use_fd(NetworkManager_t)
2006-02-02 21:08:12 +00:00
init_use_script_ptys(NetworkManager_t)
init_read_utmp(NetworkManager_t)
2005-10-22 17:44:04 +00:00
init_domtrans_script(NetworkManager_t)
libs_use_ld_so(NetworkManager_t)
libs_use_shared_libs(NetworkManager_t)
logging_send_syslog_msg(NetworkManager_t)
miscfiles_read_localization(NetworkManager_t)
modutils_domtrans_insmod(NetworkManager_t)
seutil_read_config(NetworkManager_t)
sysnet_domtrans_ifconfig(NetworkManager_t)
sysnet_domtrans_dhcpc(NetworkManager_t)
sysnet_signal_dhcpc(NetworkManager_t)
2005-11-25 16:43:03 +00:00
sysnet_read_dhcpc_pid(NetworkManager_t)
sysnet_delete_dhcpc_pid(NetworkManager_t)
sysnet_search_dhcp_state(NetworkManager_t)
2005-10-22 17:44:04 +00:00
# in /etc created by NetworkManager will be labelled net_conf_t.
sysnet_manage_config(NetworkManager_t)
2006-02-21 18:40:44 +00:00
sysnet_etc_filetrans_config(NetworkManager_t)
2005-10-22 17:44:04 +00:00
2006-02-20 21:33:25 +00:00
userdom_dontaudit_use_unpriv_user_fds(NetworkManager_t)
2006-02-21 18:40:44 +00:00
userdom_dontaudit_search_sysadm_home_dirs(NetworkManager_t)
2006-02-02 21:08:12 +00:00
userdom_dontaudit_use_unpriv_users_ttys(NetworkManager_t)
2005-10-22 17:44:04 +00:00
ifdef(`targeted_policy', `
2006-02-02 21:08:12 +00:00
term_dontaudit_use_unallocated_ttys(NetworkManager_t)
term_dontaudit_use_generic_ptys(NetworkManager_t)
files_dontaudit_read_root_files(NetworkManager_t)
2005-10-22 17:44:04 +00:00
')
2005-12-02 22:06:05 +00:00
optional_policy(`bind',`
bind_domtrans(NetworkManager_t)
bind_manage_cache(NetworkManager_t)
bind_signal(NetworkManager_t)
')
optional_policy(`bluetooth',`
bluetooth_dontaudit_read_helper_files(NetworkManager_t)
')
optional_policy(`consoletype',`
2005-10-22 17:44:04 +00:00
consoletype_exec(NetworkManager_t)
')
2005-11-25 16:43:03 +00:00
optional_policy(`dbus',`
gen_require(`
class dbus send_msg;
')
allow NetworkManager_t self:dbus send_msg;
2005-11-25 16:43:03 +00:00
dbus_system_bus_client_template(NetworkManager,NetworkManager_t)
dbus_connect_system_bus(NetworkManager_t)
2006-02-02 21:08:12 +00:00
dbus_send_system_bus(NetworkManager_t)
2005-11-25 16:43:03 +00:00
')
optional_policy(`howl',`
howl_signal(NetworkManager_t)
')
optional_policy(`mount',`
2005-10-22 17:44:04 +00:00
mount_send_nfs_client_request(NetworkManager_t)
')
optional_policy(`nis',`
2005-10-22 17:44:04 +00:00
nis_use_ypbind(NetworkManager_t)
')
optional_policy(`nscd',`
2006-02-02 21:08:12 +00:00
nscd_socket_use(NetworkManager_t)
2005-10-22 17:44:04 +00:00
')
optional_policy(`selinuxutil',`
2005-10-22 17:44:04 +00:00
seutil_sigchld_newrole(NetworkManager_t)
')
optional_policy(`udev',`
2005-10-22 17:44:04 +00:00
udev_read_db(NetworkManager_t)
')
optional_policy(`vpn',`
2005-10-22 17:44:04 +00:00
vpn_domtrans(NetworkManager_t)
2006-01-11 15:28:14 +00:00
vpn_signal(NetworkManager_t)
2005-10-22 17:44:04 +00:00
')