diff options
author | Kunhoon Baik <knhoon.baik@samsung.com> | 2016-09-01 22:39:20 +0900 |
---|---|---|
committer | Kunhoon Baik <knhoon.baik@samsung.com> | 2016-09-01 22:39:20 +0900 |
commit | 9afcd97e50f16bc489015ac6b4cd669e75434b2b (patch) | |
tree | a6818aaebbf7a8a860ceea142e024d2020c89075 | |
parent | 412b82d9b3869bba6686146fe849bc953c38a067 (diff) | |
download | system-plugin-9afcd97e50f16bc489015ac6b4cd669e75434b2b.tar.gz system-plugin-9afcd97e50f16bc489015ac6b4cd669e75434b2b.tar.bz2 system-plugin-9afcd97e50f16bc489015ac6b4cd669e75434b2b.zip |
Bind 2.4 apps directory to user app directory for compatibilitysubmit/tizen/20160904.234158accepted/tizen/wearable/20160905.065600accepted/tizen/tv/20160905.065541accepted/tizen/mobile/20160905.065521accepted/tizen/ivi/20160905.065617
Change-Id: Ieb817310c970b9fd40249f583421d2862cd1c908
-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; } |