Remove unused directories
authorHyunbin Lee <hyunbin.lee@samsung.com>
Mon, 21 Oct 2013 06:02:59 +0000 (15:02 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Tue, 22 Oct 2013 04:37:32 +0000 (13:37 +0900)
Change-Id: I64d6c32979f1a12d441fdef1583b6c5dd3345a6f
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
src/osp-env-config.c

index bd593e0..5a93678 100644 (file)
@@ -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.");