OSDN Git Service

Fix validation of system paths in installd.
authorCalin Juravle <calin@google.com>
Tue, 19 Aug 2014 16:43:05 +0000 (17:43 +0100)
committerCalin Juravle <calin@google.com>
Fri, 22 Aug 2014 13:52:53 +0000 (14:52 +0100)
commitc597b6dd895dbb2b28c757ce7a2651b3cdc9b00c
treea22078fdd2a49fd53e98e66a51e50d0d29ddee7c
parent67cfe0c0660c36ca385ad0eeb1352a2df721b49c
Fix validation of system paths in installd.

System apps are now installed under their own directory
(system_app_dir/app_dir/app.apk). The new path doesn't pass installd
validation because of obsolete checks which verify that the path does
not contain subdirectories past the system_app_dir.

The CL fixes the validation to accept at most on subdirectory.

Bug: 17109858
Change-Id: I13abb52c0016610ff436f6a26bb6b3b85dc4dfb0
cmds/installd/tests/installd_utils_test.cpp
cmds/installd/utils.c