From 73119d99d67e483eef4426a0b8cdd37d3b5d9e05 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 31 May 2023 16:49:46 +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: I4b7fe7e1ef745bcb60ce7d0c6bff79c8c02504fa 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 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; } -- 2.34.1