OSDN Git Service

Release new translated pages
authorAkihiro MOTOKI <amotoki@gmail.com>
Wed, 4 Feb 2015 15:43:20 +0000 (00:43 +0900)
committerAkihiro MOTOKI <amotoki@gmail.com>
Wed, 4 Feb 2015 15:43:20 +0000 (00:43 +0900)
add_key.2
keyctl.2
request_key.2
cpuid.4

release/man2/add_key.2 [new file with mode: 0644]
release/man2/keyctl.2 [new file with mode: 0644]
release/man2/request_key.2 [new file with mode: 0644]
release/man4/cpuid.4 [new file with mode: 0644]

diff --git a/release/man2/add_key.2 b/release/man2/add_key.2
new file mode 100644 (file)
index 0000000..17a6890
--- /dev/null
@@ -0,0 +1,98 @@
+.\" Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
+.\" Written by David Howells (dhowells@redhat.com)
+.\"
+.\" %%%LICENSE_START(GPLv2+_SW_ONEPARA)
+.\" This program is free software; you can redistribute it and/or
+.\" modify it under the terms of the GNU General Public License
+.\" as published by the Free Software Foundation; either version
+.\" 2 of the License, or (at your option) any later version.
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH ADD_KEY 2 2010\-02\-25 Linux "Linux Key Management Calls"
+.SH 名前
+add_key \- カーネルの鍵管理機能に鍵を追加する
+.SH 書式
+.nf
+\fB#include <keyutils.h>\fP
+.sp
+\fBkey_serial_t add_key(const char *\fP\fItype\fP\fB, const char *\fP\fIdescription\fP\fB,\fP
+\fB                     const void *\fP\fIpayload\fP\fB, size_t \fP\fIplen\fP\fB,\fP
+\fB                     key_serial_t \fP\fIkeyring\fP\fB);\fP
+.fi
+.SH 説明
+\fBadd_key\fP() は、 指定した \fItype\fP と \fIdescription\fP を持つ鍵の作成、更新を行うようにカーネルに指示し、 長さ
+\fIplen\fP の \fIpayload\fP で鍵を生成し、 指定された \fIkeyring\fP にその鍵を追加し、 鍵リングのシリアル番号を返す。
+.P
+鍵タイプによっては、 フォーマットが違っていたり、その他にも無効なものがあると、 指定したデータが拒否される場合もある。
+.P
+対象の \fIkeyring\fP に指定された \fItype\fP と \fIdescription\fP に合致する鍵がすでに含まれる場合、
+鍵タイプがサポートしていれば、 新しい鍵が作成されるのではなく、 その鍵が更新される。 鍵タイプがサポートしていない場合、 新しい鍵が作成され、
+鍵リングの現在の鍵のリンクはこの鍵で置き換えられる。
+.P
+対象の \fIkeyring\fP のシリアル番号には、 呼び出し元が書き込み許可を持つ有効な鍵リングのシリアル番号か、 以下の特別な鍵リング ID
+を指定する。
+.TP 
+\fBKEY_SPEC_THREAD_KEYRING\fP
+この値は呼び出し元スレッド固有の鍵リングを指定する。
+.TP 
+\fBKEY_SPEC_PROCESS_KEYRING\fP
+この値は呼び出し元プロセス固有の鍵リングを指定する。
+.TP 
+\fBKEY_SPEC_SESSION_KEYRING\fP
+この値は呼び出し元セッション固有の鍵リングを指定する。
+.TP 
+\fBKEY_SPEC_USER_KEYRING\fP
+この値は呼び出し元の UID 固有の鍵リングを指定する。
+.TP 
+\fBKEY_SPEC_USER_SESSION_KEYRING\fP
+この値は呼び出し元の UID のセッションの鍵リングを指定する。
+.SH 鍵タイプ
+コアの鍵管理コードには様々な鍵タイプがあり、 この関数でこれらを指定することができる。
+.TP 
+\fB\*(lquser\*(rq\fP
+ユーザー定義の鍵タイプの鍵には、 任意のデータの blob を入れることができ、 \fIdescription\fP には任意の有効な文字列を指定できるが、
+鍵が対象とするサービスを表す文字列とコロンをプレフィックスに指定するのが推奨される方法である (例えば \*(lq\fBafs:mykey\fP\*(rq)。
+このタイプの鍵には \fIpayload\fP に空文字列つまり NULL を指定する。
+.TP 
+\fB\*(lqkeyring\*(rq\fP
+鍵リングは、 任意のタイプの他の鍵の列へのリンクを保持できる特別な鍵タイプである。 このインターフェースを使って鍵リングを作成する場合、
+\fIpayload\fP には NULL を、 \fIplen\fP には 0 を指定しなければならない。
+.SH 返り値
+成功すると \fBadd_key\fP() は、作成または更新した鍵のシリアル番号を返す。 エラーの場合、値 \-1 が返され \fIerrno\fP
+にエラーを示す値が設定される。
+.SH エラー
+.TP 
+\fBENOKEY\fP
+鍵リングが存在しない。
+.TP 
+\fBEKEYEXPIRED\fP
+鍵リングが期限切れである。
+.TP 
+\fBEKEYREVOKED\fP
+鍵リングが廃止されている。
+.TP 
+\fBEINVAL\fP
+ペイロードデータが無効である。
+.TP 
+\fBENOMEM\fP
+鍵を作成するのに十分なメモリーがない。
+.TP 
+\fBEDQUOT\fP
+この鍵を作成するか、鍵を鍵リングに追加すると、 このユーザーの鍵リングのクォータを超過してしまう。
+.TP 
+\fBEACCES\fP
+そのユーザーは指定された鍵リングを変更できない。
+.SH LINKING
+これは Linux のシステムコールだが、 \fIlibc\fP には存在せず、 代わりに \fIlibkeyutils\fP に存在する。 リンクする際には、
+リンカーに \fB\-lkeyutils\fP を指定する必要がある。
+.SH 関連項目
+\fBkeyctl\fP(1), \fBkeyctl\fP(2), \fBrequest_key\fP(2)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。
diff --git a/release/man2/keyctl.2 b/release/man2/keyctl.2
new file mode 100644 (file)
index 0000000..c142c55
--- /dev/null
@@ -0,0 +1,139 @@
+.\" Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
+.\" Written by David Howells (dhowells@redhat.com)
+.\"
+.\" %%%LICENSE_START(GPLv2+_SW_ONEPARA)
+.\" This program is free software; you can redistribute it and/or
+.\" modify it under the terms of the GNU General Public License
+.\" as published by the Free Software Foundation; either version
+.\" 2 of the License, or (at your option) any later version.
+.\" %%%LICENSE_END
+.\"
+.\" FIXME Document KEYCTL_REJECT (new in 2.6.39)
+.\"            commit fdd1b94581782a2ddf9124414e5b7a5f48ce2f9c
+.\"            Author: David Howells <dhowells@redhat.com>
+.\"            Documentation/security/keys.txt
+.\" FIXME Document KEYCTL_INSTANTIATE_IOV (new in 2.6.39)
+.\"            commit ee009e4a0d4555ed522a631bae9896399674f064
+.\"            Author: David Howells <dhowells@redhat.com>
+.\"            Documentation/security/keys.txt
+.\" FIXME Document KEYCTL_INVALIDATE (new in 3.5)
+.\"            commit fd75815f727f157a05f4c96b5294a4617c0557da
+.\"            Author: David Howells <dhowells@redhat.com>
+.\"            Documentation/security/keys.txt
+.\" FIXME Document KEYCTL_GET_PERSISTENT (new in 3.13)
+.\"            commit f36f8c75ae2e7d4da34f4c908cebdb4aa42c977e
+.\"            Author: David Howells <dhowells@redhat.com>
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH KEYCTL 2 2014\-01\-22 Linux "Linux Key Management Calls"
+.SH 名前
+keyctl \- カーネルの鍵管理機能を操作する
+.SH 書式
+.nf
+\fB#include <keyutils.h>\fP
+.sp
+\fBlong keyctl(int \fP\fIcmd\fP\fB, ...);\fP
+.fi
+.SH 説明
+\fBkeyctl\fP()  has a number of functions available:
+.TP 
+\fBKEYCTL_GET_KEYRING_ID\fP
+鍵リングの ID を取得する。
+.TP 
+\fBKEYCTL_JOIN_SESSION_KEYRING\fP
+Join or start named session keyring.
+.TP 
+\fBKEYCTL_UPDATE\fP
+鍵を更新する。
+.TP 
+\fBKEYCTL_REVOKE\fP
+鍵を廃止する。
+.TP 
+\fBKEYCTL_CHOWN\fP
+鍵の所有者を設定する。
+.TP 
+\fBKEYCTL_SETPERM\fP
+鍵のアクセス許可を設定する。
+.TP 
+\fBKEYCTL_DESCRIBE\fP
+Describe a key.
+.TP 
+\fBKEYCTL_CLEAR\fP
+鍵リングの内容をクリアする。
+.TP 
+\fBKEYCTL_LINK\fP
+鍵を鍵リングに結びつける。
+.TP 
+\fBKEYCTL_UNLINK\fP
+鍵の鍵リングへの結びつけを取り消す。
+.TP 
+\fBKEYCTL_SEARCH\fP
+鍵リングから鍵を検索する。
+.TP 
+\fBKEYCTL_READ\fP
+鍵や鍵リングの内容を読み出す。
+.TP 
+\fBKEYCTL_INSTANTIATE\fP
+Instantiate a partially constructed key.
+.TP 
+\fBKEYCTL_NEGATE\fP
+Negate a partially constructed key.
+.TP 
+\fBKEYCTL_SET_REQKEY_KEYRING\fP
+Set default request\-key keyring.
+.TP 
+\fBKEYCTL_SET_TIMEOUT\fP
+鍵にタイムアウトを設定する。
+.TP 
+\fBKEYCTL_ASSUME_AUTHORITY\fP
+Assume authority to instantiate key.
+.P
+These are wrapped by \fBlibkeyutils\fP into individual functions to permit
+compiler the compiler to check types.  See the \fBSee Also\fP section at the
+bottom.
+.SH 返り値
+成功すると \fBkeyctl\fP() は見つかった鍵のシリアル番号を返す。 エラーの場合、 値 \-1 が返され、 \fIerrno\fP
+にエラーを示す値が設定される。
+.SH エラー
+.TP 
+\fBEACCES\fP
+鍵の操作が許可されていなかった。
+.TP 
+\fBEDQUOT\fP
+鍵を作成するか、 鍵を鍵リングに結びつけると、 呼び出し元ユーザーの鍵のクォータを超過してしまう。
+.TP 
+\fBEKEYEXPIRED\fP
+期限切れの鍵が見つかったか指定された。
+.TP 
+\fBEKEYREJECTED\fP
+除外 (rejected) された鍵が見つかったか指定された。
+.TP 
+\fBEKEYREVOKED\fP
+廃止された鍵が見つかったか指定された。
+.TP 
+\fBENOKEY\fP
+一致する鍵が見つからなかったか、 無効な鍵が指定された。
+.SH LINKING
+これは Linux のシステムコールだが、 \fIlibc\fP には存在せず、 代わりに \fIlibkeyutils\fP に存在する。 リンクする際には、
+リンカーに \fB\-lkeyutils\fP を指定する必要がある。
+.SH 関連項目
+.ad l
+.nh
+\fBkeyctl\fP(1), \fBadd_key\fP(2), \fBrequest_key\fP(2), \fBkeyctl_set_timeout\fP(3),
+\fBkeyctl_chown\fP(3), \fBkeyctl_clear\fP(3), \fBkeyctl_describe\fP(3),
+\fBkeyctl_describe_alloc\fP(3), \fBkeyctl_get_keyring_ID\fP(3),
+\fBkeyctl_instantiate\fP(3), \fBkeyctl_join_session_keyring\fP(3),
+\fBkeyctl_link\fP(3), \fBkeyctl_negate\fP(3), \fBkeyctl_revoke\fP(3),
+\fBkeyctl_search\fP(3), \fBkeyctl_setperm\fP(3), \fBkeyctl_set_reqkey_keyring\fP(3),
+\fBkeyctl_set_timeout\fP(3), \fBkeyctl_read\fP(3), \fBkeyctl_read_alloc\fP(3),
+\fBkeyctl_unlink\fP(3), \fBkeyctl_update\fP(3), \fBrequest\-key\fP(8)
+
+カーネルのソースファイル \fIDocumentation/security/keys.txt\fP
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。
diff --git a/release/man2/request_key.2 b/release/man2/request_key.2
new file mode 100644 (file)
index 0000000..3d391ea
--- /dev/null
@@ -0,0 +1,112 @@
+.\" Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
+.\" Written by David Howells (dhowells@redhat.com)
+.\"
+.\" %%%LICENSE_START(GPLv2+_SW_ONEPARA)
+.\" This program is free software; you can redistribute it and/or
+.\" modify it under the terms of the GNU General Public License
+.\" as published by the Free Software Foundation; either version
+.\" 2 of the License, or (at your option) any later version.
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH REQUEST_KEY 2 2010\-02\-25 Linux "Linux Key Management Calls"
+.SH 名前
+request_key \- カーネルの鍵管理機能から鍵を取得する
+.SH 書式
+.nf
+\fB#include <keyutils.h>\fP
+.sp
+\fBkey_serial_t request_key(const char *\fP\fItype\fP\fB, const char *\fP\fIdescription\fP\fB,\fP
+\fB                         const char *\fP\fIcallout_info\fP\fB,\fP
+\fB                         key_serial_t \fP\fIkeyring\fP\fB);\fP
+.fi
+.SH 説明
+\fBrequest_key\fP()  asks the kernel to find a key of the given \fItype\fP that
+matches the specified \fIdescription\fP and, if successful, to attach it to the
+nominated \fIkeyring\fP and to return its serial number.
+.P
+\fBrequest_key\fP()  first recursively searches all the keyrings attached to
+the calling process in the order thread\-specific keyring, process\-specific
+keyring and then session keyring for a matching key.
+.P
+If \fBrequest_key\fP()  is called from a program invoked by \fBrequest_key\fP()
+on behalf of some other process to generate a key, then the keyrings of that
+other process will be searched next, using that other process's UID, GID,
+groups, and security context to control access.
+.P
+The keys in each keyring searched are checked for a match before any child
+keyrings are recursed into.  Only keys that are \fBsearchable\fP for the caller
+may be found, and only \fBsearchable\fP keyrings may be searched.
+.P
+If the key is not found, then, if \fIcallout_info\fP is set, this function will
+attempt to look further afield.  In such a case, the \fIcallout_info\fP is
+passed to a user\-space service such as \fB/sbin/request\-key\fP to generate the
+key.
+.P
+If that is unsuccessful also, then an error will be returned, and a
+temporary negative key will be installed in the nominated \fIkeyring\fP.  This
+will expire after a few seconds, but will cause subsequent calls to
+\fBrequest_key\fP()  to fail until it does.
+.P
+The \fIkeyring\fP serial number may be that of a valid keyring to which the
+caller has write permission, or it may be a special keyring ID:
+.TP 
+\fBKEY_SPEC_THREAD_KEYRING\fP
+この値は呼び出し元スレッド固有の鍵リングを指定する。
+.TP 
+\fBKEY_SPEC_PROCESS_KEYRING\fP
+この値は呼び出し元プロセス固有の鍵リングを指定する。
+.TP 
+\fBKEY_SPEC_SESSION_KEYRING\fP
+この値は呼び出し元セッション固有の鍵リングを指定する。
+.TP 
+\fBKEY_SPEC_USER_KEYRING\fP
+この値は呼び出し元の UID 固有の鍵リングを指定する。
+.TP 
+\fBKEY_SPEC_USER_SESSION_KEYRING\fP
+この値は呼び出し元の UID のセッションの鍵リングを指定する。
+.P
+If a key is created, no matter whether it's a valid key or a negative key,
+it will displace any other key of the same type and description from the
+destination \fIkeyring\fP.
+.SH 返り値
+成功すると \fBrequest_key\fP() は見つかった鍵のシリアル番号を返す。 エラーの場合、 値 \-1 が返され、 \fIerrno\fP
+にエラーを示す値が設定される。
+.SH エラー
+.TP 
+\fBEACCES\fP
+そのユーザーは指定された鍵リングを変更できない。
+.TP 
+\fBEINTR\fP
+要求がシングルで中断された。
+.TP 
+\fBEDQUOT\fP
+この鍵を作成するか、鍵を鍵リングに追加すると、 このユーザーの鍵リングのクォータを超過してしまう。
+.TP 
+\fBEKEYEXPIRED\fP
+期限切れの鍵が見つかったが、 新しい代わりの鍵が取得できなかった。
+.TP 
+\fBEKEYREJECTED\fP
+新しい鍵の生成が拒否された。
+.TP 
+\fBEKEYREVOKED\fP
+廃止された鍵が見つかったが、 新しい代わりの鍵が取得できなかった。
+.TP 
+\fBENOMEM\fP
+鍵を作成するのに十分なメモリーがない。
+.TP 
+\fBENOKEY\fP
+合致する鍵が見つからなかった。
+.SH LINKING
+これは Linux のシステムコールだが、 \fIlibc\fP には存在せず、 代わりに \fIlibkeyutils\fP に存在する。 リンクする際には、
+リンカーに \fB\-lkeyutils\fP を指定する必要がある。
+.SH 関連項目
+\fBkeyctl\fP(1), \fBadd_key\fP(2), \fBkeyctl\fP(2), \fBrequest\-key\fP(8)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。
diff --git a/release/man4/cpuid.4 b/release/man4/cpuid.4
new file mode 100644 (file)
index 0000000..b9889a2
--- /dev/null
@@ -0,0 +1,71 @@
+.\" Copyright (c) 2009 Intel Corporation, Author Andi Kleen
+.\" Description based on comments in arch/x86/kernel/cpuid.c
+.\"
+.\" %%%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
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH CPUID 4 2009\-03\-31 Linux "Linux Programmer's Manual"
+.SH 名前
+cpuid \- x86 CPUID アクセスデバイス
+.SH 説明
+CPUID は x86 CPU に関する情報を問い合わせるためのインターフェースを提供する。
+
+このデバイスには \fBlseek\fP(2) と \fBpread\fP(2) を使って、 適切な CPUID レベルにアクセスし、 16
+バイトのデータを読み出す。 もっと大きな読み出しサイズを指定すると、 連続する複数のレベルが読み出される。
+
+ファイル位置の下位 32 ビットは次の \fI%eax\fP として使用され、 ファイル位置の上位 32 ビットは次の \fI%ecx\fP として使用される。
+後者は、 \fIeax=4\fP のように \fIeax\fP レベルを数えるのを意図したものである。
+
+このドライバーは \fI/dev/cpu/CPUNUM/cpuid\fP を使用する。 なお \fICPUNUM\fP はマイナー番号である。 SMP マシンでは、
+このドライバーは \fI/proc/cpuinfo\fP に載っている CPU \fICPUNUM\fP にアクセスする。
+
+このファイルは、 ユーザー \fIroot\fP またはグループ \fIroot\fP だけが読み出しできるように保護されている。
+.SH 注意
+CPUID 命令はインラインアセンブラーを使ってプログラムで直接実行できる。 しかし、 このデバイスを使うことで、 プロセスの affinity
+を変更せずにすべての CPU に便利にアクセスできる。
+
+\fIcpuid\fP の情報のほとんどは、 \fI/proc/cpuinfo\fP か、 \fI/sys/devices/system/cpu\fP
+のサブディレクトリ経由で読みやすい形で参照できる。 このデバイス経由で直接 CPUID にアクセスするのは例外的な場合にだけにすべきである。
+
+\fIcpuid\fP ドライバーは自動ではロードされない。 モジュールに対応したカーネルでは、
+使用する前に以下のコマンドを使って明示的にロードする必要がある。
+
+     $ \fImodprobe cpuid\fP
+
+追加の入力レジスターが必要な CPUID 機能はサポートされていない。
+
+非常に古い x86 CPU では CPUID はサポートされていない。
+.SH 関連項目
+Intel Corporation, Intel 64 and IA\-32 Architectures Software Developer's
+Manual Volume 2A: Instruction Set Reference, A\-M, 3\-180 CPUID reference.
+
+Intel Corporation, Intel Processor Identification and the CPUID Instruction,
+Application note 485.
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。