10 Jun
2026
10 Jun
'26
9:07 a.m.
On 6/8/26 10:10, Baptiste Daroussin wrote:
On monolythic kernel /sys/modules/*/drivers may not exist (ENOENT) On kernels with enhanced security (e.g. grsecurity), it might not be accessible: EACCESS or EPERM.
Directly try to open if it fails with any of those errors, we fallback on the module name.
Signed-off-by: Baptiste Daroussin <baptiste.daroussin@ovhcloud.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> --- src/util/virpci.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
Reviewed-by: Michal Privoznik <mprivozn@redhat.com> and merged. Congratulations on your first libvirt contribution! Michal