blob: 86f9ea80028142d4a9ae1ce63944eac0368078ba [file] [log] [blame]
Amit Pundire721f612023-11-22 10:37:16 +05301type set_ethaddr, domain;
2type set_ethaddr_exec, exec_type, vendor_file_type, file_type;
Amit Pundire0b877a2023-07-19 10:17:38 +05303init_daemon_domain(set_ethaddr);
4
5allow set_ethaddr proc_cmdline:file { open read };
6allow set_ethaddr proc_bootconfig:file { open read };
7allow set_ethaddr rootfs:dir { open read };
8allow set_ethaddr self:capability net_admin;
Amit Pundire721f612023-11-22 10:37:16 +05309allow set_ethaddr self:udp_socket create_socket_perms;
10allow set_ethaddr vendor_file:file execute_no_trans;
11allow set_ethaddr vendor_toolbox_exec:file execute_no_trans;
12allowxperm set_ethaddr self:udp_socket ioctl { SIOCSIFFLAGS SIOCSIFHWADDR };