blob: 654dae50f998d58a4216c68c65462c718a480e47 [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# network manager
2type netd, domain;
3type netd_exec, exec_type, file_type;
4
5init_daemon_domain(netd)
6typeattribute netd mlstrustedsubject;
rpcraigff7e5302012-12-04 08:09:02 -05007allow netd self:capability { net_admin net_raw sys_module kill };
Stephen Smalley2dd4e512012-01-04 12:33:27 -05008allow netd self:netlink_kobject_uevent_socket *;
9allow netd self:netlink_route_socket *;
10allow netd self:netlink_nflog_socket *;
11allow netd self:rawip_socket *;
12allow netd self:udp_socket *;
13allow netd node:udp_socket node_bind;
14allow netd port:udp_socket name_bind;
15allow netd self:unix_stream_socket *;
16allow netd shell_exec:file rx_file_perms;
17allow netd system_file:file x_file_perms;
18allow netd devpts:chr_file rw_file_perms;
19
20# For /proc/sys/net/ipv[46]/route/flush.
21# XXX Split /proc/sys/net into its own type.
22allow netd proc:file write;
23
Stephen Smalleyc94e2392012-01-06 10:25:53 -050024# For /sys/modules/bcmdhd/parameters/firmware_path
Stephen Smalley2dd4e512012-01-04 12:33:27 -050025# XXX Split into its own type.
26allow netd sysfs:file write;
27
Stephen Smalleyc94e2392012-01-06 10:25:53 -050028# Network driver loading.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050029allow netd kernel:system module_request;
30
rpcraigff7e5302012-12-04 08:09:02 -050031# Set dhcp lease for PAN connection
32unix_socket_connect(netd, property, init)
33allow netd system_prop:property_service set;
34
35# Connect to PAN
36domain_auto_trans(netd, dhcp_exec, dhcp);
37allow netd dhcp:process signal;