From 198cc74e21bf090d12465544bd021eca2ed3f49f Mon Sep 17 00:00:00 2001 From: Kyle Schwarz Date: Thu, 1 Sep 2022 14:29:43 -0400 Subject: [PATCH] Fix usermode daemon version check --- intrepid.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/intrepid.c b/intrepid.c index f929b1f..1fa2432 100644 --- a/intrepid.c +++ b/intrepid.c @@ -976,13 +976,7 @@ static long intrepid_dev_ioctl(struct file *fp, unsigned int cmd, unsigned long ret = KO_VERSION_INT; break; case SIOCGCLIENTVEROK: - /* Here we can do checks to see if the usermode daemon is - * a compatible version with us. We don't enforce anything - * on the kernel side. icsscand v2.0.0 will not work with - * older kernels, and would display an obscure error, thus - * we want to ask the user to update to v2.0.1 or later - */ - if (VER_MAJ_FROM_INT(arg) == 3 && (VER_MIN_FROM_INT(arg) > 0 || VER_PATCH_FROM_INT(arg) >= 1)) + if (VER_MAJ_FROM_INT(arg) == 3 && VER_MIN_FROM_INT(arg) == 0 && VER_PATCH_FROM_INT(arg) >= 0) ret = 0; /* ok to start */ else ret = 1;