Compile it with debugging information and try to find out which ioctl call in filter_allow is failing.