From: Chanwoo Choi Date: Wed, 31 May 2023 04:43:14 +0000 (+0900) Subject: session-bind: Remove mounting of legacy app path X-Git-Tag: accepted/tizen/7.0/unified/20230615.061135^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0;p=platform%2Fadaptation%2Fsystem-plugin.git session-bind: Remove mounting of legacy app path The mounting iof legacy app path causes the critical security issue. So that remove the mounting of legacy app path. Change-Id: I423eca693ab2df44b1b833074cf54ff8aeb14c8f Signed-off-by: Chanwoo Choi --- diff --git a/src/session-bind/session-bind.c b/src/session-bind/session-bind.c index 30a2ae7..dfccbb3 100644 --- a/src/session-bind/session-bind.c +++ b/src/session-bind/session-bind.c @@ -21,22 +21,13 @@ #include // For compatibility, Using hard-coded path -#define LEGACY_APPS_DIR "/opt/usr/apps" #define LEGACY_CONTENTS_DIR "/opt/usr/media" int main(int argc, char *argv[]) { int r; - const char *user_app; const char *user_content; - user_app = tzplatform_getenv(TZ_USER_APP); - r = mount(user_app, LEGACY_APPS_DIR, NULL, MS_BIND, NULL); - if (r < 0) { - fprintf(stderr, "user app bind mount failed - %d\n", errno); - return r; - } - user_content = tzplatform_getenv(TZ_USER_CONTENT); r = mount(user_content, LEGACY_CONTENTS_DIR, NULL, MS_BIND, NULL); if (r < 0) {