Hi all I've been expanding test coverage for F_SET_RW_HINT, and noticed that right now there is no permission checking whatsoever. Patch 1 fixes that by requiring the owner or capable to set the write hint. Patch 2 also requires an fd open for write, which is a bit more arguable but still feels right. Diffstat: fcntl.c | 5 +++++ 1 file changed, 5 insertions(+)