9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] strange tls problem on 9front
@ 2024-04-27 19:17 wb.kloke
  2024-04-27 21:49 ` cinap_lenrek
  0 siblings, 1 reply; 6+ messages in thread
From: wb.kloke @ 2024-04-27 19:17 UTC (permalink / raw)
  To: 9fans

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

I am experiencing a strange problem. When I try to boot  my 9front system using a file server over tcp, I get no /net/tls.
The same kernel booting on a local hjfs filesystem has it. I think, that the files  in both systems are also he same.
I can drawterm only to the latter configuration.

Config: it is  current 386 on FreeBSD/bhyve, the file server is fossil/venti . 

I just checked, whether it happens on amd64 also: yes.

Using  tls instead of tcp transport fails with some message about no /lib/ndb/dnschallenge.ip.

What can be done?
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T59601d5abf5e8d5f-Mc893c4bbb437864d9fa8b366
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

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

* Re: [9fans] strange tls problem on 9front
  2024-04-27 19:17 [9fans] strange tls problem on 9front wb.kloke
@ 2024-04-27 21:49 ` cinap_lenrek
  2024-04-28  9:44   ` wb.kloke
  2024-04-28 15:36   ` wb.kloke
  0 siblings, 2 replies; 6+ messages in thread
From: cinap_lenrek @ 2024-04-27 21:49 UTC (permalink / raw)
  To: 9fans

i suppose the following is missing in your /lib/namespace:

bind -a #a /net

also... what?

--
cinap

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T59601d5abf5e8d5f-Mf69109feaec59f33a9616fab
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

* Re: [9fans] strange tls problem on 9front
  2024-04-27 21:49 ` cinap_lenrek
@ 2024-04-28  9:44   ` wb.kloke
  2024-04-28 15:32     ` cinap_lenrek
  2024-04-28 15:36   ` wb.kloke
  1 sibling, 1 reply; 6+ messages in thread
From: wb.kloke @ 2024-04-28  9:44 UTC (permalink / raw)
  To: 9fans

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

On Saturday, 27 April 2024, at 11:49 PM, cinap_lenrek wrote:
> i suppose the following is missing in your /lib/namespace:
> bind -a #a /net

This binding has to be very early to be effective. It is done /sys/src/9/boot/bootrc. Why does it disappear when the filesystem is not local?
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T59601d5abf5e8d5f-M3f46935c9e3eca112f2f96ac
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

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

* Re: [9fans] strange tls problem on 9front
  2024-04-28  9:44   ` wb.kloke
@ 2024-04-28 15:32     ` cinap_lenrek
  2024-04-28 15:53       ` wb.kloke
  0 siblings, 1 reply; 6+ messages in thread
From: cinap_lenrek @ 2024-04-28 15:32 UTC (permalink / raw)
  To: 9fans

> This binding has to be very early to be effective.
> It is done /sys/src/9/boot/bootrc. Why does it disappear when the filesystem is not local?

because the namespace from bootrc is not inherited.

init creates a complrely new namespace using
/lib/namespace from your root file-system:

        newns(user, 0);

--
cinap

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T59601d5abf5e8d5f-M6463fc3833c62ea8ff632793
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

* Re: [9fans] strange tls problem on 9front
  2024-04-27 21:49 ` cinap_lenrek
  2024-04-28  9:44   ` wb.kloke
@ 2024-04-28 15:36   ` wb.kloke
  1 sibling, 0 replies; 6+ messages in thread
From: wb.kloke @ 2024-04-28 15:36 UTC (permalink / raw)
  To: 9fans

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

I just inserted the line 
On Saturday, 27 April 2024, at 11:49 PM, cinap_lenrek wrote:
> bind -a #a /net

into termrc after the ip init.
Now I have /net/tls, but 

aux/listen1 'tcp!*!rcpu' /rc/bin/service/tcp17019 

still does not allow drawterm access.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T59601d5abf5e8d5f-M2b3c720a780e4ef22454108c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

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

* Re: [9fans] strange tls problem on 9front
  2024-04-28 15:32     ` cinap_lenrek
@ 2024-04-28 15:53       ` wb.kloke
  0 siblings, 0 replies; 6+ messages in thread
From: wb.kloke @ 2024-04-28 15:53 UTC (permalink / raw)
  To: 9fans

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

On Sunday, 28 April 2024, at 5:32 PM, cinap_lenrek wrote:
> because the namespace from bootrc is not inherited.

init creates a complrely new namespace using
/lib/namespace from your root file-system:

Thank you. I copied /lib/namespace to the file server. Now it works as it should.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T59601d5abf5e8d5f-Mec5dbb352229af41d9e1a905
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

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

end of thread, other threads:[~2024-04-28 15:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-27 19:17 [9fans] strange tls problem on 9front wb.kloke
2024-04-27 21:49 ` cinap_lenrek
2024-04-28  9:44   ` wb.kloke
2024-04-28 15:32     ` cinap_lenrek
2024-04-28 15:53       ` wb.kloke
2024-04-28 15:36   ` wb.kloke

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).