Model the ioctl registration like upstread, with new-style and legacy.
Attempt to make most closer to reference.
Requires SPL TSD support.
Set the ioc_error code in the passed args instead of the freed pointer.
Actually call secpolicy functions