Merge "minadbd: More allowed properties." am: 1ef7f92871 am: 6c37304201

am: 9b2cfec8dd

Change-Id: I9f8a5adacd97e02a893924b8d450ac994df37015
This commit is contained in:
Tao Bao
2019-06-04 19:56:00 -07:00
committed by android-build-merger

View File

@@ -158,8 +158,15 @@ static void RescueInstallHostService(unique_fd sfd, const std::string& args) {
static void RescueGetpropHostService(unique_fd sfd, const std::string& prop) {
static const std::unordered_set<std::string> kGetpropAllowedProps = {
"ro.build.fingerprint",
"ro.build.date.utc",
"ro.build.fingerprint",
"ro.build.flavor",
"ro.build.id",
"ro.build.product",
"ro.build.tags",
"ro.build.version.incremental",
"ro.product.device",
"ro.product.vendor.device",
};
auto allowed = kGetpropAllowedProps.find(prop) != kGetpropAllowedProps.end();
if (!allowed) {