OSDN Git Service

(split) LDP: Update release pages based on LDP 3.54 release
[linuxjm/LDP_man-pages.git] / release / man2 / execve.2
index 2f5b673..6c6becb 100644 (file)
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
+.\"
+.\" Japanese Version Copyright (c) 1996 TABATA Tomohira
+.\"         all rights reserved.
+.\" Translated 1996-07-04, TABATA Tomohira <loba@k2.t.u-tokyo.ac.jp>
+.\" Updated 1997-12-14, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
+.\" Updated 2001-08-17, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
+.\" Updated 2005-02-05, Yuichi SATO <ysato444@yahoo.co.jp>
+.\" Updated 2005-09-06, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" Updated 2005-11-19, Akihiro MOTOKI
+.\" Updated 2006-08-13, Akihiro MOTOKI, LDP v2.39
+.\" Updated 2007-01-09, Akihiro MOTOKI, LDP v2.43
+.\" Updated 2007-06-03, Akihiro MOTOKI, LDP v2.51
+.\" Updated 2007-10-12, Akihiro MOTOKI, LDP v2.66
+.\" Updated 2008-04-04, Akihiro MOTOKI, LDP v2.79
+.\" Updated 2008-11-05, Akihiro MOTOKI, LDP v3.12
+.\" Updated 2012-05-29, Akihiro MOTOKI <amotoki@gmail.com>
+.\" Updated 2013-03-22, Akihiro MOTOKI, LDP v3.50
+.\" Updated 2013-07-22, Akihiro MOTOKI, LDP v3.52
+.\"
 .TH EXECVE 2 2013\-07\-04 Linux "Linux Programmer's Manual"
 .SH 名前
 execve \- プログラムを実行する
@@ -80,11 +99,13 @@ int main(int argc, char *argv[], char *envp[])
 
 元のプログラムが ptrace されている場合、 \fBexecve\fP()  が成功した後に そのプログラムに \fBSIGTRAP\fP が送られる。
 
-\fIfilename\fP で指定されたプログラムファイルに set\-user\-ID ビットが設定されており、 ファイルが存在するファイルシステムが
-\fInosuid\fP (\fBmount\fP(2)  の \fBMS_NOSUID\fP フラグ) でマウントされておらず、 呼び出したプロセスが ptrace
-されていない場合、 呼び出したプロセスの実効 (effective) ユーザ ID は プログラムファイルの所有者 (owner) に変更される。
-同様に、プログラムファイルに set\-group\-ID ビットが設定されていた場合、 呼び出したプロセスの有効グループ ID は
-プログラムファイルのグループに変更される。
+If the set\-user\-ID bit is set on the program file pointed to by \fIfilename\fP,
+and the underlying filesystem is not mounted \fInosuid\fP (the \fBMS_NOSUID\fP
+flag for \fBmount\fP(2)), and the calling process is not being ptraced, then
+the effective user ID of the calling process is changed to that of the owner
+of the program file.  Similarly, when the set\-group\-ID bit of the program
+file is set the effective group ID of the calling process is set to the
+group of the program file.
 
 プロセスの実効ユーザ ID は保存 (saved) set\-user\-ID にコピーされる。 同様に、実効グループ ID は保存
 set\-group\-ID にコピーされる。 このコピーは、set\-user\-ID / set\-group\-ID 許可ビットにより発生する 実効 ID
@@ -237,7 +258,7 @@ POSIX.1\-2001 は、動作が無視かデフォルトに設定されている全
 ファイルやスクリプトや ELF インタプリタに 実行許可 (execute permission) が与えられていない。
 .TP 
 \fBEACCES\fP
-ファイル・システムが \fInoexec\fP でマウントされている。
+The filesystem is mounted \fInoexec\fP.
 .TP 
 \fBEFAULT\fP
 \fIfilename\fP がアクセス可能なアドレス空間の外を指している。
@@ -279,8 +300,8 @@ ELF インタプリタが理解できるフォーマットでなかった。
 \fIfilename\fP やスクリプトや ELF のインタプリタの構成要素がディレクトリでない。
 .TP 
 \fBEPERM\fP
-ファイル・システムが \fInosuid\fP でマウントされ、ユーザがスーパーユーザでなく、 ファイルに set\-user\-ID あるいは
-set\-group\-ID ビットが設定されている。
+The filesystem is mounted \fInosuid\fP, the user is not the superuser, and the
+file has the set\-user\-ID or set\-group\-ID bit set.
 .TP 
 \fBEPERM\fP
 プロセスがトレースされ、ユーザがスーパーユーザでなく、 ファイルに set\-user\-ID あるいは set\-group\-ID ビットが設定されている。
@@ -298,10 +319,11 @@ set\-user\-id プロセスと set\-group\-ID プロセスは \fBptrace\fP(2)  
 
 Linux はスクリプトの set\-user\-ID と set\-group\-ID ビットを無視する。
 
-ファイルシステムを \fInosuid\fP でマウントした場合に set\-user\-ID/set\-group\-ID の実行ファイルを
-どの様に扱うかは、Linux カーネルのバージョンによって異なる: あるバージョンでは、すでに必要な権限を持っている場合を除いて、 その実行を拒否する
-(そして \fBEPERM\fP を返す)。別のあるバージョンでは set\-user\-ID/set\-group\-ID ビットのみを無視し \fBexec\fP()
-は成功する。
+The result of mounting a filesystem \fInosuid\fP varies across Linux kernel
+versions: some will refuse execution of set\-user\-ID and set\-group\-ID
+executables when this would give the user powers she did not have already
+(and return \fBEPERM\fP), some will just ignore the set\-user\-ID and
+set\-group\-ID bits and \fBexec\fP()  successfully.
 
 #! 実行形式のシェル・スクリプトの 1行目に許されている文字数は、 最大 127 文字である。
 
@@ -432,6 +454,6 @@ argv[4]: world
 \fBgetopt\fP(3), \fBcredentials\fP(7), \fBenviron\fP(7), \fBpath_resolution\fP(7),
 \fBld.so\fP(8)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。