From 585e0ca8edccb8ea36dbc0d64bf3f812a4969de5 Mon Sep 17 00:00:00 2001 From: Hyunbin Lee Date: Mon, 21 Oct 2013 15:02:59 +0900 Subject: [PATCH] Remove unused directories Change-Id: I64d6c32979f1a12d441fdef1583b6c5dd3345a6f Signed-off-by: Hyunbin Lee --- src/osp-env-config.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/osp-env-config.c b/src/osp-env-config.c index bd593e0..5a93678 100644 --- a/src/osp-env-config.c +++ b/src/osp-env-config.c @@ -212,9 +212,7 @@ mount_native_paths(const char* app_rootpath) { "/lib", "./lib" }, { "/mnt", "./mnt" }, { "/proc", "./proc" }, - { "/sbin", "./sbin" }, { "/smack", "./smack" }, - { "/srv", "./srv" }, { "/sys", "./sys" }, { "/sys/kernel/debug", "./sys/kernel/debug" }, { "/tmp", "./tmp" }, @@ -311,9 +309,7 @@ mount_linux_paths(const char* app_rootpath) static const struct _path_info mount_info[] = { { "/bin", "./bin" }, - { "/cache", "./cache" }, { "/csa", "./csa" }, - { "/data", "./data" }, { "/dev", "./dev" }, { "/dev/pts", "./dev/pts" }, { "/dev/shm", "./dev/shm" }, @@ -324,13 +320,10 @@ mount_linux_paths(const char* app_rootpath) { "/mnt", "./mnt" }, { "/proc", "./proc" }, { "/run", "./run" }, - { "/sbin", "./sbin" }, { "/smack", "./smack" }, - { "/srv", "./srv" }, { "/sys", "./sys" }, { "/sys/fs/cgroup", "./sys/fs/cgroup" }, { "/sys/fs/cgroup/systemd", "./sys/fs/cgroup/systemd" }, - { "/system", "./system" }, { "/tmp", "./tmp" }, { "/usr", "./usr" }, { "/usr/share/locale", "./usr/share/locale" }, @@ -350,7 +343,7 @@ mount_linux_paths(const char* app_rootpath) for (i = 0; i < sizeof(mount_info)/sizeof(struct _path_info); ++i) { - if (i == 27) // /opt/storage/sdcard + if (i == 23) // /opt/storage/sdcard { int mmc_mounted = 0; int ret = vconf_get_int(VCONFKEY_SYSMAN_MMC_STATUS, &mmc_mounted); @@ -625,7 +618,7 @@ do_virtual_root(const char* virtual_root_path, const char* package_id) } if (chdir("/") != 0) { - LOGE("chdir() failed. path: /data, errno: %d (%s)", errno, strerror(errno)); + LOGE("chdir() failed. path: /, errno: %d (%s)", errno, strerror(errno)); goto ERROR; } LOGI("chroot() succeeded."); -- 2.7.4