Closed fearful-symmetry closed 5 months ago
Right now, under Linux we check to see if we have a permission denied error when we resolve the symlink for exe: https://github.com/elastic/elastic-agent-system-metrics/blob/8a02eaa6c02e7972cc8d0adc90c1c13db836e273/metric/system/process/process_linux_common.go#L209
exe
We do this so we can skip any errors related to permissions issues. However, this doesn't work under two cases:
Permission deined
file not found
The permissions check in process_linux_common.go should check for both permission errors, and file not found errors.
process_linux_common.go
Blocked as required https://github.com/elastic/beats/issues/38241 first
Right now, under Linux we check to see if we have a permission denied error when we resolve the symlink for
exe
: https://github.com/elastic/elastic-agent-system-metrics/blob/8a02eaa6c02e7972cc8d0adc90c1c13db836e273/metric/system/process/process_linux_common.go#L209We do this so we can skip any errors related to permissions issues. However, this doesn't work under two cases:
exe
symlink is non-existentPermission deined
orfile not found
depending on the permissions docker is running with.The permissions check in
process_linux_common.go
should check for both permission errors, and file not found errors.