Date: Tue, 5 Jul 2011 13:45:10 +0000 (UTC) From: Jonathan Anderson <jonathan@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_descrip.c src/sys/sys file.h Message-ID: <201107051345.p65DjdV9047985@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jonathan 2011-07-05 13:45:10 UTC FreeBSD src repository Modified files: sys/kern kern_descrip.c sys/sys file.h Log: SVN rev 223785 on 2011-07-05 13:45:10Z by jonathan Rework _fget to accept capability parameters. This new version of _fget() requires new parameters: - cap_rights_t needrights the rights that we expect the capability's rights mask to include (e.g. CAP_READ if we are going to read from the file) - cap_rights_t *haverights used to return the capability's rights mask (ignored if NULL) - u_char *maxprotp the maximum mmap() rights (e.g. VM_PROT_READ) that can be permitted (only used if we are going to mmap the file; ignored if NULL) - int fget_flags FGET_GETCAP if we want to return the capability itself, rather than the underlying object which it wraps Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc Revision Changes Path 1.371 +75 -6 src/sys/kern/kern_descrip.c 1.87 +1 -0 src/sys/sys/file.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107051345.p65DjdV9047985>