X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=draft%2Fman2%2Flinkat.2;h=0760e2c6345435131ae4814a4393cd0083e07ba0;hb=d77737c3193ebe4f605a11562c82630c0c489a16;hp=8a7447ac05c54b6a2375cdb1efa47b84413ca148;hpb=40274b7d79d419993de4a745e3ae86ca6d0f417f;p=linuxjm%2FLDP_man-pages.git diff --git a/draft/man2/linkat.2 b/draft/man2/linkat.2 index 8a7447ac..0760e2c6 100644 --- a/draft/man2/linkat.2 +++ b/draft/man2/linkat.2 @@ -31,6 +31,7 @@ .\" Japanese Version Copyright (c) 2006 Yuichi SATO .\" all rights reserved. .\" Translated 2006-09-30 by Yuichi SATO , LDP v2.39 +.\" Updated 2013-08-21, Akihiro MOTOKI , LDP v3.53 .\" .TH LINKAT 2 2013\-07\-21 Linux "Linux Programmer's Manual" .SH 名前 @@ -80,13 +81,12 @@ _ATFILE_SOURCE .TP \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() は @@ -103,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