Documentation_namespaces_compatibility-list

来源:互联网 发布:php字符串函数 编辑:程序博客网 时间:2024/06/08 00:59
Chinese translated version of Documentation_namespaces_compatibility-list


If you have any comment or update to the content, please contact the
original document maintainer directly.  However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help.  Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.


Chinese maintainer: 774945605@qq.com
---------------------------------------------------------------------
Documentation_namespaces_compatibility-list 的中文翻译


如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。


中文版维护者: 潘丽卡  774945605@qq.com
中文版翻译者: 潘丽卡  774945605@qq.com
中文版校译者: 黄佳露  799942107@qq.com








以下为正文
---------------------------------------------------------------------


Namespaces compatibility list

命名空间的兼容性列表


This document contains the information about the problems user
may have when creating tasks living in different namespaces.


本文档包含有关该用户当在不同的命名空间创建任务时可能遇到问题时的信息




Here's the summary. This matrix shows the known problems, that
occur when tasks share some namespace (the columns) while living
in different other namespaces (the rows):


下面是总结。此矩阵显示中的已知问题,即
任务共享时发生的一些命名空间(列),而存在
在其他不同的命名空间(行):


UTS IPCVFS PIDUser Net
UTS X
IPC X 1
VFS X
PID 1 1X
User 2 2 X
Net X


+


1. Both the IPC and the PID namespaces provide IDs to address
   object inside the kernel. E.g. semaphore with IPCID or
   process group with pid.
   
IPC和PID命名空间提供ID来解决
里面的内核对象。例如信号IPCID或进程组与PID。




   In both cases, tasks shouldn't try exposing this ID to some
   other task living in a different namespace via a shared filesystem
   or IPC shmem/message. The fact is that this ID is only valid
   within the namespace it was obtained in and may refer to some
   other object in another namespace.
   
在这两种情况下,任务不应该尝试一些曝光这个ID
其他工作生活在不同的命名空间通过一个共享的文件系统
或的IPC SHMEM /消息。事实是,这个ID是唯一有效的
命名空间内的被中得到的,可参考一些
另一个命名空间中的其他对象。




2. Intentionally, two equal user IDs in different user namespaces
   should not be equal from the VFS point of view. In other
   words, user 10 in one user namespace shouldn't have the same
   access permissions to files, belonging to user 10 in another
   namespace.
   
特意的,两个相等的用户ID,方便用户在不同的命名空间
从VFS的角度来看不应该是平等的。换种说法也就是
,一个用户的命名空间中的用户10不应该具有相同的
访问权限的文件,属于在另一个用户10
的命名空间。




   The same is true for the IPC namespaces being shared - two users
   from different user namespaces should not access the same IPC objects
   even having equal UIDs.
   
同样是真实的被共享的IPC命名空间 - 两个用户
从不同用户的命名空间+不应该访问相同的IPC对象
甚至有平等的UID。




   But currently this is not so.
   
   但目前却不是这样。

原创粉丝点击