9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] namec() dislikes #M - why?
@ 2011-10-04 13:34 Steve Simon
  2011-10-04 13:43 ` Russ Cox
  2011-10-04 13:54 ` Charles Forsyth
  0 siblings, 2 replies; 5+ messages in thread
From: Steve Simon @ 2011-10-04 13:34 UTC (permalink / raw)
  To: 9fans

Why can I not re-bind #M?

	/sys/src/9/port/chan.c:1374

I want to use auth/newns to flush out my namespace
then build a new one including some bits of devcons.

Is this a security issue for cpu servers? I cannot see
what it is protecting me from.

Also, why is this done here and not in fsattach() of devcons
(with a refcount)?

-Steve




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] namec() dislikes #M - why?
  2011-10-04 13:34 [9fans] namec() dislikes #M - why? Steve Simon
@ 2011-10-04 13:43 ` Russ Cox
  2011-10-04 13:54 ` Charles Forsyth
  1 sibling, 0 replies; 5+ messages in thread
From: Russ Cox @ 2011-10-04 13:43 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

#M is not a nameable device.
It is a pseudo-device representing mounted connections.
Instead of writing

    bind -b #M123 /dev

You are supposed to write

    mount -b /srv/whatever /dev

My memory is that the name space files use
the latter form unless the original name is gone.

Russ


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] namec() dislikes #M - why?
  2011-10-04 13:34 [9fans] namec() dislikes #M - why? Steve Simon
  2011-10-04 13:43 ` Russ Cox
@ 2011-10-04 13:54 ` Charles Forsyth
  2011-10-04 19:59   ` Yaroslav
  1 sibling, 1 reply; 5+ messages in thread
From: Charles Forsyth @ 2011-10-04 13:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

#M, but devcons? devcons is #c

On 4 October 2011 14:34, Steve Simon <steve@quintile.net> wrote:

> then build a new one including some bits of devcons.

 ...
>
> Also, why is this done here and not in fsattach() of devcons
> (with a refcount)?

[-- Attachment #2: Type: text/html, Size: 973 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] namec() dislikes #M - why?
  2011-10-04 13:54 ` Charles Forsyth
@ 2011-10-04 19:59   ` Yaroslav
  2011-10-06 21:06     ` Steve Simon
  0 siblings, 1 reply; 5+ messages in thread
From: Yaroslav @ 2011-10-04 19:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Perhaps, Steve wants rio-simulated /dev/cons.
Steve, doesn't mount -b $wsys /dev in the new ns do the trick?

2011/10/4 Charles Forsyth <charles.forsyth@gmail.com>:
> #M, but devcons? devcons is #c
>
> On 4 October 2011 14:34, Steve Simon <steve@quintile.net> wrote:
>>
>> then build a new one including some bits of devcons.
>
>  ...
>>
>> Also, why is this done here and not in fsattach() of devcons
>> (with a refcount)?



-- 
- Yaroslav



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] namec() dislikes #M - why?
  2011-10-04 19:59   ` Yaroslav
@ 2011-10-06 21:06     ` Steve Simon
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Simon @ 2011-10-06 21:06 UTC (permalink / raw)
  To: 9fans

Sorry for the noise, I was tired.

thans to all who replied.

-Steve



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-06 21:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-04 13:34 [9fans] namec() dislikes #M - why? Steve Simon
2011-10-04 13:43 ` Russ Cox
2011-10-04 13:54 ` Charles Forsyth
2011-10-04 19:59   ` Yaroslav
2011-10-06 21:06     ` Steve Simon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).