{ "/lib", "./lib" },
{ "/mnt", "./mnt" },
{ "/proc", "./proc" },
- { "/sbin", "./sbin" },
{ "/smack", "./smack" },
- { "/srv", "./srv" },
{ "/sys", "./sys" },
{ "/sys/kernel/debug", "./sys/kernel/debug" },
{ "/tmp", "./tmp" },
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" },
{ "/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" },
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);
}
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.");