summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2023-05-31 16:48:37 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2023-05-31 16:48:37 +0900
commit287dacc00d8be7be9e7a53abe9c729b8e01169a3 (patch)
tree73e620c3483091a31461a4fa3014aafb8fbd49cc
parent9e6c8c261930a42cbef30f86b6eb227527341e8d (diff)
downloadsystem-plugin-287dacc00d8be7be9e7a53abe9c729b8e01169a3.tar.gz
system-plugin-287dacc00d8be7be9e7a53abe9c729b8e01169a3.tar.bz2
system-plugin-287dacc00d8be7be9e7a53abe9c729b8e01169a3.zip
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>
-rw-r--r--src/systemd-user-helper/systemd-user-helper.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/systemd-user-helper/systemd-user-helper.c b/src/systemd-user-helper/systemd-user-helper.c
index 5b634a5..cad2e2c 100644
--- a/src/systemd-user-helper/systemd-user-helper.c
+++ b/src/systemd-user-helper/systemd-user-helper.c
@@ -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;
}