Hi all, I am trying to check that a process (struct proc) has root powers when it calls my KLD system call. I know from kern_jail.c that I can use suser() but this function takes a struct thread* instead of struct proc* although the credentials (struct ucred *p_ucred;) are stored in proc !
Is there an esay way to get a struct thread* from a struct proc* ? or should I simply use the function: int suser_cred(struct ucred *cred, int flag); with cred = p-> p_ucred BTW what would the value of flag be? Thanks, -aziz _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"