blob: eb913e921ed064cbf4c7e126952c181116d992b4 [file] [log] [blame]
Stephen Smalley704744a2014-09-03 11:07:03 -04001# goldfish-setup service: runs init.goldfish.sh script
Jeff Vander Stoepec488e12017-05-15 13:25:06 -07002type goldfish_setup, domain;
bohucb0bebb2017-05-26 10:26:15 -07003type goldfish_setup_exec, vendor_file_type, exec_type, file_type;
Stephen Smalley704744a2014-09-03 11:07:03 -04004
5init_daemon_domain(goldfish_setup)
6
bohu7b46d572017-12-04 12:57:10 -08007set_prop(goldfish_setup, debug_prop);
Stephen Smalley704744a2014-09-03 11:07:03 -04008allow goldfish_setup self:capability { net_admin net_raw };
bohucb0bebb2017-05-26 10:26:15 -07009allow goldfish_setup self:udp_socket { create ioctl };
10allow goldfish_setup vendor_toolbox_exec:file execute_no_trans;
Richard Haines8a09cc22016-10-20 15:47:44 +010011allowxperm goldfish_setup self:udp_socket ioctl priv_sock_ioctls;
bohucb0bebb2017-05-26 10:26:15 -070012wakelock_use(goldfish_setup);
13allow goldfish_setup vendor_shell_exec:file { rx_file_perms };