OSDN Git Service

Translation snapshot of process of 3.76
[linuxjm/LDP_man-pages.git] / draft / man2 / setresuid.2
index fd35839..31cbcfa 100644 (file)
@@ -69,26 +69,21 @@ UID、保存 set\-user\-ID を任意の値に設定できる。
 .SH 返り値
 成功した場合は 0 が返される。エラーの場合は \-1 が返され、 \fIerrno\fP が適切に設定される。
 
-\fINote\fP: there are cases where \fBsetresuid\fP()  can fail even when the caller
-is UID 0; it is a grave security error to omit checking for a failure return
-from \fBsetresuid\fP().
+\fI注意\fP: 呼び出し元が UID 0 であっても \fBsetresuid\fP() が失敗する場合がある。 \fBsetresuid\fP()
+からのリターンが失敗かどうかの確認を省略することは重大なセキュリティ上のエラーとなる。
 .SH エラー
 .TP 
 \fBEAGAIN\fP
-The call would change the caller's real UID (i.e., \fIruid\fP does not match
-the caller's real UID), but there was a temporary failure allocating the
-necessary kernel data structures.
+この呼び出しで呼び出し元の実 UID が変更されるはずだったが (つまり、 \fIruid\fP が呼び出し元の実 UID と一致していない)、
+必要なカーネルのデータ構造体の割り当てで一時的な失敗があった。
 .TP 
 \fBEAGAIN\fP
-\fIruid\fP does not match the caller's real UID and this call would bring the
-number of processes belonging to the real user ID \fIruid\fP over the caller's
-\fBRLIMIT_NPROC\fP resource limit.  Since Linux 3.1, this error case no longer
-occurs (but robust applications should check for this error); see the
-description of \fBEAGAIN\fP in \fBexecve\fP(2).
+\fIruid\fP は呼び出し元の実 UID と一致しておらず、 この呼び出しで実ユーザー ID \fIruid\fP に属するプロセス数が呼び出し元の
+\fBRLIMIT_NPROC\fP リソース上限を超過するところであった。 Linux 3.1 以降では、このエラーはもはや発生することはない
+(しかし、堅牢性が求められるアプリケーションではこのエラーを確認すべきである)。 \fBexecve\fP(2) の \fBEAGAIN\fP の説明を参照。
 .TP 
 \fBEINVAL\fP
-One or more of the target user or group IDs is not valid in this user
-namespace.
+対象のユーザー ID やグループ ID のうち 1 つ以上がこのユーザー名前空間で有効ではない。
 .TP 
 \fBEPERM\fP
 呼び出したプロセスが特権を持たないのに (\fBCAP_SETUID\fP ケーパビリティを持たないのに)、 ID を許されていない値に変更しようとした。