nusenu / ContactInfo-Information-Sharing-Specification

A specification for tor's ContactInfo field.
https://nusenu.github.io/ContactInfo-Information-Sharing-Specification/
12 stars 3 forks source link

Further specify os field #1

Closed lucaswerkmeister closed 6 years ago

lucaswerkmeister commented 6 years ago

I think the os field is currently underspecified:

String stating which OS and version is used. OS and version is separated with a "/" sign.

example: OpenBSD/6.1

For Linux distributions, is the OS “Linux” or the distribution name? And is the version the Linux kernel version or the distribution version? (In the latter case: what about rolling-release distributions like Arch?)

On Linux systems, I would suggest using the ID and VERSION_ID fields from /etc/os-release. (Note that the VERSION_ID field is optional.)

I’m less familiar with *BSD, but I take it the version number is unambiguous there?

nusenu commented 6 years ago

Hi thank you for your input!

lucaswerkmeister commented 6 years ago

Wow, that was fast, thanks! :D But this doesn’t account for distributions where the VERSION_ID field is missing, like Arch.

nusenu commented 6 years ago

Thanks for that example, after I looked at debian, ubuntu, centos, fedora I assumed it is always present. So if it is not present we can simply omit it.

lucaswerkmeister commented 6 years ago

Great, thanks!