summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/getvfsent.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/gen/getvfsent.c b/lib/libc/gen/getvfsent.c
index 80b7555..79f9dd4 100644
--- a/lib/libc/gen/getvfsent.c
+++ b/lib/libc/gen/getvfsent.c
@@ -187,6 +187,14 @@ vfspath(const char *name)
int
vfsisloadable(const char *name)
{
+ int fd;
+
+ fd = open("/dev/lkm", O_RDWR, 0);
+ if(fd < 0) {
+ return 0;
+ }
+ close(fd);
+
return !!vfspath(name);
}
OpenPOWER on IntegriCloud