summaryrefslogtreecommitdiffstats
path: root/init/host_init_verifier.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-06-19 15:18:40 -0700
committerTom Cherry <tomcherry@google.com>2018-06-19 15:18:40 -0700
commitd72432de930b329dd0cf14b62a67618e11e8e7cb (patch)
tree0e20bf57476557c11535662726a280ddc1392eca /init/host_init_verifier.cpp
parent28a3160c077446719fe9c95e0a0730689e8e44ad (diff)
downloadsystem_core-d72432de930b329dd0cf14b62a67618e11e8e7cb.tar.gz
system_core-d72432de930b329dd0cf14b62a67618e11e8e7cb.tar.bz2
system_core-d72432de930b329dd0cf14b62a67618e11e8e7cb.zip
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
Diffstat (limited to 'init/host_init_verifier.cpp')
-rw-r--r--init/host_init_verifier.cpp2
1 files changed, 1 insertions, 1 deletions
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<ActionParser>(&am, nullptr));
parser.AddSectionParser("import", std::make_unique<HostImportParser>());
- if (!parser.ParseConfig(argv[1])) {
+ if (!parser.ParseConfigFileInsecure(argv[1])) {
LOG(ERROR) << "Failed to open init rc script '" << argv[1] << "'";
return EXIT_FAILURE;
}