blob: 2f92368602e23e57cd29b85848de5bd604296bb5 [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 Pundir94ccdd92024-02-20 17:50:31 +05309allow set_ethaddr self:capability sys_module;
Amit Pundire721f612023-11-22 10:37:16 +053010allow set_ethaddr self:udp_socket create_socket_perms;
11allow set_ethaddr vendor_file:file execute_no_trans;
12allow set_ethaddr vendor_toolbox_exec:file execute_no_trans;
13allowxperm set_ethaddr self:udp_socket ioctl { SIOCSIFFLAGS SIOCSIFHWADDR };