Public bug reported:
nbd-server 1:2.9.25-2ubuntu1
I was trying to use /etc/nbd-server/allow and I hit two problems, might
be bugs:
1) If I'm using the shipped /etc/nbd-server/config file and this
/etc/nbd-server/conf.d/ltsp_i386.conf file:
[/opt/ltsp/i386]
exportname = /opt/ltsp/images/i386.img
readonly = true
...then /etc/nbd-server/allow isn't parsed at all, I have to specifically add
this in ltsp_i386.conf:
authfile = /etc/nbd-server/allow
2) The subnet mask handling doesn't work, I made it work by swapping the bit
shifting in authorized_client():
addr.s_addr<<=32-len;
addr.s_addr>>=32-len;
memcpy(&cltemp,&client,sizeof(client));
cltemp.s_addr<<=32-len;
cltemp.s_addr>>=32-len;
...not sure if it's network-order depended or not.
** Affects: nbd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1009393
Title:
Problems with /etc/nbd-server/allow
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nbd/+bug/1009393/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs