OSDN Git Service

Update release pages
[linuxjm/LDP_man-pages.git] / release / man2 / linkat.2
index d4364e1..3002635 100644 (file)
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
+.\"
+.\" Japanese Version Copyright (c) 2006 Yuichi SATO
+.\"         all rights reserved.
+.\" Translated 2006-09-30 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.39
+.\" Updated 2013-08-21, Akihiro MOTOKI <amotoki@gmail.com>, LDP v3.53
+.\"
 .TH LINKAT 2 2013\-07\-21 Linux "Linux Programmer's Manual"
 .SH 名前
 linkat \- ディレクトリファイルディスクリプタから相対的な位置にファイルリンクを作成する
@@ -73,15 +79,14 @@ _ATFILE_SOURCE
 
 \fIflags\fP に以下の値をビット毎の論理和 (OR) で指定することができる。
 .TP 
- \fBAT_EMPTY_PATH\fP (since Linux 2.6.39)
+\fBAT_EMPTY_PATH\fP (Linux 2.6.39 以降)
 .\" commit 11a7b371b64ef39fc5fb1b6f2218eef7c4d035e3
-If \fIoldpath\fP is an empty string, create a link to the file referenced by
-\fIolddirfd\fP (which may have been obtained using the \fBopen\fP(2)  \fBO_PATH\fP
-flag).  In this case, \fIolddirfd\fP can refer to any type of file, not just a
-directory.  The caller must have the \fBCAP_DAC_READ_SEARCH\fP capability in
-order to use this flag; this prevents arbitrary users from creating hard
-links using file descriptors received via a UNIX domain socket (see the
-discussion of \fBSCM_RIGHTS\fP in \fBunix\fP(7)).
+\fIoldpath\fP が空の文字列の場合、 \fIolddirfd\fP が参照するファイルへのリンクを作成する (\fIolddirfd\fP は
+\fBopen\fP(2) の \fBO_PATH\fP フラグを使って取得することができる)。 この場合、 \fIolddirfd\fP は、
+ディレクトリだけでなく、任意の種類のファイルを参照することができる。 このフラグを使うためには、 呼び出し側は
+\fBCAP_DAC_READ_SEARCH\fP ケーパビリティを持っていなければならない。 これは、 UNIX
+ドメインソケット経由で受信したファイルディスクリプタを使って、 任意のユーザがハードリンクを作成するのを防止するためである (\fBunix\fP(7) の
+\fBSCM_RIGHTS\fP に関する議論を参照)。
 .TP 
  \fBAT_SYMLINK_FOLLOW\fP (since Linux 2.6.18)
 デフォルトでは、 \fIoldpath\fP がシンボリック・リンクの場合、 (\fBlink\fP(2)  同様)  \fBlinkat\fP()  は
@@ -98,8 +103,8 @@ discussion of \fBSCM_RIGHTS\fP in \fBunix\fP(7)).
 \fIolddirfd\fP または \fInewdirfd\fP が有効なファイルディスクリプタでない。
 .TP 
 \fBENOENT\fP
-\fBAT_EMPTY_PATH\fP was specified in \fIflags\fP, but the caller did not have the
-\fBCAP_DAC_READ_SEARCH\fP capability.
+\fIflags\fP に \fBAT_EMPTY_PATH\fP が指定されたが、呼び出し側が \fBCAP_DAC_READ_SEARCH\fP
+ケーパビリティを持っていなかった。
 .TP 
 \fBENOTDIR\fP
 .TP 
@@ -116,6 +121,6 @@ POSIX.1\-2008.
 .SH 関連項目
 \fBlink\fP(2), \fBopenat\fP(2), \fBpath_resolution\fP(7), \fBsymlink\fP(7)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。