plan9fox/sys/man
cinap_lenrek 27ad886c95 ip/tftpd: add -n namespace-file flag (thanks sam-d)
tftpd currently unconditionally sets its namespace via /lib/namespace
(newns("none", nil)), which stymied my attempts to pxe boot the
openbsd installer without creating a real /etc dir on 9front, which
would've been gross.

I tried working around this with -h (and -r for good measure), but
again hit issues because the namespace is rebuilt from scratch -- any
binds of /386, /amd64, /cfg/pxe, etc. into the tftp-specific directory
disappeared from tftpd's namespace and rendered my *9front* boxes
unable to boot. I could maintain copies of the needed files in the
tftp-specific directory, but that'd be kind of a drag.

The following patch adds a -n flag to allow the specification of a
namespace file in place of /lib/namespace; similar to ip/ftpd.

I thought about setting up a /lib/namespace.tftp to act as a default
rather than continuing to use /lib/namespace by default (which
security-wise is about the same as allowing 9p mounts by user none,
which I also have disabled), but I had trouble coming up with a sane
default. Maybe someone more experienced would like to try that out.

- sam-d
2021-02-23 01:47:33 +01:00
..
1 test: fix expression parser 2021-02-06 15:51:09 +10:30
2 libstdio: sync bits of vfprintf from APE 2021-02-19 23:04:09 +01:00
3 devvga: implement screen tilting, remove panning and overlays 2020-12-27 23:08:59 +01:00
4 [9front] nusb(4): fix typo 2021-01-23 19:46:57 -08:00
5 /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
6 image(6): fix typo 2020-02-04 21:32:33 +01:00
7 /sys/man/*/*: fix perms (sorry) 2017-12-11 19:58:06 -05:00
8 ip/tftpd: add -n namespace-file flag (thanks sam-d) 2021-02-23 01:47:33 +01:00
9 man(9): remove accidentally commited indices 2020-05-24 00:26:11 +02:00
fonts Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
index.html Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mkfile /sys/man/9: more pages added 2020-01-04 18:02:54 +01:00
preface.html Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
preface3.html Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
preface4.html Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00