diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-11-12 19:29:20 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-11-17 13:24:11 +0000 |
| commit | 3e29cd164ccc857a3473f73a2910bf411445cb7e (patch) | |
| tree | 923fe990b9de2c176a8b86f0abf4817225653ea2 /tests/sys/kqueue/libkqueue/timer.c | |
| parent | 947d644c55a7a34832e3f7bea90e63173603a1d7 (diff) | |
fdescfs: check the target file for FWRITE access when truncating
Truncation is done by calling fdesc_setattr(), and fdesc_setattr() looks
up fd N again, so a concurrent dup2() can swap the file between the
access check and the truncate.
Correct the rights checked for the setattr().
Unlock the fdescfs vnode around fdrop() of the underlying file.
Approved by: so
Security: FreeBSD-SA-26:91.fdescfs
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'tests/sys/kqueue/libkqueue/timer.c')
0 files changed, 0 insertions, 0 deletions
