diff mbox series

[4/4] pidfs: restrict to local file handles

Message ID 20241201-work-exportfs-v1-4-b850dda4502a@kernel.org (mailing list archive)
State New
Headers show
Series exportfs: add flag to allow marking export operations as only supporting file handles | expand

Commit Message

Christian Brauner Dec. 1, 2024, 1:12 p.m. UTC
The pidfs filesystem uses local file handles that cannot be exported.
Mark its export operations accordingly.

Signed-off-by: Christian Brauner <brauner@kernel.org>
---
 fs/pidfs.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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)