systemd-user-helper: Remove mounting of legacy app path 62/293562/1 tizen_3.0 submit/tizen_3.0/20230531.075907 submit/tizen_3.0/20230531.082715 submit/tizen_3.0/20230705.082737
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 May 2023 07:48:37 +0000 (16:48 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 May 2023 07:48:37 +0000 (16:48 +0900)
The mounting iof legacy app path causes the critical security issue.
So that remove the mounting of legacy app path.

Change-Id: I6a8392b6b9c6b6ed6b354ad6adb3afccbcc4543c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/systemd-user-helper/systemd-user-helper.c

index 5b634a5e2ff06050d0aa568e58815df6674cf70a..cad2e2c443609e7a735de0f6407e65c28bf44757 100644 (file)
@@ -38,7 +38,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"
@@ -201,13 +200,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;
 }