summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2023-05-31 13:43:14 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2023-05-31 14:29:37 +0900
commit977af72ee3ed114298d2e7cde5669630d2b3deae (patch)
tree9bac37e9d33dfd2009f1e45b2874a99f8492de56
parent198cf939a88881cb450692706a820455d7e9745d (diff)
downloadsystem-plugin-accepted/tizen_5.0_unified.tar.gz
system-plugin-accepted/tizen_5.0_unified.tar.bz2
system-plugin-accepted/tizen_5.0_unified.zip
The mounting iof legacy app path causes the critical security issue. So that remove the mounting of legacy app path. Change-Id: If77b611f76cd18d59a91aa65381ace5666eb3210 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--src/session-bind/session-bind.c9
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) {