Date: Mon, 24 Nov 2014 18:34:12 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r274970 - head/sys/kern Message-ID: <201411241834.sAOIYCCW010683@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Mon Nov 24 18:34:11 2014 New Revision: 274970 URL: https://svnweb.freebsd.org/changeset/base/274970 Log: Properly initialize the capability rights for vnodes exported to procstat that aren't for file descriptors (cwd, jdir, tracevp, etc.). Submitted by: Mikhail <mp@lenta.ru> Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c ============================================================================== --- head/sys/kern/kern_descrip.c Mon Nov 24 18:11:16 2014 (r274969) +++ head/sys/kern/kern_descrip.c Mon Nov 24 18:34:11 2014 (r274970) @@ -3096,6 +3096,7 @@ export_vnode_to_kinfo(struct vnode *vp, if (error == 0) kif->kf_status |= KF_ATTR_VALID; kif->kf_flags = xlate_fflags(fflags); + cap_rights_init(&kif->kf_cap_rights); kif->kf_fd = fd; kif->kf_ref_count = -1; kif->kf_offset = -1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411241834.sAOIYCCW010683>