session-bind: Remove mounting of legacy app path 12/293512/1 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20230615.051258 submit/tizen_6.0/20230531.080010 submit/tizen_6.0/20230531.082459
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 May 2023 04:43:14 +0000 (13:43 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 May 2023 05:27:41 +0000 (14:27 +0900)
The mounting iof legacy app path causes the critical security issue.
So that remove the mounting of legacy app path.

Change-Id: I61bf9b716e4ba39e525952c2d6c076055b3d8764
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/session-bind/session-bind.c

index 30a2ae7adc74ff9fc547f117dee9f66958d376c3..dfccbb324202c8668544269420c1ffef8433b553 100644 (file)
 #include <tzplatform_config.h>
 
 // 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) {