mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue