[PATCH 4/4] pidfs: restrict to local file handles
From: Christian Brauner
Date: Sun Dec 01 2024 - 08:13:51 EST
The pidfs filesystem uses local file handles that cannot be exported.
Mark its export operations accordingly.
Signed-off-by: Christian Brauner <brauner@xxxxxxxxxx>
---
fs/pidfs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/pidfs.c b/fs/pidfs.c
index dde3e4e90ea968c12dba0a0d37c95e2218253369..29c894f2792b4a5360a0e1933f850bfaf08413eb 100644
--- a/fs/pidfs.c
+++ b/fs/pidfs.c
@@ -570,6 +570,7 @@ static const struct export_operations pidfs_export_operations = {
.fh_to_dentry = pidfs_fh_to_dentry,
.open = pidfs_export_open,
.permission = pidfs_export_permission,
+ .flags = EXPORT_OP_LOCAL_FILE_HANDLE,
};
static int pidfs_init_inode(struct inode *inode, void *data)
--
2.45.2