Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2005 22:17:53 +0530
From:      Joseph Koshy <joseph.koshy@gmail.com>
To:        Aziz Kezzou <french.linuxian@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: How to check root powers on a struct proc ?
Message-ID:  <84dead72050617094731ff2b46@mail.gmail.com>
In-Reply-To: <3727392705061709318b9346f@mail.gmail.com>
References:  <3727392705061709318b9346f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> I am trying to check that a process (struct proc) has root=20
> 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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84dead72050617094731ff2b46>