LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1068|回复: 9

NAMESPACE到底是什么东西?

[复制链接]
发表于 2010-4-11 11:35:15 | 显示全部楼层 |阅读模式
在内核里禁用了它,好像也没有什么妨碍;包括在file system里面,有个inotify for namespace,禁用了也没什么。
但看关于它的描述,又好像很重要的样子。
对于普通的个人桌面来说,它有没有用呢?
 楼主| 发表于 2010-4-17 11:58:37 | 显示全部楼层
没有人解答吗?
回复 支持 反对

使用道具 举报

发表于 2010-4-17 14:43:04 | 显示全部楼层
Inotify support for userspace

If unsure, say Y.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-4-17 17:49:08 | 显示全部楼层
这个我是领教了,升级udev之后,启动不了,我就编上了这个选项,但是在general下面,那个namespace是做什么的呢?
回复 支持 反对

使用道具 举报

发表于 2010-4-17 19:10:59 | 显示全部楼层
Post by kwindva;2083503
这个我是领教了,升级udev之后,启动不了,我就编上了这个选项,但是在general下面,那个namespace是做什么的呢?


你把内核里面的文档贴出来。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-4-17 19:24:46 | 显示全部楼层
CONFIG_NAMESPACES:                                                                                                                                     │   
  │                                                                                                                                                        │   
  │ Provides the way to make tasks work with different objects using                                                                                       │   
  │ the same id. For example same IPC id may refer to different objects                                                                                    │   
  │ or same user id or pid may refer to different tasks when used in                                                                                       │   
  │ different namespaces.                                                                                                                                  │   
  │                                                                                                                                                        │   
  │ Symbol: NAMESPACES [=n]                                                                                                                                │   
  │ Prompt: Namespaces support                                                                                                                             │   
  │   Defined at init/Kconfig:823                                                                                                                          │   
  │   Depends on: EMBEDDED [=y]                                                                                                                            │   
  │   Location:                                                                                                                                            │   
  │     -> General setup
回复 支持 反对

使用道具 举报

发表于 2010-4-17 19:31:49 | 显示全部楼层
有些东西比较新鲜, 试验性的。不用无大碍。

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        IPC        VFS        PID        User        Net
UTS         X
IPC                 X         1
VFS                         X
PID                 1         1         X
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.

   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.

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.

   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.

   But currently this is not so.
回复 支持 反对

使用道具 举报

发表于 2010-4-17 21:51:09 | 显示全部楼层
Post by kwindva;2083517
CONFIG_NAMESPACES:                                                                                                                                     │   
  │                                                                                                                                                        │   
  │ Provides the way to make tasks work with different objects using                                                                                       │   
  │ the same id. For example same IPC id may refer to different objects                                                                                    │   
  │ or same user id or pid may refer to different tasks when used in                                                                                       │   
  │ different namespaces.                                                                                                                                  │   
  │                                                                                                                                                        │   
  │ Symbol: NAMESPACES [=n]                                                                                                                                │   
  │ Prompt: Namespaces support                                                                                                                             │   
  │   Defined at init/Kconfig:823                                                                                                                          │   
  │   Depends on: EMBEDDED [=y]                                                                                                                            │   
  │   Location:                                                                                                                                            │   
  │     -> General setup


我大致明白点,不过说不太好。
回复 支持 反对

使用道具 举报

发表于 2010-6-6 19:26:55 | 显示全部楼层
Post by freeobject;2083518
有些东西比较新鲜, 试验性的。不用无大碍。

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        IPC        VFS        PID        User        Net
UTS         X
IPC                 X         1
VFS                         X
PID                 1         1         X
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.

   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.

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.

   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.

   But currently this is not so.


大哥,这个文档在哪里呀。有全介绍配置内核每一个选项的文档吗
回复 支持 反对

使用道具 举报

发表于 2010-6-6 23:02:34 | 显示全部楼层
不好意思。google的,忘了在哪里?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表