From: Chanwoo Choi Date: Wed, 31 May 2023 07:49:46 +0000 (+0900) Subject: systemd-user-helper: Remove mounting of legacy app path X-Git-Tag: submit/tizen_4.0/20230531.075748^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_4.0;p=platform%2Fcore%2Fsystem%2Fsession-utils.git systemd-user-helper: 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: I4b7fe7e1ef745bcb60ce7d0c6bff79c8c02504fa Signed-off-by: Chanwoo Choi --- diff --git a/src/systemd-user-helper/systemd-user-helper.c b/src/systemd-user-helper/systemd-user-helper.c index 05b9db6..71ff304 100644 --- a/src/systemd-user-helper/systemd-user-helper.c +++ b/src/systemd-user-helper/systemd-user-helper.c @@ -47,7 +47,6 @@ // 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" @@ -208,13 +207,6 @@ static int normal_user_postprocess(char *username) 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; }