diff options
Diffstat (limited to 'src/systemd-user-helper/systemd-user-helper.c')
-rw-r--r-- | src/systemd-user-helper/systemd-user-helper.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/systemd-user-helper/systemd-user-helper.c b/src/systemd-user-helper/systemd-user-helper.c index f6911d6..2012e9d 100644 --- a/src/systemd-user-helper/systemd-user-helper.c +++ b/src/systemd-user-helper/systemd-user-helper.c @@ -26,7 +26,9 @@ #include <tzplatform_config.h> +// For compatibility, Using hard-coded path #define LEGACY_CONTENTS_DIR "/opt/usr/media" +#define LEGACY_APPS_DIR "/opt/usr/apps" #define LAZYMOUNT_LIB "/usr/lib/liblazymount.so.0" #define CONTAINER_LIB "/usr/lib/security/pam_krate.so" @@ -69,6 +71,14 @@ static int normal_user_postprocess(char *username) fprintf(stderr, "user content bind mount failed - %d\n",errno); 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; } |