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 <[email protected]> > Reviewed-by: Peter Krempa <[email protected]> > --- > src/util/virpci.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) >
Reviewed-by: Michal Privoznik <[email protected]> and merged. Congratulations on your first libvirt contribution! Michal
