systemd-user-helper: Remove mounting of legacy app path 64/293564/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20230616.033500 submit/tizen_4.0/20230531.075748 submit/tizen_4.0/20230531.082654
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 May 2023 07:49:46 +0000 (16:49 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 31 May 2023 07:51:22 +0000 (16:51 +0900)
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 <cw00.choi@samsung.com>
src/systemd-user-helper/systemd-user-helper.c

index 05b9db6757f6cac1a507e67ab4d7d3057b16000e..71ff3048b15f1f9c17540183873c242ecdad4ece 100644 (file)
@@ -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;
 }