mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 01:30:43 +00:00
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>
This commit is contained in:
parent
e56e554106
commit
20abb66ede
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274970
@ -3096,6 +3096,7 @@ export_vnode_to_kinfo(struct vnode *vp, int fd, int fflags,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user