The mounting iof legacy app path causes the critical security issue.
So that remove the mounting of legacy app path.
Change-Id: I6a8392b6b9c6b6ed6b354ad6adb3afccbcc4543c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
// For compatibility, Using hard-coded path
#define LEGACY_CONTENTS_DIR "/opt/usr/media"
-#define LEGACY_APPS_DIR "/opt/usr/apps"
#define LAZYMOUNT_LIB LIBDIR"/liblazymount.so.0"
#define CONTAINER_LIB LIBDIR"/security/pam_krate.so"
return r;
}
- r = mount(tzplatform_getenv(TZ_USER_APP),
- LEGACY_APPS_DIR, NULL, MS_BIND, NULL);
- if (r < 0) {
- fprintf(stderr, "user app bind mount failed - %d\n", errno);
- return r;
- }
-
return 0;
}