]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: don't allow truncating irregular files on an read-only mount
authorasomers <asomers@FreeBSD.org>
Mon, 6 May 2019 15:20:18 +0000 (15:20 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 6 May 2019 15:20:18 +0000 (15:20 +0000)
commit5044ec879aba98443a36f6b5cc2a5e89ea053752
tree0ad02e44db49a9e40a60298a1e777cb2e84a89b5
parent53d7be0912b32f806f61833c5c257f2374ba1765
fusefs: don't allow truncating irregular files on an read-only mount

The readonly mount check had a special case allowing the sizes of files to
be changed if they weren't regular files.  I don't know why.  Neither UFS,
ZFS, nor ext2 have such a special case, and I don't know when you would ever
change the size of a non-regular file anyway.

Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_vnops.c