FS#62664 - [nbd] nbd server with whitespace in authorization file

Attached to Project: Arch Linux
Opened by Jonathan Steel (jsteel) - Friday, 17 May 2019, 14:58 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 18 March 2020, 07:28 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Updating glibc from 2.28-6 to 2.29-1 breaks nbd-client access.

Server config:

# /etc/nbd-server/config
[generic]
user = nbd
group = disk
[test]
exportname = /dev/vg_test/lv_test
authfile = /etc/nbd-server/authfile

# /etc/nbd-server/authfile
10.0.0.2


Steps to reproduce:
Have glibc 2.28-6 installed on the nbd server. On the client run "nbd-client -N test 10.0.0.1 /dev/nbd0":
Negotiation: ..size = 51196MB
Connected /dev/nbd0

Update to glibc 2.29-1 and restart ndb on the server. On the client run the same command and:
Negotiation: ..Error: Connection not allowed by server policy. Server said: Access denied by server configuration
Exiting.

On the server I see:
nbd_server[7845]: Spawned a child process
nbd_server[12331]: virtstyle ipliteral
nbd_server[12331]: connect from 10.0.0.2, assigned file is /dev/vg_test/lv_test
nbd_server[12331]: Client '10.0.0.2' is not authorized to access
nbd_server[12331]: Negotiation failed: Connection reset by peer
nbd_server[12331]: Exiting.
nbd_server[7845]: Child exited with 1
This task depends upon

Closed by  Christian Hesse (eworm)
Wednesday, 18 March 2020, 07:28 GMT
Reason for closing:  Fixed
Additional comments about closing:  nbd-3.20-2
Comment by Jonathan Liu (net147) - Wednesday, 18 March 2020, 00:24 GMT
  • Field changed: Percent Complete (100% → 0%)
Issue still exists with nbd 3.20-1 and glibc 2.31-2.
Fix for nbd is available upstream: https://github.com/NetworkBlockDevice/nbd/commit/6cabf9af2310282ace4208ae6f3f4d874dbf3e88.patch
Comment by Jonathan Liu (net147) - Wednesday, 18 March 2020, 01:34 GMT
Please reassign to nbd package maintainer as it is nbd issue.

Loading...