From 05de3c98c07e636e007e7ecf6516508426d02c83 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Tue, 22 Nov 2016 15:56:55 -0800 Subject: Add support for FUSE_HANDLE_KILLPRIV Fixes #116. --- include/fuse.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index 60015ca..56539f1 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -351,6 +351,9 @@ struct fuse_operations { * * `fi` will always be NULL if the file is not currenly open, but * may also be NULL if the file is open. + * + * Unless FUSE_CAP_HANDLE_KILLPRIV is disabled, this method is + * expected to reset the setuid and setgid bits. */ int (*chown) (const char *, uid_t, gid_t, struct fuse_file_info *fi); @@ -358,6 +361,9 @@ struct fuse_operations { * * `fi` will always be NULL if the file is not currenly open, but * may also be NULL if the file is open. + * + * Unless FUSE_CAP_HANDLE_KILLPRIV is disabled, this method is + * expected to reset the setuid and setgid bits. */ int (*truncate) (const char *, off_t, struct fuse_file_info *fi); @@ -395,6 +401,9 @@ struct fuse_operations { * Write should return exactly the number of bytes requested * except on error. An exception to this is when the 'direct_io' * mount option is specified (see read operation). + * + * Unless FUSE_CAP_HANDLE_KILLPRIV is disabled, this method is + * expected to reset the setuid and setgid bits. */ int (*write) (const char *, const char *, size_t, off_t, struct fuse_file_info *); @@ -635,6 +644,9 @@ struct fuse_operations { * Similar to the write() method, but data is supplied in a * generic buffer. Use fuse_buf_copy() to transfer data to * the destination. + * + * Unless FUSE_CAP_HANDLE_KILLPRIV is disabled, this method is + * expected to reset the setuid and setgid bits. */ int (*write_buf) (const char *, struct fuse_bufvec *buf, off_t off, struct fuse_file_info *); -- cgit v1.2.3