From 287dacc00d8be7be9e7a53abe9c729b8e01169a3 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 31 May 2023 16:48:37 +0900 Subject: [PATCH] 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: I6a8392b6b9c6b6ed6b354ad6adb3afccbcc4543c Signed-off-by: Chanwoo Choi --- src/systemd-user-helper/systemd-user-helper.c | 8 -------- 1 file changed, 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; } -- 2.34.1