retis-org / retis

Tracing packets in the Linux networking stack & friends
https://retis.readthedocs.io/en/stable/
100 stars 14 forks source link

core: inspect: remove os inspection helpers #246

Closed atenart closed 1 year ago

atenart commented 1 year ago

The os_id() and os_version() helpers aren't used atm and shouldn't be used as the information they report cannot be used in a reliable way. The use of containers is the main culprit, where the /etc/os-release file will report values different from the underlying system. This is not an issue when working with user programs in the container alone, but in our case (kernel, inspection of pids outside the container) those values do not mean anything valuable. Remove them.