kern_setcred
error = kern_setcred(td, flags, wcred);
int kern_setcred(struct thread *const td, const u_int flags,