inetd2rlinetd doesn't understand (udp|tcp)(4|6) as protocol

Bug #1057663 reported by urusha
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rlinetd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

inetd2rlinetd script from rlinetd package doesn't support "udp4/udp6/tcp4/tcp6" as protocol. This becomes a reason for bugs like #993101

The bug exists in precise and quantal i386/amd64, here is quantal info:

# lsb_release -rd
Description: Ubuntu quantal (development branch)
Release: 12.10

# LANG=C apt-cache policy rlinetd
rlinetd:
  Installed: 0.8.2-1
  Candidate: 0.8.2-1
  Version table:
 *** 0.8.2-1 0
        500 http://ru.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
        100 /var/lib/dpkg/status

How to reproduce:
# apt-get install atftpd rlinetd

It doesn't create config for rlinetd, but gives an error:
unknown protocol: udp4
; skipping service tftp

Attached patch strips protocol number from those having it, adds "family" directive and additionally fixes error string about wrong protocols.

Tags: patch
Revision history for this message
urusha (urusha) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rlinetd (Ubuntu):
status: New → Confirmed
urusha (urusha)
summary: - rlinetd doesn't understand (udp|tcp)(4|6) as protocol
+ inetd2rlinetd doesn't understand (udp|tcp)(4|6) as protocol
Revision history for this message
Richard Hansen (rhansen) wrote :

Thank you urusha for filing this bug report!

Attached is a debdiff for Quantal that is based on urusha's patch. I have uploaded it to my PPA (<https://launchpad.net/~a7x/+archive/bug1057663>) and it should be done building in a few hours. To install:

    sudo apt-add-repository ppa:a7x/bug1057663
    sudo apt-get update
    sudo apt-get upgrade

Revision history for this message
Richard Hansen (rhansen) wrote :

And here is the debdiff for Precise. This version has also been uploaded to my PPA and should be done building in a few hours.

Richard Hansen (rhansen)
tags: added: patch
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "inetd2rlinetd patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rlinetd - 0.8.2-2

---------------
rlinetd (0.8.2-2) unstable; urgency=low

  * Add 1-Fix-fd_set-overflow.patch to fix fd_set buffer overflows caught
    by new glibc 1.15 hardening checks (LP: #105764)
    The fd_set buffers used by FD_ISSET, FD_SET, FD_CLR macros used to be
    overwritten usually by 1 byte or more in rare cases on systems where
    open file descriptors limit is greater than FD_SETSIZE.
  * Add 2-Add-udp4-to-inetd2rlinetd.patch to support protocols like udp4,
    tcp6 in inetd2rlinetd (LP: #1057663).
  * postinst, postrm: Fix installing/removing diversions (closes: #691778).
    The scripts fail to parse output of `dpkg-divert --list', when it is
    localized, so enforce non-localized output by setting LC_ALL=C.

 -- Robert Luberda <email address hidden> Mon, 10 Dec 2012 22:47:43 +0100

Changed in rlinetd (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.