Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#17304 closed defect (fixed)

x86/x86_64: procd: Failed to resize receive buffer: Operation not permitted

Reported by: larsg Owned by: developers
Priority: normal Milestone:
Component: base system Version: Trunk
Keywords: Cc:


I'm building x86 and x86_64 rootfs tarballs that I use with Docker. This used to work relatively fine, but after the BB-rc1 release I thought an update to my images would be nice, but things broke ;)

My last working images were built from trunk@40842. Now procd crashes:

$ docker run -t 5329d51d2c12 /sbin/init
procd: Console is alive
procd: - preinit -
procd: Failed to resize receive buffer: Operation not permitted
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
mounting /dev/root
mount: mounting 1 on /mnt failed: No such file or directory
mv: can't rename '/mnt/sysupgrade.tgz': No such file or directory
umount: can't umount /mnt: Operation not permitted
procd: - early -
procd: Failed to resize receive buffer: Operation not permitted

Please let me know if I can provide more useful intel.

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by larsg

Please not that the mount errors also occured with the working images, and are apparantly non-fatal.

comment:2 Changed 4 years ago by cyrus

  • Resolution set to fixed
  • Status changed from new to closed

Problem seems to be on docker side (SO_RCVBUFFORCE should never fail with "Operation not permitted"). Anyway added a workaround in r41867.

comment:3 Changed 4 years ago by anonymous

Hey, thanks a lot, rebuilt the image and it now boots! I read up on SO_RCVBUFFORCE a bit, and according to the socket(7) manpage, CAP_NET_ADMIN privileges are required, which Docker doesn't grant the containers. Its --privileged switch should take care of it, but somehow doesn't. That switch isn't desirable anyway, since granting CAP_NET_ADMIN will also let the container mess with the host's network ;)

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.