From 1d91fcf7c0a31d27097b196579a37873ba1c0934 Mon Sep 17 00:00:00 2001 From: Robert Greenwalt Date: Tue, 27 Mar 2012 16:59:27 -0700 Subject: Add MDNS service Adds both the new service and another socket for netd. Change-Id: Ie0271a2c48aa55217ae3fcdcc8e121b86b5a589b --- include/private/android_filesystem_config.h | 4 ++-- 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 + -- cgit v1.2.3