diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-11-22 15:56:55 -0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-11-22 15:56:55 -0800 |
commit | 05de3c98c07e636e007e7ecf6516508426d02c83 (patch) | |
tree | 7a477ea529fcfd76f5a59a25a58f811914ef012b /include/fuse.h | |
parent | e16fdc06d7473f00499b6b03fb7bd06259a22135 (diff) | |
download | libfuse-05de3c98c07e636e007e7ecf6516508426d02c83.tar.gz |
Add support for FUSE_HANDLE_KILLPRIV
Fixes #116.
Diffstat (limited to 'include/fuse.h')
-rw-r--r-- | include/fuse.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 *); |