diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2012-03-27 16:59:27 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2012-04-06 15:38:21 -0700 |
commit | 1d91fcf7c0a31d27097b196579a37873ba1c0934 (patch) | |
tree | 198e0ee95c9be4951611388f80ec170e30c94db6 | |
parent | c8583c680a62dcd8f66952a71cd986f477aa1241 (diff) | |
download | core-1d91fcf7c0a31d27097b196579a37873ba1c0934.tar.gz core-1d91fcf7c0a31d27097b196579a37873ba1c0934.tar.bz2 core-1d91fcf7c0a31d27097b196579a37873ba1c0934.zip |
Add MDNS service
Adds both the new service and another socket for netd.
Change-Id: Ie0271a2c48aa55217ae3fcdcc8e121b86b5a589b
-rw-r--r-- | include/private/android_filesystem_config.h | 4 | ||||
-rw-r--r-- | rootdir/init.rc | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index 8e9edd918..16bedb5c6 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -53,7 +53,7 @@ #define AID_KEYSTORE 1017 /* keystore subsystem */ #define AID_USB 1018 /* USB devices */ #define AID_DRM 1019 /* DRM server */ -#define AID_AVAILABLE 1020 /* available for use */ +#define AID_MDNSR 1020 /* MulticastDNSResponder (service discovery) */ #define AID_GPS 1021 /* GPS daemon */ #define AID_UNUSED1 1022 /* deprecated, DO NOT USE */ #define AID_MEDIA_RW 1023 /* internal media storage write access */ @@ -111,7 +111,7 @@ static const struct android_id_info android_ids[] = { { "install", AID_INSTALL, }, { "media", AID_MEDIA, }, { "drm", AID_DRM, }, - { "available", AID_AVAILABLE, }, + { "mdnsr", AID_MDNSR, }, { "nfc", AID_NFC, }, { "drmrpc", AID_DRMRPC, }, { "shell", AID_SHELL, }, diff --git a/rootdir/init.rc b/rootdir/init.rc index 71ec3fad8..a0e4d19bd 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -398,6 +398,7 @@ service netd /system/bin/netd class main socket netd stream 0660 root system socket dnsproxyd stream 0660 root inet + socket mdns stream 0660 root system service debuggerd /system/bin/debuggerd class main @@ -495,3 +496,12 @@ service dumpstate /system/bin/dumpstate -s service sshd /system/bin/start-ssh class main disabled + +service mdnsd /system/bin/mdnsd + class main + user mdnsr + group inet net_raw + socket mdnsd stream 0660 mdnsr inet + disabled + oneshot + |