Canonicalize by ::realpath on server side 97/72197/7
authorKyungwook Tak <k.tak@samsung.com>
Tue, 31 May 2016 07:05:51 +0000 (16:05 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Tue, 31 May 2016 09:32:23 +0000 (18:32 +0900)
commit05b859770ed38f8b7ac13e64e785347d7bc1fe06
tree491a518897d9686d461d3e272033559d5c187840
parent444cb11ba2b58bd9aa4d5c376cb01f4069f9ec27
Canonicalize by ::realpath on server side

Client cannot call ::realpath because file scanning is not working with
client permission but server permission.

Client just make path to absolute (prepend current directory if relative
path comes in to parameter) and give them to server to get canonicalized
file set.

It's same to files_async and dirs_async but we need to erase
subdirectory in dirs_async case after canonicalization done.

Change-Id: I15ddd7e8816ee068c9e4439eea51bbe8c0a2602b
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
src/framework/client/canonicalize.cpp
src/framework/client/canonicalize.h
src/framework/client/content-screening.cpp
src/framework/common/command-id.h
src/framework/service/cs-logic.cpp
src/framework/service/cs-logic.h
src/framework/service/server-service.cpp
test/internals/CMakeLists.txt
test/internals/test-canonicalize.cpp [deleted file]
test/test-api-content-screening-async.cpp
test/test-common.h