some preload applications are not installed at /usr/apps/<pkgid>,
but we should install smack rules for these applications.
these application should fix their installation path
Change-Id: I2acb315004b157f3a8bd251f62068ffdec055d19
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
}
path = _get_path(pkgid, uid);
+ /* TODO: should be fixed */
+ if (access(path, F_OK) == -1) {
+ printf("cannot find %s, but the smack rule for %s "
+ "will be installed\n", path, appid);
+ return req;
+ }
+
ret = security_manager_app_inst_req_add_path(req, path,
SECURITY_MANAGER_PATH_RO);
if (ret != SECURITY_MANAGER_SUCCESS) {