strongswan / swidGenerator

Application which generates SWID-Tags from Linux package managers like dpkg, rpm or pacman.
MIT License
16 stars 11 forks source link

HW Architecture in SWID tags and softwareIDs #10

Closed strongX509 closed 10 years ago

strongX509 commented 10 years ago

The uniqueID in a SWID tag generated by the swidGenerator has currrently the form

uniqueId="Ubuntu_13.10-64bit-zlib1g-dev-1:1.2.8.dfsg-1ubuntu1"

Instead of "64bit" or "32bit" for designating the hardware architecture I would prefer the output of the system command

uname --machine

instead which returns e.g. "x86_64" for 64-bit systems and "i686" on 32-bit Intel platforms. This would be consistent with the naming scheme the strongSwan OS IMC uses.

BTW - the swidGenerator in the software-id mode generates IDs of the form

regid.2004-03.org.strongswan_Ubuntu_13.10-zlib1g-dev-1:1.2.8.dfsg-1ubuntu1

which does not include the HW architecture.

Regards

Andreas

cfaessler commented 10 years ago

Regards Christian

cfaessler commented 10 years ago

@dbrgn can you please review the changes?

dbrgn commented 10 years ago

Looks good!