OSDN Git Service

(split) LDP: Restore and add Copyrights for draft pages
[linuxjm/LDP_man-pages.git] / draft / man7 / path_resolution.7
index 0f8f6d5..b8b6a50 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (C) 2003 Andries Brouwer (aeb@cwi.nl)
 .\"
+.\" %%%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.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 2005 Yuichi SATO
 .\"         all rights reserved.
 .\" Updated and Modified 2005-10-27, Akihiro MOTOKI
 .\" Updated and Modified 2005-11-04, Akihiro MOTOKI
 .\"
-.TH PATH_RESOLUTION 7 2009-12-05 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O path_resolution \- how a pathname is resolved to a file
-path_resolution \- ¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹Ì¾¤Î²ò·èÊýË¡
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O Some UNIX/Linux system calls have as parameter one or more filenames.
-.\"O A filename (or pathname) is resolved as follows.
-¤¤¤¯¤Ä¤«¤Î UNIX/Linux ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢
-1 ¤Ä°Ê¾å¤Î¥Õ¥¡¥¤¥ë̾¤ò°ú¤­¿ô¤È¤·¤Æ»ý¤Ä¡£
-¥Õ¥¡¥¤¥ë̾ (¤Þ¤¿¤Ï¥Ñ¥¹Ì¾) ¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ²ò·è¤µ¤ì¤ë¡£
-.\"O .SS "Step 1: Start of the resolution process"
-.SS "¥¹¥Æ¥Ã¥× 1: ²ò·è²áÄø¤ò³«»Ï¤¹¤ë"
-.\"O If the pathname starts with the \(aq/\(aq character,
-.\"O the starting lookup directory
-.\"O is the root directory of the calling process.
-.\"O (A process inherits its
-.\"O root directory from its parent.
-.\"O Usually this will be the root directory
-.\"O of the file hierarchy.
-.\"O A process may get a different root directory
-.\"O by use of the
-.\"O .BR chroot (2)
-.\"O system call.
-.\"O A process may get an entirely private mount namespace in case
-.\"O it \(em or one of its ancestors \(em was started by an invocation of the
-.\"O .BR clone (2)
-.\"O system call that had the
-.\"O .B CLONE_NEWNS
-.\"O flag set.)
-.\"O This handles the \(aq/\(aq part of the pathname.
-¥Ñ¥¹Ì¾¤¬ \(aq/\(aq Ê¸»ú¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
-¥Ç¥£¥ì¥¯¥È¥ê¸¡º÷¤Î³«»ÏÅÀ¤Ï¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ê¤ë¡£
-(¥×¥í¥»¥¹¤Ï¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤ò¿Æ¥×¥í¥»¥¹¤«¤é·Ñ¾µ¤¹¤ë¡£
-Ä̾ï¤Ï¡¢¤³¤ì¤¬¥Õ¥¡¥¤¥ë³¬ÁؤΥ롼¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ê¤ë¡£
-¥×¥í¥»¥¹¤Ï
-.BR chroot (2)
-¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»È¤Ã¤ÆÊ̤Υ롼¥È¥Ç¥£¥ì¥¯¥È¥ê¤ò¼èÆÀ¤¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
-¤³¤Î¾ì¹ç¡¢¤½¤Î¥×¥í¥»¥¹¤È
-.B CLONE_NEWNS
-¥Õ¥é¥°¤òÀßÄꤷ¤Æ
-.BR clone (2)
-¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤Ë¤è¤Ã¤Æ³«»Ï¤µ¤ì¤¿¤½¤Î¥×¥í¥»¥¹¤Î»Ò¹¤Ï¡¢
-´°Á´¤Ë¥×¥é¥¤¥Ù¡¼¥È¤Ê¥Þ¥¦¥ó¥È̾Á°¶õ´Ö¤ò¼èÆÀ¤Ç¤­¤ë¡£)
-¥Ñ¥¹Ì¾¤Î \(aq/\(aq ¤ÎÉôʬ¤Ï¡¢¤³¤Î¤è¤¦¤Ë¤·¤Æ°·¤ï¤ì¤ë¡£
+.TH PATH_RESOLUTION 7 2009\-12\-05 Linux "Linux Programmer's Manual"
+.SH 名前
+path_resolution \- ファイルのパス名の解決方法
+.SH 説明
+いくつかの UNIX/Linux システムコールは、 1 つ以上のファイル名を引き数として持つ。 ファイル名 (またはパス名)
+は以下のようにして解決される。
+.SS "ステップ 1: 解決過程を開始する"
+パス名が \(aq/\(aq 文字で始まっている場合、 ディレクトリ検索の開始点は呼び出し元のプロセスのルートディレクトリになる。
+(プロセスはルートディレクトリを親プロセスから継承する。 通常は、これがファイル階層のルートディレクトリになる。 プロセスは \fBchroot\fP(2)
+システムコールを使って別のルートディレクトリを取得することもできる。 この場合、そのプロセスと \fBCLONE_NEWNS\fP フラグを設定して
+\fBclone\fP(2)  を呼び出すことによって開始されたそのプロセスの子孫は、 完全にプライベートなマウント名前空間を取得できる。)  パス名の
+\(aq/\(aq の部分は、このようにして扱われる。
 
-.\"O If the pathname does not start with the \(aq/\(aq character, the
-.\"O starting lookup directory of the resolution process is the current working
-.\"O directory of the process.
-.\"O (This is also inherited from the parent.
-.\"O It can be changed by use of the
-.\"O .BR chdir (2)
-.\"O system call.)
-¥Ñ¥¹Ì¾¤¬ \(aq/\(aq Ê¸»ú¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
-²ò·è²áÄø¤Ë¤ª¤±¤ë¥Ç¥£¥ì¥¯¥È¥ê¸¡º÷¤Î³«»ÏÅÀ¤Ï¡¢
-¥×¥í¥»¥¹¤Î¸½ºß¤Îºî¶È (working) ¥Ç¥£¥ì¥¯¥È¥ê¤È¤Ê¤ë¡£
-(¤³¤ì¤â¿Æ¥×¥í¥»¥¹¤«¤é·Ñ¾µ¤µ¤ì¤ë¡£
-¤³¤ì¤Ï
-.BR chdir (2)
-¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»È¤¦¤³¤È¤ÇÊѹ¹¤Ç¤­¤ë¡£)
+パス名が \(aq/\(aq 文字で始まっていない場合、 解決過程におけるディレクトリ検索の開始点は、 プロセスの現在の作業 (working)
+ディレクトリとなる。 (これも親プロセスから継承される。 これは \fBchdir\fP(2)  システムコールを使うことで変更できる。)
 
-.\"O Pathnames starting with a \(aq/\(aq character are called absolute pathnames.
-.\"O Pathnames not starting with a \(aq/\(aq are called relative pathnames.
-\(aq/\(aq Ê¸»ú¤Ç»Ï¤Þ¤ë¥Ñ¥¹Ì¾¤ÏÀäÂХѥ¹Ì¾¤È¸Æ¤Ð¤ì¡¢
-\(aq/\(aq Ê¸»ú¤Ç»Ï¤Þ¤é¤Ê¤¤¥Ñ¥¹Ì¾¤ÏÁêÂХѥ¹Ì¾¤È¸Æ¤Ð¤ì¤ë¡£
-.\"O .SS "Step 2: Walk along the path"
-.SS "¥¹¥Æ¥Ã¥× 2: ¥Ñ¥¹¤òé¤ë"
-.\"O Set the current lookup directory to the starting lookup directory.
-.\"O Now, for each nonfinal component of the pathname, where a component
-.\"O is a substring delimited by \(aq/\(aq characters, this component is looked up
-.\"O in the current lookup directory.
-¸½ºß¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤ò¥Ç¥£¥ì¥¯¥È¥ê¸¡º÷¤Î³«»ÏÅÀ¤È¤¹¤ë¡£
-¤½¤·¤Æ¡¢¥Ñ¥¹Ì¾¤ÎºÇ¸å¤Î¹½À®Í×ÁÇ (component) ¤Ç¤Ê¤¤³Æ¹½À®Í×ÁǤˤĤ¤¤Æ¡¢
-¸½ºß¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤Ç¸¡º÷¤ò¹Ô¤¦¡£
-¤³¤³¤Ç¹½À®Í×ÁǤϠ\(aq/\(aq ¤Ç¶èÀÚ¤é¤ì¤¿Éôʬʸ»úÎó¤Ç¤¢¤ë¡£
+\(aq/\(aq 文字で始まるパス名は絶対パス名と呼ばれ、 \(aq/\(aq 文字で始まらないパス名は相対パス名と呼ばれる。
+.SS "ステップ 2: パスを辿る"
+現在の検索ディレクトリをディレクトリ検索の開始点とする。 そして、パス名の最後の構成要素 (component) でない各構成要素について、
+現在の検索ディレクトリで検索を行う。 ここで構成要素は \(aq/\(aq で区切られた部分文字列である。
 
-.\"O If the process does not have search permission on
-.\"O the current lookup directory,
-.\"O an
-.\"O .B EACCES
-.\"O error is returned ("Permission denied").
-¥×¥í¥»¥¹¤¬¸½ºß¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤Î¸¡º÷µö²Ä¤ò»ý¤¿¤Ê¤¤¾ì¹ç¡¢
-.B EACCES
-¥¨¥é¡¼¤¬ÊÖ¤µ¤ì¤ë ("Permission denied")¡£
+プロセスが現在の検索ディレクトリの検索許可を持たない場合、 \fBEACCES\fP エラーが返される ("Permission denied")。
 
-.\"O If the component is not found, an
-.\"O .B ENOENT
-.\"O error is returned
-.\"O \"O ("No such file or directory").
-¹½À®Í×ÁǤ¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¡¢
-.B ENOENT
-¥¨¥é¡¼¤¬ÊÖ¤µ¤ì¤ë
-("No such file or directory")¡£
+構成要素が見つからない場合、 \fBENOENT\fP エラーが返される ("No such file or directory")。
 
-.\"O If the component is found, but is neither a directory nor a symbolic link,
-.\"O an
-.\"O .B ENOTDIR
-.\"O error is returned ("Not a directory").
-¹½À®Í×ÁǤϸ«¤Ä¤«¤Ã¤¿¤¬¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤â¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤â¤Ê¤¤¾ì¹ç¡¢
-.B ENOTDIR
-¥¨¥é¡¼¤¬ÊÖ¤µ¤ì¤ë ("Not a directory")¡£
+構成要素は見つかったが、ディレクトリでもシンボリックリンクでもない場合、 \fBENOTDIR\fP エラーが返される ("Not a
+directory")。
 
-.\"O If the component is found and is a directory, we set the
-.\"O current lookup directory to that directory, and go to the
-.\"O next component.
-¹½À®Í×ÁǤ¬¸«¤Ä¤«¤Ã¤Æ¡¢¤«¤Ä¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ë¾ì¹ç¡¢
-¸½ºß¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤ò¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ËÀßÄꤷ¡¢
-¼¡¤Î¹½À®Í×ÁǤ˰ÜÆ°¤¹¤ë¡£
+構成要素が見つかって、かつディレクトリである場合、 現在の検索ディレクトリをそのディレクトリに設定し、 次の構成要素に移動する。
 
-.\"O If the component is found and is a symbolic link (symlink), we first
-.\"O resolve this symbolic link (with the current lookup directory
-.\"O as starting lookup directory).
-.\"O Upon error, that error is returned.
-¹½À®Í×ÁǤ¬¸«¤Ä¤«¤Ã¤Æ¡¢¤«¤Ä¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯ (symlink) ¤Ç¤¢¤ë¾ì¹ç¡¢
-(¸½ºß¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤ò¥Ç¥£¥ì¥¯¥È¥ê¸¡º÷¤Î³«»ÏÅÀ¤È¤·¤Æ)
-ºÇ½é¤Ë¤½¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò²ò·è¤¹¤ë¡£
-.\"O If the result is not a directory, an
-.\"O .B ENOTDIR
-.\"O error is returned.
-·ë²Ì¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤¤¾ì¹ç¡¢
-.B ENOTDIR
-¥¨¥é¡¼¤¬ÊÖ¤µ¤ì¤ë¡£
-.\"O If the resolution of the symlink is successful and returns a directory,
-.\"O we set the current lookup directory to that directory, and go to
-.\"O the next component.
-¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î²ò·è¤¬À®¸ù¤·¤Æ¥Ç¥£¥ì¥¯¥È¥ê¤¬ÊÖ¤µ¤ì¤¿¾ì¹ç¡¢
-¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¸½ºß¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤È¤·¤ÆÀßÄꤷ¡¢
-¼¡¤Î¹½À®Í×ÁǤ˰ÜÆ°¤¹¤ë¡£
-.\"O Note that the resolution process here involves recursion.
-²ò·è²áÄø¤ËºÆµ¢¤¬´Þ¤Þ¤ì¤ëÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
-.\"O In order to protect the kernel against stack overflow, and also
-.\"O to protect against denial of service, there are limits on the
-.\"O maximum recursion depth, and on the maximum number of symbolic links
-.\"O followed.
-.\"O An
-.\"O .B ELOOP
-.\"O error is returned when the maximum is
-.\"O exceeded ("Too many levels of symbolic links").
-¥«¡¼¥Í¥ë¤ò¥¹¥¿¥Ã¥¯¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤ä
-¥µ¡¼¥Ó¥¹µñÈÝ (denial of service) ¤«¤é¼é¤ë¤¿¤á¡¢
-ºÆµ¢¤ÎºÇÂç¤Î¿¼¤µ¤È¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òé¤ëºÇÂç²ó¿ô¤ËÀ©¸Â¤¬¤¢¤ë¡£
-ºÇÂçÃͤòĶ¤¨¤¿¾ì¹ç
-.B ELOOP
-¥¨¥é¡¼¤¬ÊÖ¤µ¤ì¤ë
-("Too many levels of symbolic links")¡£
 .\"
-.\"O .\" presently: max recursion depth during symlink resolution: 5
-.\"O .\" max total number of symbolic links followed: 40
-.\"O .\" _POSIX_SYMLOOP_MAX is 8
-.\" ¸½ºß¤Î¤È¤³¤í: ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯²ò·è¤Ë¤ª¤±¤ëºÆµ¢¤ÎºÇÂç¤Î¿¼¤µ¤Ï 5 ¤Ç¤¢¤ë¡£
-.\" ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òé¤ëºÇÂç²ó¿ô¤Ï 40 ¤Ç¤¢¤ë¡£
-.\" _POSIX_SYMLOOP_MAX ¤Ï 8 ¤Ç¤¢¤ë¡£
-.\"O .SS "Step 3: Find the final entry"
-.SS "¥¹¥Æ¥Ã¥× 3: ºÇ¸å¤Î¥¨¥ó¥È¥ê¤ò¸«¤Ä¤±¤ë"
-.\"O The lookup of the final component of the pathname goes just like
-.\"O that of all other components, as described in the previous step,
-.\"O with two differences: (i) the final component need not be a
-.\"O directory (at least as far as the path resolution process is concerned \(em
-.\"O it may have to be a directory, or a nondirectory, because of
-.\"O the requirements of the specific system call), and (ii) it
-.\"O is not necessarily an error if the component is not found \(em
-.\"O maybe we are just creating it.
-.\"O The details on the treatment
-.\"O of the final entry are described in the manual pages of the specific
-.\"O system calls.
-¥Ñ¥¹Ì¾¤ÎºÇ¸å¤Î¹½À®Í×ÁǤθ¡º÷¤Ï¡¢Á°¤Î¥¹¥Æ¥Ã¥×¤ÇÀâÌÀ¤·¤¿
-¾¤ÎÁ´¤Æ¤Î¹½À®Í×ÁǤÈƱ¤¸¤è¤¦¤Ë¼Â¹Ô¤µ¤ì¤ë¤¬¡¢2 ¤Ä¤Î°ã¤¤¤¬¤¢¤ë¡£
-(i) ºÇ¸å¤Î¹½À®Í×ÁǤϥǥ£¥ì¥¯¥È¥ê¤Ç¤¢¤ëɬÍפ¬¤Ê¤¤
-(¥Ñ¥¹²ò·è²áÄø¤Ë´Ø¤¹¤ë¸Â¤ê¤Ï¤É¤Á¤é¤Ç¤â¹½¤ï¤Ê¤¤ \(em
-ÆÃÄê¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬Í׵᤹¤ë¤â¤Î¤Ë¤è¤Ã¤Æ¡¢
-¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¾ì¹ç¤â¤¢¤ë¤·¡¢
-¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¾ì¹ç¤â¤¢¤ë)¡£
-(ii) ¹½À®Í×ÁǤ¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ë¥¨¥é¡¼¤Ë¤¹¤ëɬÍפϤʤ¤ \(em
-¤½¤Î¹½À®Í×ÁǤòºîÀ®¤¹¤ë¤À¤±¤Ç¤è¤¤¾ì¹ç¤â¤¢¤ë¡£
-ºÇ¸å¤Î¥¨¥ó¥È¥ê¤Î¾ÜºÙ¤Ê°·¤¤¤Ï¡¢
-ÆÃÄê¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î man ¥Ú¡¼¥¸¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤ë¡£
-.\"O .SS ". and .."
-.SS ". ¤È .."
-.\"O By convention, every directory has the entries "." and "..",
-.\"O which refer to the directory itself and to its parent directory,
-.\"O respectively.
-´·½¬¤È¤·¤Æ¡¢Á´¤Æ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ï¥¨¥ó¥È¥ê "." ¤È ".." ¤ò»ý¤Ä¡£
-¤³¤ì¤é¤Ï¤½¤ì¤¾¤ì¡¢¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¼«¿È¤È¤½¤Î¿Æ¥Ç¥£¥ì¥¯¥È¥ê¤ò»²¾È¤¹¤ë¡£
-
-.\"O The path resolution process will assume that these entries have
-.\"O their conventional meanings, regardless of whether they are
-.\"O actually present in the physical file system.
-¥Ñ¥¹²ò·è²áÄø¤Ç¤Ï¡¢¤³¤ì¤é¤Î¥¨¥ó¥È¥ê¤¬ÊªÍýŪ¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë
-¼ÂºÝ¤Ë¸ºß¤¹¤ë¤«Èݤ«¤Ë´Ø¤ï¤é¤º¡¢´·½¬Åª¤Ê°ÕÌ£¤ò»ý¤Ä¤È²¾Äꤹ¤ë¡£
-
-.\"O One cannot walk down past the root: "/.." is the same as "/".
-¥ë¡¼¥È¤è¤ê¾å¤Ëé¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤: "/.." ¤Ï "/" ¤ÈƱ¤¸¤Ç¤¢¤ë¡£
-.\"O .SS "Mount points"
-.SS "¥Þ¥¦¥ó¥È°ÌÃÖ"
-.\"O After a "mount dev path" command, the pathname "path" refers to
-.\"O the root of the file system hierarchy on the device "dev", and no
-.\"O longer to whatever it referred to earlier.
-"mount dev path" ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤¿¸å¡¢
-¥Ñ¥¹Ì¾ "path" ¤Ï¥Ç¥Ð¥¤¥¹ "dev" ¾å¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à³¬ÁؤÎ
-¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤ò»²¾È¤¹¤ë¤è¤¦¤Ë¤Ê¤ê¡¢°ÊÁ°¤Î°ÌÃÖ¤ò»²¾È¤·¤Ê¤¤¡£
-
-.\"O One can walk out of a mounted file system: "path/.." refers to
-.\"O the parent directory of "path",
-.\"O outside of the file system hierarchy on "dev".
-¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î³°¤Ë½Ð¤ë¤³¤È¤¬¤Ç¤­¤ë:
-"path/.." ¤Ï "dev" ¾å¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à³¬Áؤγ°¤Ç¤¢¤ë
-"path" ¤Î¿Æ¥Ç¥£¥ì¥¯¥È¥ê¤ò»²¾È¤¹¤ë¡£
-.\"O .SS "Trailing slashes"
-.SS "ËöÈø¤Î¥¹¥é¥Ã¥·¥å"
-.\"O If a pathname ends in a \(aq/\(aq, that forces resolution of the preceding
-.\"O component as in Step 2: it has to exist and resolve to a directory.
-.\"O Otherwise a trailing \(aq/\(aq is ignored.
-.\"O (Or, equivalently, a pathname with a trailing \(aq/\(aq is equivalent to
-.\"O the pathname obtained by appending \(aq.\(aq to it.)
-¥Ñ¥¹Ì¾¤¬ \(aq/\(aq ¤Ç½ª¤ï¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
-¥¹¥Æ¥Ã¥× 2 ¤Ë¤ª¤¤¤Æ¡¢¤½¤ÎÁ°¤Ë¤¢¤ë¹½À®Í×ÁǤβò·èË¡¤ò¼¡¤Î¤è¤¦¤Ë¶¯À©¤¹¤ë:
-¤½¤Î¹½À®Í×ÁǤ¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢¥Ç¥£¥ì¥¯¥È¥ê¤È¤·¤Æ²ò·è¤µ¤ì¤ë¡£
-¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¡¢ËöÈø¤Î \(aq/\(aq ¤¬Ìµ»ë¤µ¤ì¤ë¡£
-(¤Þ¤¿Æ±Íͤˡ¢ËöÈø¤Ë \(aq/\(aq ¤¬¤¢¤ë¥Ñ¥¹Ì¾¤Ï¡¢
-\(aq.\(aq ¤òËöÈø¤Ë²Ã¤¨¤ÆÆÀ¤é¤ì¤ë¥Ñ¥¹Ì¾¤ÈÅù¤·¤¤¡£)
-.\"O .SS "Final symlink"
-.SS "ºÇ¸å¤¬¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î¤È¤­"
-.\"O If the last component of a pathname is a symbolic link, then it
-.\"O depends on the system call whether the file referred to will be
-.\"O the symbolic link or the result of path resolution on its contents.
-¥Ñ¥¹Ì¾¤ÎºÇ¸å¤Î¹½À®Í×ÁǤ¬¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¢¤ë¾ì¹ç¡¢
-»²¾È¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤ò¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤È¤¹¤ë¤«¡¢
-¤½¤ÎÆâÍƤˤĤ¤¤Æ¥Ñ¥¹¤ò²ò·è¤·¤¿·ë²Ì¤È¤¹¤ë¤«¤Ï¡¢
-¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ë°Í¸¤¹¤ë¡£
-.\"O For example, the system call
-.\"O .BR lstat (2)
-.\"O will operate on the symlink, while
-.\"O .BR stat (2)
-.\"O operates on the file pointed to by the symlink.
-¤¿¤È¤¨¤Ð¡¢¥·¥¹¥Æ¥à¥³¡¼¥ë
-.BR lstat (2)
-¤Ï¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ËºîÍѤ¹¤ë¡£
-°ìÊý¡¢
-.BR stat (2)
-¤Ï¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç»Ø¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤ËºîÍѤ¹¤ë¡£
-.\"O .SS "Length limit"
-.SS "Ťµ¤ÎÀ©¸Â"
-.\"O There is a maximum length for pathnames.
-.\"O If the pathname (or some
-.\"O intermediate pathname obtained while resolving symbolic links)
-.\"O is too long, an
-.\"O .B ENAMETOOLONG
-.\"O error is returned ("File name too long").
-¥Ñ¥¹Ì¾¤Ë¤ÏºÇÂ獬¤¢¤ë¡£
-¥Ñ¥¹Ì¾ (¤Þ¤¿¤Ï¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò²ò·è¤¹¤ë¤È¤­¤ËÆÀ¤é¤ì¤ëÃæ´Ö¥Ñ¥¹Ì¾) ¤¬
-Ť¹¤®¤ë¾ì¹ç¡¢
-.B ENAMETOOLONG
-¥¨¥é¡¼¤¬ÊÖ¤µ¤ì¤ë ("File name too long")¡£
-.\"O .SS "Empty pathname"
-.SS "¶õ¤Î¥Ñ¥¹Ì¾"
-.\"O In the original UNIX, the empty pathname referred to the current directory.
-.\"O Nowadays POSIX decrees that an empty pathname must not be resolved
-.\"O successfully.
-.\"O Linux returns
-.\"O .B ENOENT
-.\"O in this case.
-¸µ¡¹¤Î UNIX ¤Ç¤Ï¡¢¶õ¤Î¥Ñ¥¹Ì¾¤Ï¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»²¾È¤·¤Æ¤¤¤¿¡£
-ºÇ¶á¡¢POSIX ¤Ç¤Ï¶õ¤Î¥Ñ¥¹Ì¾¤ò²ò·è¤¹¤ë¤Ù¤­¤Ç¤Ï¤Ê¤¤¤È¤¤¤¦·èÄ꤬¤Ê¤µ¤ì¤¿¡£
-¤³¤Î¾ì¹ç¡¢Linux ¤Ï
-.B ENOENT
-¤òÊÖ¤¹¡£
-.\"O .SS "Permissions"
-.SS "µö²Ä"
-.\"O The permission bits of a file consist of three groups of three bits, cf.\&
-.\"O .BR chmod (1)
-.\"O and
-.\"O .BR stat (2).
-¥Õ¥¡¥¤¥ë¤Îµö²Ä¥Ó¥Ã¥È¤Ï¡¢3 ÁȤΠ3 ¥Ó¥Ã¥È¤«¤é¹½À®¤µ¤ì¤ë¡£
-.BR chmod (1)
-¤È
-.BR stat (2)
-¤ò»²¾È¤¹¤ë¤³¤È¡£
-.\"O The first group of three is used when the effective user ID of
-.\"O the calling process equals the owner ID of the file.
-.\"O The second group
-.\"O of three is used when the group ID of the file either equals the
-.\"O effective group ID of the calling process, or is one of the
-.\"O supplementary group IDs of the calling process (as set by
-.\"O .BR setgroups (2)).
-.\"O When neither holds, the third group is used.
-¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¼Â¸ú¥æ¡¼¥¶ ID ¤¬¥Õ¥¡¥¤¥ë¤Î½êÍ­¼Ô ID ¤ÈÅù¤·¤¤¾ì¹ç¡¢
-3 ¤Ä¤Î¤¦¤ÁºÇ½é¤Î¥°¥ë¡¼¥×¤¬»È¤ï¤ì¤ë¡£
-¥Õ¥¡¥¤¥ë¤Î¥°¥ë¡¼¥× ID ¤¬¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¼Â¸ú¥°¥ë¡¼¥× ID ¤Þ¤¿¤Ï
-.RB ( setgroups (2)
-¤ÇÀßÄꤵ¤ì¤ë) ¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤ÎÊä½õ (supplementary) ¥°¥ë¡¼¥× ID ¤È
-Åù¤·¤¤¾ì¹ç¡¢3 ¤Ä¤Î¤¦¤Á 2 ÈÖÌܤΥ°¥ë¡¼¥×¤¬»È¤ï¤ì¤ë¡£
-¤É¤Á¤é¤Ë¤âÅö¤Æ¤Ï¤Þ¤é¤Ê¤¤¾ì¹ç¡¢3 ÈÖÌܤΥ°¥ë¡¼¥×¤¬»È¤ï¤ì¤ë¡£
-
-.\"O Of the three bits used, the first bit determines read permission,
-.\"O the second write permission, and the last execute permission
-.\"O in case of ordinary files, or search permission in case of directories.
-3 ¥Ó¥Ã¥È¤¬»È¤ï¤ì¤ë¾ì¹ç¡¢ºÇ½é¤Î¥Ó¥Ã¥È¤ÏÆɤ߹þ¤ßµö²Ä¤ò·èÄꤷ¡¢
-2 ÈÖÌܤΥӥåȤϽñ¤­¹þ¤ßµö²Ä¤ò·èÄꤹ¤ë¡£
-¤Þ¤¿ 3 ÈÖÌܤΥӥåȤϡ¢Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤Ï¼Â¹Ôµö²Ä¤òɽ¤·¡¢
-¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¤Ï¸¡º÷µö²Ä¤òɽ¤¹¡£
-
-.\"O Linux uses the fsuid instead of the effective user ID in permission checks.
-.\"O Ordinarily the fsuid will equal the effective user ID, but the fsuid can be
-.\"O changed by the system call
-.\"O .BR setfsuid (2).
-Linux ¤Ï¡¢µö²Ä¤Î¥Á¥§¥Ã¥¯¤Ë¤ª¤¤¤Æ¡¢¼Â¸ú¥æ¡¼¥¶ ID ¤Ç¤Ï¤Ê¤¯ fsuid ¤ò»È¤¦¡£
-Ä̾ï¤Ï fsuid ¤Ï¼Â¸ú¥æ¡¼¥¶ ID ¤ÈÅù¤·¤¤¤¬¡¢fsuid ¤Ï¥·¥¹¥Æ¥à¥³¡¼¥ë
-.BR setfsuid (2)
-¤ÇÊѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
-
-.\"O (Here "fsuid" stands for something like "file system user ID".
-.\"O The concept was required for the implementation of a user space
-.\"O NFS server at a time when processes could send a signal to a process
-.\"O with the same effective user ID.
-.\"O It is obsolete now.
-.\"O Nobody should use
-.\"O .BR setfsuid (2).)
-(¤³¤³¤Ç "fsuid" ¤Ï "file system user ID" ¤òɽ¤·¤Æ¤¤¤ë¡£
-¤³¤Î³µÇ°¤Ï¡Ö¥×¥í¥»¥¹¤¬Æ±¤¸¼Â¸ú¥æ¡¼¥¶ ID ¤ò»ý¤Ä¥×¥í¥»¥¹¤Ë
-Ʊ»þ¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤ë¤³¤È¤¬¤Ç¤­¤ë¡×¤È¤¤¤¦¥æ¡¼¥¶¶õ´Ö NFS ¥µ¡¼¥Ð¤ò
-¼ÂÁõ¤¹¤ëºÝ¤ËɬÍפǤ¢¤Ã¤¿¡£
-¤³¤ì¤Ïº£¤Ç¤ÏÇѤì¤Æ¤·¤Þ¤Ã¤¿¡£
-.BR setfsuid (2)
-¤ò»È¤¦¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£
+.\" presently: max recursion depth during symlink resolution: 5
+.\" max total number of symbolic links followed: 40
+.\" _POSIX_SYMLOOP_MAX is 8
+構成要素が見つかって、かつシンボリックリンク (symlink) である場合、 (現在の検索ディレクトリをディレクトリ検索の開始点として)
+最初にそのシンボリックリンクを解決する。 結果がディレクトリでない場合、 \fBENOTDIR\fP エラーが返される。
+シンボリックリンクの解決が成功してディレクトリが返された場合、 そのディレクトリを現在の検索ディレクトリとして設定し、 次の構成要素に移動する。
+解決過程に再帰が含まれる点に注意すること。 カーネルをスタックオーバーフローや サービス拒否 (denial of service) から守るため、
+再帰の最大の深さとシンボリックリンクを辿る最大回数に制限がある。 最大値を超えた場合 \fBELOOP\fP エラーが返される ("Too many
+levels of symbolic links")。
+.SS "ステップ 3: 最後のエントリを見つける"
+パス名の最後の構成要素の検索は、前のステップで説明した 他の全ての構成要素と同じように実行されるが、2 つの違いがある。 (i)
+最後の構成要素はディレクトリである必要がない (パス解決過程に関する限りはどちらでも構わない \(em 特定のシステムコールが要求するものによって、
+ディレクトリでなければならない場合もあるし、 ディレクトリ以外でなければならない場合もある)。 (ii)
+構成要素が見つからない場合にエラーにする必要はない \(em その構成要素を作成するだけでよい場合もある。 最後のエントリの詳細な扱いは、
+特定のシステムコールの man ページで説明されている。
+.SS ". と .."
+慣習として、全てのディレクトリはエントリ "." と ".." を持つ。 これらはそれぞれ、そのディレクトリ自身とその親ディレクトリを参照する。
+
+パス解決過程では、これらのエントリが物理的なファイルシステムに 実際に存在するか否かに関わらず、慣習的な意味を持つと仮定する。
+
+ルートより上に辿ることはできない: "/.." は "/" と同じである。
+.SS マウント位置
+"mount dev path" コマンドを実行した後、 パス名 "path" はデバイス "dev" 上のファイルシステム階層の
+ルートディレクトリを参照するようになり、以前の位置を参照しない。
+
+マウントされたファイルシステムの外に出ることができる: "path/.." は "dev" 上のファイルシステム階層の外である "path"
+の親ディレクトリを参照する。
+.SS 末尾のスラッシュ
+パス名が \(aq/\(aq で終わっている場合、 ステップ 2 において、その前にある構成要素の解決法を次のように強制する:
+その構成要素が存在しなければならず、ディレクトリとして解決される。 存在しない場合は、末尾の \(aq/\(aq が無視される。 (また同様に、末尾に
+\(aq/\(aq があるパス名は、 \(aq.\(aq を末尾に加えて得られるパス名と等しい。)
+.SS 最後がシンボリックリンクのとき
+パス名の最後の構成要素がシンボリックリンクである場合、 参照されるファイルをシンボリックリンクとするか、 その内容についてパスを解決した結果とするかは、
+システムコールに依存する。 たとえば、システムコール \fBlstat\fP(2)  はシンボリックリンクに作用する。 一方、 \fBstat\fP(2)
+はシンボリックリンクで指されたファイルに作用する。
+.SS 長さの制限
+パス名には最大長がある。 パス名 (またはシンボリックリンクを解決するときに得られる中間パス名) が 長すぎる場合、 \fBENAMETOOLONG\fP
+エラーが返される ("Filename too long")。
+.SS 空のパス名
+元々の UNIX では、空のパス名は現在のディレクトリを参照していた。 最近、POSIX では空のパス名を解決するべきではないという決定がなされた。
+この場合、Linux は \fBENOENT\fP を返す。
+.SS 許可
+ファイルの許可ビットは、3 組の 3 ビットから構成される。 \fBchmod\fP(1)  と \fBstat\fP(2)  を参照すること。
+呼び出し元のプロセスの実効ユーザ ID がファイルの所有者 ID と等しい場合、 3 つのうち最初のグループが使われる。 ファイルのグループ ID
+が呼び出し元のプロセスの実効グループ ID または (\fBsetgroups\fP(2)  で設定される) 呼び出し元のプロセスの補助
+(supplementary) グループ ID と 等しい場合、3 つのうち 2 番目のグループが使われる。 どちらにも当てはまらない場合、3
+番目のグループが使われる。
+
+3 ビットが使われる場合、最初のビットは読み込み許可を決定し、 2 番目のビットは書き込み許可を決定する。 また 3
+番目のビットは、通常のファイルの場合は実行許可を表し、 ディレクトリの場合は検索許可を表す。
+
+Linux は、許可のチェックにおいて、実効ユーザ ID ではなく fsuid を使う。 通常は fsuid は実効ユーザ ID と等しいが、fsuid
+はシステムコール \fBsetfsuid\fP(2)  で変更することができる。
+
+(ここで "fsuid" は "file system user ID" を表している。 この概念は「プロセスが同じ実効ユーザ ID を持つプロセスに
+同時にシグナルを送ることができる」というユーザ空間 NFS サーバを 実装する際に必要であった。 これは今では廃れてしまった。
+\fBsetfsuid\fP(2)  を使うべきではない。
 
-.\"O Similarly, Linux uses the fsgid ("file system group ID")
-.\"O instead of the effective group ID.
-.\"O See
-.\"O .BR setfsgid (2).
-ƱÍͤˡ¢Linux ¤Ç¤Ï¼Â¸ú¥°¥ë¡¼¥× ID ¤ÎÂå¤ï¤ê¤Ë
-fsgid ("¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¡¦¥°¥ë¡¼¥×ID") ¤ò»È¤¦¡£
-.BR setfsgid (2)
-¤ò»²¾È¤¹¤ë¤³¤È¡£
 .\" FIXME say something about file system mounted read-only ?
-.\"O .SS "Bypassing permission checks: superuser and capabilities"
-.SS "µö²Ä¤Î³Îǧ¤ò¥¹¥­¥Ã¥×¤¹¤ë: ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤È¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£"
-.\"O On a traditional UNIX system, the superuser
-.\"O .RI ( root ,
-.\"O user ID 0) is all-powerful, and bypasses all permissions restrictions
-.\"O when accessing files.
-ÅÁÅýŪ¤Ê UNIX ¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶
-.RI ( root ,
-¥æ¡¼¥¶ ID 0) ¤ÏÈó¾ï¤Ë¶¯ÎϤǤ¢¤ê¡¢¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹»þ¤Î
-µö²Ä¤Ë¤è¤ëÀ©¸Â¤òÁ´¤Æ¥¹¥­¥Ã¥×¤¹¤ë¡£
+同様に、Linux では実効グループ ID の代わりに fsgid ("ファイルシステム・グループID") を使う。 \fBsetfsgid\fP(2)
+を参照すること。
+.SS "許可の確認をスキップする: スーパーユーザとケーパビリティ"
 .\" (but for exec at least one x bit must be set) -- AEB
 .\" but there is variation across systems on this point: for
 .\" example, HP-UX and Tru64 are as described by AEB.  However,
 .\" on some implementations (e.g., Solaris, FreeBSD),
 .\" access(X_OK) by superuser will report success, regardless
 .\" of the file's execute permission bits. -- MTK (Oct 05)
+伝統的な UNIX システムでは、スーパーユーザ (\fIroot\fP, ユーザ ID 0) は非常に強力であり、ファイルアクセス時の
+許可による制限を全てスキップする。
 
-.\"O On Linux, superuser privileges are divided into capabilities (see
-.\"O .BR capabilities (7)).
-.\"O Two capabilities are relevant for file permissions checks:
-.\"O \fBCAP_DAC_OVERRIDE\fP and \fBCAP_DAC_READ_SEARCH\fP.
-.\"O (A process has these capabilities if its fsuid is 0.)
-Linux ¤Ç¤Ï¡¢¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¸¢¸Â¤¬Ê£¿ô¤Î¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤Ëʬ³ä¤µ¤ì¤Æ¤¤¤ë
-.RB ( capabilities (7)
-»²¾È)¡£¥Õ¥¡¥¤¥ë¤Îµö²Ä¤Î³Îǧ¤Ë¤Ï¡¢
-.B CAP_DAC_OVERRIDE
-¤È
-.B CAP_DAC_READ_SEARCH
-¤Î 2¤Ä¤Î¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤¬´Ø·¸¤¹¤ë
-(¥×¥í¥»¥¹¤Î fsuid ¤¬ 0 ¤Î¾ì¹ç¡¢¤½¤Î¥×¥í¥»¥¹¤Ï¤³¤ì¤é¤Î¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤ò»ý¤Ä)¡£
+Linux では、スーパーユーザ権限が複数のケーパビリティに分割されている (\fBcapabilities\fP(7)  参照)。ファイルの許可の確認には、
+\fBCAP_DAC_OVERRIDE\fP と \fBCAP_DAC_READ_SEARCH\fP の 2つのケーパビリティが関係する (プロセスの fsuid
+が 0 の場合、そのプロセスはこれらのケーパビリティを持つ)。
 
-.\"O The \fBCAP_DAC_OVERRIDE\fP capability overrides all permission checking,
-.\"O but only grants execute permission when at least one
-.\"O of the file's three execute permission bits is set.
-.B CAP_DAC_OVERRIDE
-¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤ÏÁ´¤Æ¤Îµö²Ä¥Á¥§¥Ã¥¯¤ò¾å½ñ¤­¤¹¤ë¡£
-¼ÂºÝ¤Ë¤Ï¡¢ÂоݤȤʤë¥Õ¥¡¥¤¥ë¤Î 3 ¤Ä¤Î¼Â¹Ôµö²Ä¥Ó¥Ã¥È¤Î¤¦¤Á¤Î
-¾¯¤Ê¤¯¤È¤â 1 ¤Ä¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ì¤Ð¡¢¼Â¹Ô¤òµö²Ä¤¹¤ë¤À¤±¤Ç¤¢¤ë¡£
+\fBCAP_DAC_OVERRIDE\fP ケーパビリティは全ての許可チェックを上書きする。 実際には、対象となるファイルの 3 つの実行許可ビットのうちの
+少なくとも 1 つが設定されている場合のみ、実行を許可する。
 
-.\"O The \fBCAP_DAC_READ_SEARCH\fP capability grants read and search permission
-.\"O on directories, and read permission on ordinary files.
-.B CAP_DAC_READ_SEARCH
-¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¤ËÂФ·¤ÆÆɤ߹þ¤ß¤È¸¡º÷¤òµö²Ä¤·¡¢
-Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤ÆÆɤ߹þ¤ß¤òµö²Ä¤¹¤ë¡£
 .\" FIXME say something about immutable files
 .\" FIXME say something about ACLs
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR readlink (2),
-.BR capabilities (7),
-.BR credentials (7),
-.BR symlink (7)
+\fBCAP_DAC_READ_SEARCH\fP ケーパビリティは、ディレクトリに対して読み込みと検索を許可し、 通常のファイルに対して読み込みを許可する。
+.SH 関連項目
+\fBreadlink\fP(2), \fBcapabilities\fP(7), \fBcredentials\fP(7), \fBsymlink\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。