On Sat, Jan 02, 2010 at 02:47:53PM -0600, David Young wrote:
> On Sat, Jan 02, 2010 at 12:09:14AM +0100, Jan Danielsson wrote:
> > However, cgd_ioctl_clr() calls vn_close(), which needs credentials
> > from an lwp structure. In the context of cgd_detach(), I don't see what
> > lwp to use.
>
> Use curlwp->l_cred.
Does it make any sense for vn_close() to fail due to incorrect
credentials ?
Anything that actually verifies credentials surely needs to be given
'sys_cred' (or whatever that has become) in order to avoid failure.
David
--
David Laight: [email protected]