diff options
author | Hyunbin Lee <hyunbin.lee@samsung.com> | 2013-10-21 15:02:59 +0900 |
---|---|---|
committer | Hyunbin Lee <hyunbin.lee@samsung.com> | 2013-10-22 13:37:32 +0900 |
commit | 585e0ca8edccb8ea36dbc0d64bf3f812a4969de5 (patch) | |
tree | 3786f10b2d08c3d9d22ec676abfbeaf524e909f7 | |
parent | 46fedc65d46a1c2b3d0d6795fb652571e099bf9f (diff) | |
download | env-config-585e0ca8edccb8ea36dbc0d64bf3f812a4969de5.tar.gz env-config-585e0ca8edccb8ea36dbc0d64bf3f812a4969de5.tar.bz2 env-config-585e0ca8edccb8ea36dbc0d64bf3f812a4969de5.zip |
Remove unused directories
Change-Id: I64d6c32979f1a12d441fdef1583b6c5dd3345a6f
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
-rw-r--r-- | src/osp-env-config.c | 11 |
1 files 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."); |