HomeFreeBSD

fusefs: allow ftruncate on files without write permission

Description

fusefs: allow ftruncate on files without write permission

ftruncate should succeed as long as the file descriptor is writable, even if
the file doesn't have write permission. This is important when combined
with O_CREAT.

Reported by: pjdfstest
Sponsored by: The FreeBSD Foundation

Details

Provenance
asomersAuthored on
Parents
rS347208: MFC r340435: Prevent POLA violation with TSO/CSUM offload
Branches
Unknown
Tags
Unknown