Amit Pundir | e721f61 | 2023-11-22 10:37:16 +0530 | [diff] [blame] | 1 | type set_ethaddr, domain; |
| 2 | type set_ethaddr_exec, exec_type, vendor_file_type, file_type; |
Amit Pundir | e0b877a | 2023-07-19 10:17:38 +0530 | [diff] [blame] | 3 | init_daemon_domain(set_ethaddr); |
| 4 | |
| 5 | allow set_ethaddr proc_cmdline:file { open read }; |
| 6 | allow set_ethaddr proc_bootconfig:file { open read }; |
| 7 | allow set_ethaddr rootfs:dir { open read }; |
| 8 | allow set_ethaddr self:capability net_admin; |
Amit Pundir | 94ccdd9 | 2024-02-20 17:50:31 +0530 | [diff] [blame] | 9 | allow set_ethaddr self:capability sys_module; |
Amit Pundir | e721f61 | 2023-11-22 10:37:16 +0530 | [diff] [blame] | 10 | allow set_ethaddr self:udp_socket create_socket_perms; |
| 11 | allow set_ethaddr vendor_file:file execute_no_trans; |
| 12 | allow set_ethaddr vendor_toolbox_exec:file execute_no_trans; |
| 13 | allowxperm set_ethaddr self:udp_socket ioctl { SIOCSIFFLAGS SIOCSIFHWADDR }; |