Bug 1380333 - Script for updating services from IANA
Summary: Script for updating services from IANA
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: setup
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-29 10:21 UTC by Ville Skyttä
Modified: 2017-08-11 08:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-11 08:33:43 UTC
Type: Bug


Attachments (Terms of Use)
generate-services.py (1.47 KB, text/plain)
2016-09-29 10:21 UTC, Ville Skyttä
no flags Details

Description Ville Skyttä 2016-09-29 10:21:53 UTC
Created attachment 1205893 [details]
generate-services.py

I was looking for http-alt entries in /etc/services, but didn't find any, and while at that I noticed that there's a lot of services that are in IANA that are not in /etc/services.

Maybe this is on purpose? Anyway, I wrote the attached script that can be helpful with syncing with IANA even if not including all services is desirable. It seems to be doing a good job, but obviously has no idea about aliases as they don't exist in the registry.

Feel free to include this in one form or another in the setup package (srpm only?), and/or include the http-alt ports in /etc/services in any case :)

Comment 1 Ondrej Vasik 2016-09-30 07:28:27 UTC
Thanks for the script, when I compared results of current /etc/services and iana registry parsed by your script, I see we have 43 entries missing in /etc/services and 304 entries we have in /etc/services and are not in output generated by script.

I think it is worth to check these 43 entries and find out why they are missing on our side (I always worked with changes in entries in the past updates and output of my script was hand tweaked due to duplicities and obvious typos on iana side (e.g. check optohost004 multientry in iana ). I'm quite sure most of them are missing by accident, so I'll add them in next build.

Back to your report - actually, http-alt is in our /etc/services - listed as alias for 8080 . Difference between iana and our /etc/services is in the fact we don't have any duplicate names - every service has its port - and not multiple ports. Second difference is in aliases (one port can have multiple aliases separated by space in last columns before comment with the name of primary name of service attached to the port).

Question is probably whether this is good behaviour or not - I can of course change the structure and allow multi port services, but it can possibly break some scripts (at least it will break my verification script for checking duplicates now).

Comment 2 Fedora End Of Life 2017-02-28 10:22:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 3 Ondrej Vasik 2017-08-11 08:33:43 UTC
I pushed the script into https://pagure.io/setup/c/5907d31c889da5aa405a7ec3bb4f77142b30222f?branch=master ... sorry for delay. Meanwhile I received another list of discrepancies between IANA and Fedora /etc/services, will try to fix it soon...


Note You need to log in before you can comment on or make changes to this bug.