blob: b8f121cda7feada7bdc7b5f0a9dd53820bc5c398 [file] [log] [blame]
Stephen Smalley704744a2014-09-03 11:07:03 -04001# goldfish-setup service: runs init.goldfish.sh script
Jeff Vander Stoep7890fc42015-11-04 08:49:07 -08002type goldfish_setup, domain, domain_deprecated;
Stephen Smalley704744a2014-09-03 11:07:03 -04003type goldfish_setup_exec, exec_type, file_type;
Stephen Smalley704744a2014-09-03 11:07:03 -04004
5init_daemon_domain(goldfish_setup)
6
7# Inherit open file to shell (interpreter) for script.
Nick Kralevich501c88c2016-05-24 17:36:23 -07008allow goldfish_setup shell_exec:file rx_file_perms;
Stephen Smalley704744a2014-09-03 11:07:03 -04009
10# Run ifconfig, route commands to configure interfaces and routes.
11allow goldfish_setup system_file:file execute_no_trans;
Stephen Smalley75770de2015-08-25 11:42:17 -040012allow goldfish_setup toolbox_exec:file rx_file_perms;
Stephen Smalley704744a2014-09-03 11:07:03 -040013allow goldfish_setup self:capability { net_admin net_raw };
14allow goldfish_setup self:udp_socket create_socket_perms;
15
Miroslav Tisma36a76ec2015-12-10 12:23:40 +010016net_domain(goldfish_setup)
17
Stephen Smalley704744a2014-09-03 11:07:03 -040018# Set net.eth0.dns*, debug.sf.nobootanimation
William Robertscccc9012015-05-11 10:23:59 -070019set_prop(goldfish_setup, system_prop)
20set_prop(goldfish_setup, debug_prop)
Yu Ning33dca802015-05-18 17:11:37 +080021
22# Set ro.radio.noril
23set_prop(goldfish_setup, radio_noril_prop)
24
25# Stop ril-daemon service (by setting ctl.stop to ril-daemon, which
26# transforms to a permission check on ctl.ril-daemon).
27set_prop(goldfish_setup, ctl_rildaemon_prop)