Including STRTOK_R in a LSM

From: Z. Cliffe Schreuders
Date: Mon Jul 16 2007 - 05:05:25 EST


I am aware strtok was removed from the kernel in 2002. However strtok_r is more desirable than strsep as I do not want to know about 'blank fields' (2 consecutive delimiters). Is it acceptable to simply include the strtok_r code in my security module? or should I create a wrapper for strsep to ignore blanks?

Thanks,

Z. Cliffe Schreuders

Please cc me.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/