27ad886c95
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 |
||
---|---|---|
.. | ||
0intro | ||
6in4 | ||
9boot | ||
9pcon | ||
aan | ||
acpi | ||
aliasmail | ||
apm | ||
atazz | ||
auth | ||
backup | ||
boot | ||
booting | ||
cec | ||
cifsd | ||
cpuid | ||
cpurc | ||
cron | ||
cryptsetup | ||
dhcpd | ||
diskparts | ||
disksim | ||
fs | ||
fsconfig | ||
fshalt | ||
getflags | ||
gpsfs | ||
hgignore | ||
hgrc | ||
histogram | ||
hjfs | ||
httpd | ||
icanhasmsi | ||
init | ||
ipconfig | ||
ipserv | ||
kbdfs | ||
listen | ||
lp | ||
memory | ||
mk9660 | ||
mkflashfs | ||
mkfs | ||
mkpaqfs | ||
mksacfs | ||
mouse | ||
na | ||
ndb | ||
netaudit | ||
newuser | ||
nfsserver | ||
nusbrc | ||
partfs | ||
pci | ||
pcmcia | ||
pem | ||
ping | ||
plan9.ini | ||
pop3 | ||
ppp | ||
prep | ||
qer | ||
rc-httpd | ||
realemu | ||
reboot | ||
replica | ||
rsa | ||
scanmail | ||
screenlock | ||
scuzz | ||
secstore | ||
securenet | ||
send | ||
smart | ||
smtp | ||
snoopy | ||
splitmbox | ||
stats | ||
statusbar | ||
stub | ||
swap | ||
timesync | ||
tinc | ||
tlssrv | ||
trampoline | ||
udpecho | ||
vblade | ||
venti | ||
venti-backup | ||
venti-fmt | ||
vga | ||
wol | ||
wpa | ||
zerotrunc |