OSDN Git Service

Retire LDP man-pages repository
[linuxjm/LDP_man-pages.git] / release / man2 / chroot.2
diff --git a/release/man2/chroot.2 b/release/man2/chroot.2
deleted file mode 100644 (file)
index 2d5f1c8..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-.\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
-.\"
-.\" %%%LICENSE_START(VERBATIM)
-.\" Permission is granted to make and distribute verbatim copies of this
-.\" manual provided the copyright notice and this permission notice are
-.\" preserved on all copies.
-.\"
-.\" Permission is granted to copy and distribute modified versions of this
-.\" manual under the conditions for verbatim copying, provided that the
-.\" entire resulting derived work is distributed under the terms of a
-.\" permission notice identical to this one.
-.\"
-.\" Since the Linux kernel and libraries are constantly changing, this
-.\" manual page may be incorrect or out-of-date.  The author(s) assume no
-.\" responsibility for errors or omissions, or for damages resulting from
-.\" the use of the information contained herein.  The author(s) may not
-.\" have taken the same level of care in the production of this manual,
-.\" which is licensed free of charge, as they might when working
-.\" professionally.
-.\"
-.\" Formatted or processed versions of this manual, if unaccompanied by
-.\" the source, must acknowledge the copyright and authors of this work.
-.\" %%%LICENSE_END
-.\"
-.\" Modified by Michael Haardt <michael@moria.de>
-.\" Modified 1993-07-21 by Rik Faith <faith@cs.unc.edu>
-.\" Modified 1994-08-21 by Michael Chastain <mec@shell.portal.com>
-.\" Modified 1996-06-13 by aeb
-.\" Modified 1996-11-06 by Eric S. Raymond <esr@thyrsus.com>
-.\" Modified 1997-08-21 by Joseph S. Myers <jsm28@cam.ac.uk>
-.\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
-.\"
-.\"*******************************************************************
-.\"
-.\" This file was generated with po4a. Translate the source file.
-.\"
-.\"*******************************************************************
-.\"
-.\" Japanese Version Copyright (c) 1996 Yosiaki Yanagihara
-.\"         all rights reserved.
-.\" Translated Mon Jun 24 14:29:55 JST 1996
-.\"         by Yosiaki Yanagihara <yosiaki@bsd2.kbnes.nec.co.jp>
-.\" Modified Sat Dec 13 23:29:07 JST 1997
-.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
-.\" Updated & Modified Fri 6 Apr 2001
-.\"         by NAKANO Takeo <nakano@apm.seikei.ac.jp>
-.\" Updated & Modified Thu Dec 23 10:04:20 JST 2004
-.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
-.\"
-.TH CHROOT 2 2010\-09\-20 Linux "Linux Programmer's Manual"
-.SH 名前
-chroot \- ルートディレクトリを変更する
-.SH 書式
-\fB#include <unistd.h>\fP
-.sp
-\fBint chroot(const char *\fP\fIpath\fP\fB);\fP
-.sp
-.in -4n
-glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
-.in
-.sp
-\fBchroot\fP():
-.ad l
-.RS 4
-.PD 0
-.TP  4
-glibc 2.2.2 以降:
-.nf
-_BSD_SOURCE ||
-    (_XOPEN_SOURCE\ >=\ 500 ||
-        _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED) &&
-    !(_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600)
-.TP  4
-.fi
-glibc 2.2.2 より前: なし
-.PD
-.RE
-.ad b
-.SH 説明
-\fBchroot\fP()  は、呼び出し元プロセスのルートディレクトリを \fIpath\fP で指定されたディレクトリに変更する。 このディレクトリ以下が
-\fI/\fP から始まるパス名として使われる。 このルートディレクトリは呼び出し元のプロセスの全ての子プロセスに受け継がれる。
-
-特権プロセス (Linux では、 \fBCAP_SYS_CHROOT\fP ケーパビリティを持つプロセス) のみが \fBchroot\fP()
-を呼び出すことができる。
-
-このコールはパス名解決の過程で構成要素を変更するのみで、 その他には何も行わない。
-
-このコールは現在の作業ディレクトリ (working directory) を変更しない。 そのため、このコールの後に \(aq\fI.\fP\(aq が
-\(aq\fI/\fP\(aq を 根とするツリーの外になる場合がある。 特に、スーパーユーザーは以下のようにすることで "chroot jail"
-から逃げ出せてしまう。
-.nf
-
-    mkdir foo; chroot foo; cd ..
-.fi
-
-このコールはオープンファイルディスクリプターをクローズしないので、 このようなファイルディスクリプターは chroot ツリーの外にある
-ファイルにアクセスできる。
-.SH 返り値
-成功した場合は 0 が返される。エラーの場合は \-1 が返され、 \fIerrno\fP が適切に設定される。
-.SH エラー
-ファイルシステムによっては他のエラーが返される事がある。 一般的なエラーを以下に挙げる:
-.TP 
-\fBEACCES\fP
-.\" Also search permission is required on the final component,
-.\" maybe just to guarantee that it is a directory?
-パス名の構成要素に検索許可がない (\fBpath_resolution\fP(7)  も見よ)。
-.TP 
-\fBEFAULT\fP
-\fIpath\fP がアクセスできるアドレス空間外を指している。
-.TP 
-\fBEIO\fP
-I/O エラーが発生した。
-.TP 
-\fBELOOP\fP
-\fIpath\fP を解決する際に遭遇したシンボリックリンクが多過ぎる。
-.TP 
-\fBENAMETOOLONG\fP
-\fIpath\fP が長過ぎる。
-.TP 
-\fBENOENT\fP
-ファイルが存在しない。
-.TP 
-\fBENOMEM\fP
-カーネルに十分なメモリーがない。
-.TP 
-\fBENOTDIR\fP
-\fIpath\fP の構成要素がディレクトリではない。
-.TP 
-\fBEPERM\fP
-呼び出し側に十分な特権がない。
-.SH 準拠
-.\" SVr4 documents additional EINTR, ENOLINK and EMULTIHOP error conditions.
-.\" X/OPEN does not document EIO, ENOMEM or EFAULT error conditions.
-SVr4, 4.4BSD, SUSv2 (但し、SUSv2 では過去の名残とされている)。 この関数は POSIX.1\-2001 にはない。
-.SH 注意
-\fBfork\fP(2)  で作成された子プロセスは、 親プロセスのルートディレクトリを継承する。 \fBexecve\fP(2)
-の場合も、ルートディレクトリは変更されない。
-
-.\" FIXME . eventually say something about containers,
-.\" virtual servers, etc.?
-FreeBSD にはより強力な \fBjail\fP()  システムコールがある。
-.SH 関連項目
-\fBchdir\fP(2), \fBpath_resolution\fP(7)
-.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
-である。プロジェクトの説明とバグ報告に関する情報は
-http://www.kernel.org/doc/man\-pages/ に書かれている。