diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2015-04-07 08:45:23 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-07 08:45:24 +0000 |
commit | 284c5cb2a16d21e5d5123ae6a0d731dcc6beadca (patch) | |
tree | 83e432d5869f178344cbb7a378f19eef77f48baf /init | |
parent | 33c2ad37cac1d85272bd0f8f869710cac73d3bb7 (diff) | |
parent | 454742392f72079dbdb0d23ea24e01b5703c1aa5 (diff) | |
download | core-284c5cb2a16d21e5d5123ae6a0d731dcc6beadca.tar.gz core-284c5cb2a16d21e5d5123ae6a0d731dcc6beadca.tar.bz2 core-284c5cb2a16d21e5d5123ae6a0d731dcc6beadca.zip |
Merge "Set verity mode as the verified property value"
Diffstat (limited to 'init')
-rw-r--r-- | init/builtins.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/init/builtins.cpp b/init/builtins.cpp index ff6c9376f..3bbaf8336 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -661,8 +661,9 @@ int do_verity_load_state(int nargs, char **args) { return rc; } -static void verity_update_property(fstab_rec *fstab, const char *mount_point, int status) { - property_set(android::base::StringPrintf("partition.%s.verified", mount_point).c_str(), "1"); +static void verity_update_property(fstab_rec *fstab, const char *mount_point, int mode, int status) { + property_set(android::base::StringPrintf("partition.%s.verified", mount_point).c_str(), + android::base::StringPrintf("%d", mode).c_str()); } int do_verity_update_state(int nargs, char** args) { |