How to check root powers on a struct proc ?

Joseph Koshy joseph.koshy at gmail.com
Fri Jun 17 16:47:54 GMT 2005


> I am trying to check that a process (struct proc) has root 
> powers when it calls my KLD system call.

Don't you get a 'struct thread *' as an argument to your
system call entry point?

The 'flag' argument to suser_cred(9) is documented in its
manual page.

-- 
FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy


More information about the freebsd-hackers mailing list