• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type dhcp, domain;
2type dhcp_exec, system_file_type, exec_type, file_type;
3
4net_domain(dhcp)
5
6allow dhcp cgroup:dir { create write add_name };
7allow dhcp cgroup_v2:dir { create write add_name };
8allow dhcp self:global_capability_class_set { setgid setuid net_admin net_raw net_bind_service };
9allow dhcp self:packet_socket create_socket_perms_no_ioctl;
10allow dhcp self:netlink_route_socket nlmsg_write;
11allow dhcp shell_exec:file rx_file_perms;
12allow dhcp system_file:file rx_file_perms;
13not_full_treble(`allow dhcp vendor_file:file rx_file_perms;')
14
15# dhcpcd runs dhcpcd-hooks/*, which runs getprop / setprop (toolbox_exec)
16allow dhcp toolbox_exec:file rx_file_perms;
17
18# For /proc/sys/net/ipv4/conf/*/promote_secondaries
19allow dhcp proc_net_type:file write;
20
21allow dhcp dhcp_data_file:dir create_dir_perms;
22allow dhcp dhcp_data_file:file create_file_perms;
23
24# PAN connections
25allow dhcp netd:fd use;
26allow dhcp netd:fifo_file rw_file_perms;
27allow dhcp netd:{ dgram_socket_class_set unix_stream_socket } { read write };
28allow dhcp netd:{ netlink_kobject_uevent_socket netlink_route_socket netlink_nflog_socket } { read write };
29