1 .\" Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
2 .\" Written by David Howells (dhowells@redhat.com)
4 .\" %%%LICENSE_START(GPLv2+_SW_ONEPARA)
5 .\" This program is free software; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License
7 .\" as published by the Free Software Foundation; either version
8 .\" 2 of the License, or (at your option) any later version.
11 .\" FIXME Document KEYCTL_REJECT (new in 2.6.39)
12 .\" commit fdd1b94581782a2ddf9124414e5b7a5f48ce2f9c
13 .\" Author: David Howells <dhowells@redhat.com>
14 .\" Documentation/security/keys.txt
15 .\" FIXME Document KEYCTL_INSTANTIATE_IOV (new in 2.6.39)
16 .\" commit ee009e4a0d4555ed522a631bae9896399674f064
17 .\" Author: David Howells <dhowells@redhat.com>
18 .\" Documentation/security/keys.txt
19 .\" FIXME Document KEYCTL_INVALIDATE (new in 3.5)
20 .\" commit fd75815f727f157a05f4c96b5294a4617c0557da
21 .\" Author: David Howells <dhowells@redhat.com>
22 .\" Documentation/security/keys.txt
23 .\" FIXME Document KEYCTL_GET_PERSISTENT (new in 3.13)
24 .\" commit f36f8c75ae2e7d4da34f4c908cebdb4aa42c977e
25 .\" Author: David Howells <dhowells@redhat.com>
27 .\"*******************************************************************
29 .\" This file was generated with po4a. Translate the source file.
31 .\"*******************************************************************
32 .TH KEYCTL 2 2014\-01\-22 Linux "Linux Key Management Calls"
34 keyctl \- カーネルの鍵管理機能を操作する
37 \fB#include <keyutils.h>\fP
39 \fBlong keyctl(int \fP\fIcmd\fP\fB, ...);\fP
42 \fBkeyctl\fP() has a number of functions available:
44 \fBKEYCTL_GET_KEYRING_ID\fP
47 \fBKEYCTL_JOIN_SESSION_KEYRING\fP
48 Join or start named session keyring.
80 \fBKEYCTL_INSTANTIATE\fP
81 Instantiate a partially constructed key.
84 Negate a partially constructed key.
86 \fBKEYCTL_SET_REQKEY_KEYRING\fP
87 Set default request\-key keyring.
89 \fBKEYCTL_SET_TIMEOUT\fP
92 \fBKEYCTL_ASSUME_AUTHORITY\fP
93 Assume authority to instantiate key.
95 These are wrapped by \fBlibkeyutils\fP into individual functions to permit
96 compiler the compiler to check types. See the \fBSee Also\fP section at the
99 成功すると \fBkeyctl\fP() は見つかった鍵のシリアル番号を返す。 エラーの場合、 値 \-1 が返され、 \fIerrno\fP
107 鍵を作成するか、 鍵を鍵リングに結びつけると、 呼び出し元ユーザーの鍵のクォータを超過してしまう。
113 除外 (rejected) された鍵が見つかったか指定された。
119 一致する鍵が見つからなかったか、 無効な鍵が指定された。
121 これは Linux のシステムコールだが、 \fIlibc\fP には存在せず、 代わりに \fIlibkeyutils\fP に存在する。 リンクする際には、
122 リンカーに \fB\-lkeyutils\fP を指定する必要がある。
126 \fBkeyctl\fP(1), \fBadd_key\fP(2), \fBrequest_key\fP(2), \fBkeyctl_set_timeout\fP(3),
127 \fBkeyctl_chown\fP(3), \fBkeyctl_clear\fP(3), \fBkeyctl_describe\fP(3),
128 \fBkeyctl_describe_alloc\fP(3), \fBkeyctl_get_keyring_ID\fP(3),
129 \fBkeyctl_instantiate\fP(3), \fBkeyctl_join_session_keyring\fP(3),
130 \fBkeyctl_link\fP(3), \fBkeyctl_negate\fP(3), \fBkeyctl_revoke\fP(3),
131 \fBkeyctl_search\fP(3), \fBkeyctl_setperm\fP(3), \fBkeyctl_set_reqkey_keyring\fP(3),
132 \fBkeyctl_set_timeout\fP(3), \fBkeyctl_read\fP(3), \fBkeyctl_read_alloc\fP(3),
133 \fBkeyctl_unlink\fP(3), \fBkeyctl_update\fP(3), \fBrequest\-key\fP(8)
135 カーネルのソースファイル \fIDocumentation/security/keys.txt\fP
137 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.78 の一部
138 である。プロジェクトの説明とバグ報告に関する情報は
139 http://www.kernel.org/doc/man\-pages/ に書かれている。