Lines Matching refs:rootfs

49 static nxt_int_t nxt_isolation_pivot_root(nxt_task_t *task, const char *rootfs);
51 const char *rootfs);
121 if (process->isolation.rootfs != NULL) { in nxt_isolation_main_prefork()
462 process->isolation.rootfs = nxt_mp_alloc(process->mem_pool, in nxt_isolation_set_rootfs()
465 if (nxt_slow_path(process->isolation.rootfs == NULL)) { in nxt_isolation_set_rootfs()
469 nxt_memcpy(process->isolation.rootfs, str.start, str.length); in nxt_isolation_set_rootfs()
471 process->isolation.rootfs[str.length] = '\0'; in nxt_isolation_set_rootfs()
562 const u_char *rootfs; in nxt_isolation_set_lang_mounts() local
577 rootfs = process->isolation.rootfs; in nxt_isolation_set_lang_mounts()
578 rootfs_len = nxt_strlen(rootfs); in nxt_isolation_set_lang_mounts()
588 p = nxt_cpymem(mnt[i].dst, rootfs, rootfs_len); in nxt_isolation_set_lang_mounts()
614 p = nxt_cpymem(mnt->dst, rootfs, rootfs_len); in nxt_isolation_set_lang_mounts()
633 p = nxt_cpymem(mnt->dst, rootfs, rootfs_len); in nxt_isolation_set_lang_mounts()
760 char *rootfs; in nxt_isolation_change_root() local
763 rootfs = (char *) process->isolation.rootfs; in nxt_isolation_change_root()
765 nxt_debug(task, "change root: %s", rootfs); in nxt_isolation_change_root()
768 ret = nxt_isolation_pivot_root(task, rootfs); in nxt_isolation_change_root()
771 ret = nxt_isolation_chroot(task, rootfs); in nxt_isolation_change_root()
842 nxt_isolation_make_private_mount(nxt_task_t *task, const char *rootfs) in nxt_isolation_make_private_mount() argument
912 if (nxt_strcmp(mounts[index], rootfs) == 0) { in nxt_isolation_make_private_mount()
913 parent_mnt = (char *) rootfs; in nxt_isolation_make_private_mount()
919 len = nxt_strlen(rootfs); in nxt_isolation_make_private_mount()
926 nxt_memcpy(parent_mnt, rootfs, len); in nxt_isolation_make_private_mount()
995 if (parent_mnt != NULL && parent_mnt != rootfs) { in nxt_isolation_make_private_mount()
1016 char *rootfs; in nxt_isolation_change_root() local
1018 rootfs = (char *) process->isolation.rootfs; in nxt_isolation_change_root()
1020 nxt_debug(task, "change root: %s", rootfs); in nxt_isolation_change_root()
1022 if (nxt_fast_path(nxt_isolation_chroot(task, rootfs) == NXT_OK)) { in nxt_isolation_change_root()