tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: struct file reference at VFS level



matthew green <mrg%eterna.com.au@localhost> wrote:

> you do realise that kauth_cred_t is shared across processes in 
> some cases but not all, right?

VFS uses a kauth_cred_t from struct file f_cred field, which is tied to
the struct file. The value is initialized as curlwp->l_cred in
fd_allocfile(). 

My proposed patch replaces this f_cred by an augmented copy in
open_setfp().

> i don't think kauth_cred_t is the right place to try to store
> random crap related to file systems.

Where do you think that data should go?

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index