Tom Cherry | c149ef7 | 2015-08-14 13:06:31 -0700 | [diff] [blame] | 1 | service netd /system/bin/netd |
| 2 | class main |
Jeff Vander Stoep | 85eb211 | 2019-12-12 10:14:18 +0100 | [diff] [blame] | 3 | capabilities CHOWN DAC_OVERRIDE DAC_READ_SEARCH FOWNER IPC_LOCK KILL NET_ADMIN NET_BIND_SERVICE NET_RAW SETUID SETGID |
Maciej Żenczykowski | 5cf00db | 2021-10-01 01:35:11 -0700 | [diff] [blame] | 4 | group root net_admin |
Tom Cherry | c149ef7 | 2015-08-14 13:06:31 -0700 | [diff] [blame] | 5 | socket dnsproxyd stream 0660 root inet |
| 6 | socket mdns stream 0660 root system |
| 7 | socket fwmarkd stream 0660 root inet |
Nathan Harold | 601c3a0 | 2018-04-04 13:15:31 -0700 | [diff] [blame] | 8 | onrestart restart zygote |
| 9 | onrestart restart zygote_secondary |
Lorenzo Colitti | 9ec46b3 | 2018-12-21 15:02:03 +0900 | [diff] [blame] | 10 | # b/121354779: netd itself is not updatable, but on startup it dlopen()s the resolver library |
| 11 | # from the DNS resolver APEX. Mark it as updatable so init won't start it until all APEX |
| 12 | # packages are ready. |
| 13 | updatable |
Hungming Chen | 99aeade | 2022-01-16 17:25:15 +0800 | [diff] [blame] | 14 | |
| 15 | # Moved from external/android-clat/vendor-464xlat.rc. Since |
| 16 | # clatd is modularized and shipped in apex, migrate the |
| 17 | # clat vendor property to netd. |
| 18 | # |
| 19 | # Certain vendors disable 464xlat by setting a vendor property. |
| 20 | # The connectivity code in the Tethering APEX needs to disable |
| 21 | # 464xlat when the property is set, but it is only allowed to |
| 22 | # access non-vendor system properties. So copy the property to |
| 23 | # a property available to system APIs in android.sysprop. |
| 24 | # |
| 25 | # Arguably this script should live close to the code that uses |
| 26 | # it, but scrips in APEXes are not allowed to use "on property". |
| 27 | # So put it here close to clatd, which is at least related to |
| 28 | # 464xlat. |
| 29 | on property:persist.vendor.net.doxlat=true |
| 30 | setprop net.464xlat.cellular.enabled true |
| 31 | |
| 32 | on property:persist.vendor.net.doxlat=false |
| 33 | setprop net.464xlat.cellular.enabled false |