From d72432de930b329dd0cf14b62a67618e11e8e7cb Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Tue, 19 Jun 2018 15:18:40 -0700 Subject: Don't check permissions bits on init scripts for host_init_verifier Also get rid of the copy in parser. There's no incentive to switch to a tokenizer that doesn't modify the input, nor is there a reason to waste cycles making a copy of every init script as its processed. Bug: 36970783 Test: boot Change-Id: I8aca9c9d6f1961e1ab35dee50691a6791fc6ec66 --- init/host_init_verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init/host_init_verifier.cpp') diff --git a/init/host_init_verifier.cpp b/init/host_init_verifier.cpp index 7e93b448c..84077291c 100644 --- a/init/host_init_verifier.cpp +++ b/init/host_init_verifier.cpp @@ -146,7 +146,7 @@ int main(int argc, char** argv) { parser.AddSectionParser("on", std::make_unique(&am, nullptr)); parser.AddSectionParser("import", std::make_unique()); - if (!parser.ParseConfig(argv[1])) { + if (!parser.ParseConfigFileInsecure(argv[1])) { LOG(ERROR) << "Failed to open init rc script '" << argv[1] << "'"; return EXIT_FAILURE; } -- cgit v1.2.3