summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKunhoon Baik <knhoon.baik@samsung.com>2016-09-01 22:39:20 +0900
committerKunhoon Baik <knhoon.baik@samsung.com>2016-09-01 22:39:20 +0900
commit9afcd97e50f16bc489015ac6b4cd669e75434b2b (patch)
treea6818aaebbf7a8a860ceea142e024d2020c89075 /src
parent412b82d9b3869bba6686146fe849bc953c38a067 (diff)
downloadsystem-plugin-9afcd97e50f16bc489015ac6b4cd669e75434b2b.tar.gz
system-plugin-9afcd97e50f16bc489015ac6b4cd669e75434b2b.tar.bz2
system-plugin-9afcd97e50f16bc489015ac6b4cd669e75434b2b.zip
Change-Id: Ieb817310c970b9fd40249f583421d2862cd1c908
Diffstat (limited to 'src')
-rw-r--r--src/systemd-user-helper/systemd-user-helper.c10
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;
}