diff --git a/src/detection/disk/disk_linux.c b/src/detection/disk/disk_linux.c index 89194414f..31715e6d5 100644 --- a/src/detection/disk/disk_linux.c +++ b/src/detection/disk/disk_linux.c @@ -31,7 +31,7 @@ static bool isPhysicalDevice(const struct mntent* device) //DrvFs is a filesystem plugin to WSL that was designed to support interop between WSL and the Windows filesystem. if(ffStrEquals(device->mnt_type, "9p")) - return true; + return ffStrContains(device->mnt_opts, "aname=drvfs"); //ZFS pool if(ffStrEquals(device->mnt_type, "zfs")) diff --git a/src/util/stringUtils.h b/src/util/stringUtils.h index 4de957841..dd5d7e5ba 100644 --- a/src/util/stringUtils.h +++ b/src/util/stringUtils.h @@ -64,3 +64,8 @@ static inline bool ffStrContainsIgnCase(const char* str, const char* compareTo) { return strcasestr(str, compareTo) != NULL; } + +static inline bool ffStrContainsC(const char* str, char compareTo) +{ + return strchr(str, compareTo) != NULL; +}