diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2023-05-31 13:43:14 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2023-05-31 13:58:08 +0900 |
commit | 2904760e3a4283d46acf0a7feda7b186f801649c (patch) | |
tree | d8b7739fcf931bfd9d7b0a6566886ac1a67b15fe | |
parent | fda0d2e4d1e3f5ed54a989cd1de8ede36ea89998 (diff) | |
download | system-plugin-accepted/tizen/9.0/unified/20241030.231616.tar.gz system-plugin-accepted/tizen/9.0/unified/20241030.231616.tar.bz2 system-plugin-accepted/tizen/9.0/unified/20241030.231616.zip |
session-bind: Remove mounting of legacy app pathtizen_9.0_m2_releasetizen_8.0_m2_releaseaccepted/tizen/unified/dev/20240620.003354accepted/tizen/unified/20230719.102847accepted/tizen/9.0/unified/20241030.231616accepted/tizen/8.0/unified/20231005.092537tizen_9.0tizen_8.0tizenaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unified
The mounting iof legacy app path causes the critical security issue.
So that remove the mounting of legacy app path.
Change-Id: I26e7ccb1cc3889907568bee19e263f73ca06f58d
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r-- | src/session-bind/session-bind.c | 9 |
1 files changed, 0 insertions, 9 deletions
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 <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) { |