On Fri, Jul 17, 2009 at 9:19 PM, Jan Engelhardt<jengelh@xxxxxxxxxx> wrote: >>So, the question, as mentioned in the beginning. What context is the >>hook executing in which causes the code to behave differently from >>when it executed in the module init method for instance? > > module_init either runs as user or kthread context. Your reading > of files would most likely also fail in the latter. I see, then this problem is not really netfilter specific I guess. I guess I have many things to learn here. I suppose exec is also running in user context when it reads files with kernel_read then. If anyone knows of any good online documentation or book regarding these different contexts I would be grateful for the info. Otherwise I thank you for the feedback. /Stefan -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html