aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2024-03-28 15:18:14 +0100
committerBernd Schubert <bernd.schubert@fastmail.fm>2024-03-29 13:04:45 +0100
commit3e283a1bcbc4ec78fb45c4a8b3f683b8e3082c53 (patch)
treecf00051abd35fc7edba7d8014e9d41952acf37fb /lib
parent67d4db405059f83d3c2f4ee577a712c424b481db (diff)
downloadlibfuse-3e283a1bcbc4ec78fb45c4a8b3f683b8e3082c53.tar.gz
Add support for FUSE_CAP_HANDLE_KILLPRIV_V2
This just adds in the basic handler, but does not use it yet in examples.
Diffstat (limited to 'lib')
-rw-r--r--lib/fuse_lowlevel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index 26e5699..d9844b0 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -2001,6 +2001,8 @@ void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
se->conn.capable |= FUSE_CAP_POSIX_ACL;
if (inargflags & FUSE_HANDLE_KILLPRIV)
se->conn.capable |= FUSE_CAP_HANDLE_KILLPRIV;
+ if (inargflags & FUSE_HANDLE_KILLPRIV_V2)
+ se->conn.capable |= FUSE_CAP_HANDLE_KILLPRIV_V2;
if (inargflags & FUSE_CACHE_SYMLINKS)
se->conn.capable |= FUSE_CAP_CACHE_SYMLINKS;
if (inargflags & FUSE_NO_OPENDIR_SUPPORT)
@@ -2145,6 +2147,8 @@ void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
outargflags |= FUSE_POSIX_ACL;
if (se->conn.want & FUSE_CAP_HANDLE_KILLPRIV)
outargflags |= FUSE_HANDLE_KILLPRIV;
+ if (se->conn.want & FUSE_CAP_HANDLE_KILLPRIV_V2)
+ outargflags |= FUSE_HANDLE_KILLPRIV_V2;
if (se->conn.want & FUSE_CAP_CACHE_SYMLINKS)
outargflags |= FUSE_CACHE_SYMLINKS;
if (se->conn.want & FUSE_CAP_EXPLICIT_INVAL_DATA)