diff options
author | Sandeep Patil <sspatil@google.com> | 2017-02-15 13:37:52 -0800 |
---|---|---|
committer | Sandeep Patil <sspatil@google.com> | 2017-02-22 11:22:49 -0800 |
commit | 971a460c5b573b0e22780579daed242f4879626d (patch) | |
tree | d3d9273c94c1d8a6f114c9428cff2aa11a79460c /libutils/Unicode.cpp | |
parent | 56f9ada93d83dcd66322635138e334e25bb5e1bd (diff) |
init: refactor to allow successive device_init calls
device_init opens the uevent socket and sehandle when called.
For early_mount however, depending on the fs_mgr flags we may call this
in order to run coldboot for device mapper, dm-verity devices etc.
So the change makes sure we don't try to re-open the uevent socket,
file context handle and selinux status on successive calls to
device_init from within the same process.
b/27805372
Test: Boot saifish successfully
Change-Id: Ifa0e665403211684183efb9be66e4e8d0d86a206
Signed-off-by: Sandeep Patil <sspatil@google.com>
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions