Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
f025e648
Commit
f025e648
authored
Feb 26, 2016
by
KATOH Yasufumi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Update Japanese lxc-attach(1)
Update the description of pty allocation. Update for commit
478dda76
. Signed-off-by:
KATOH Yasufumi
<
karma@jazz.email.ne.jp
>
parent
a71e0967
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
lxc-attach.sgml.in
doc/ja/lxc-attach.sgml.in
+10
-14
No files found.
doc/ja/lxc-attach.sgml.in
View file @
f025e648
...
@@ -94,25 +94,21 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
...
@@ -94,25 +94,21 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
<para>
<para>
<!--
<!--
Previous versions of <command>lxc-attach</command> simply attached to the
Previous versions of <command>lxc-attach</command> simply attached to the
specified namespaces of a container and ran a shell or the specified
specified namespaces of a container and ran a shell or the specified
command
command withou
t allocating a pseudo terminal. This made them vulnerable to
without firs
t allocating a pseudo terminal. This made them vulnerable to
input faking via a TIOCSTI <command>ioctl</command> call after switching
input faking via a TIOCSTI <command>ioctl</command> call after switching
between userspace execution contexts with different privilege levels. Newer
between userspace execution contexts with different privilege levels. Newer
versions of <command>lxc-attach</command> will try to allocate a pseudo
versions of <command>lxc-attach</command> will try to allocate a pseudo
terminal master/slave pair and attach any standard file descriptors which
terminal master/slave pair on the host and attach any standard file
refer to a terminal to the slave side of the pseudo terminal before
descriptors which refer to a terminal to the slave side of the pseudo
executing a shell or command. <command>lxc-attach</command> will first try
terminal before executing a shell or command. Note, that if none of the
to allocate a pseudo terminal in the container. Should this fail it will try
standard file descriptors refer to a terminal <command>lxc-attach</command>
to allocate a pseudo terminal on the host before finally giving up. Note,
will not try to allocate a pseudo terminal. Instead it will simply attach
that if none of the standard file descriptors refer to a terminal
to the containers namespaces and run a shell or the specified command.
<command>lxc-attach</command> will not try to allocate a pseudo terminal.
Instead it will simply attach to the containers namespaces and run a shell
or the specified command.
-->
-->
前のバージョンの <command>lxc-attach</command> は、単に指定したコンテナの名前空間にアタッチし、
擬似端末 (pseudo terminal) なし
で、シェルもしくは指定したコマンドを実行しました。
前のバージョンの <command>lxc-attach</command> は、単に指定したコンテナの名前空間にアタッチし、
最初に擬似端末 (pseudo terminal) を割り当てない
で、シェルもしくは指定したコマンドを実行しました。
これは、異なる特権レベルを持つユーザ空間の実行コンテキストを切り替えた後に、TIOCSTI <command>ioctl</command> の呼び出し経由で擬似入力を行うことに対して脆弱となります。
これは、異なる特権レベルを持つユーザ空間の実行コンテキストを切り替えた後に、TIOCSTI <command>ioctl</command> の呼び出し経由で擬似入力を行うことに対して脆弱となります。
新しいバージョンの <command>lxc-attach</command> は、擬似端末のマスター/スレーブのペアを割り当てようとします。そしてシェルやコマンドを実行する前に、擬似端末のスレーブ側に対して、ターミナルを参照する標準ファイルディスクリプタをアタッチします。
新しいバージョンの <command>lxc-attach</command> は、ホスト上の擬似端末のマスター/スレーブのペアを割り当てようとします。そしてシェルやコマンドを実行する前に、擬似端末のスレーブ側に対して、ターミナルを参照する標準ファイルディスクリプタをアタッチします。
<command>lxc-attach</command> は、最初にコンテナ内の擬似端末を割り当てようとします。これが失敗した場合、最終的に処理を諦める前に、ホスト上の擬似端末を割り当てようとします。
ターミナルを参照する標準ファイルディスクリプタがない場合は、<command>lxc-attach</command> は擬似端末の割り当てを行わないことに注意してください。代わりに、単にコンテナの名前空間にアタッチし、シェルや指定したコマンドを実行します。
ターミナルを参照する標準ファイルディスクリプタがない場合は、<command>lxc-attach</command> は擬似端末の割り当てを行わないことに注意してください。代わりに、単にコンテナの名前空間にアタッチし、シェルや指定したコマンドを実行します。
</para>
</para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment