Identify apps by Smack label instead of appName in NSMountLogic 22/164022/3
authorRafal Krypa <r.krypa@samsung.com>
Thu, 14 Dec 2017 16:21:27 +0000 (17:21 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Thu, 21 Dec 2017 13:51:27 +0000 (13:51 +0000)
commitfdf02d689aba678d928c8a6015d875cbac9c8d36
tree4492a42c46d56c47b3a7067e3324e0a5de27d26c
parent4adff7c598eae8cc585c7143a996def0010ad8bf
Identify apps by Smack label instead of appName in NSMountLogic

NSMountLogic and Worker code used to take appName as application identifier
and then needed to translate it to Smack label. It was very awkward, because
such conversion needs access to PrivilegeDB in order to check hybrid status.

Now Smack label is being passed to that code right away, eliminating the
need for fetching Smack label.

Change-Id: I62c137ad08a5d7d271aa8d6adcb25e8bb56bdfe1
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/common/include/mount-namespace.h
src/common/include/nsmount-logic.h
src/common/mount-namespace.cpp
src/common/nsmount-logic.cpp
src/common/service_impl.cpp
src/common/worker.cpp