mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
f496647e3b
This makes it harder for accidental or malicious changes to nfs4_xattr_handlers at runtime. Cc: Trond Myklebust <trond.myklebust@hammerspace.com> Cc: Anna Schumaker <anna@kernel.org> Cc: linux-nfs@vger.kernel.org Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-19-wedsonaf@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2012 Netapp, Inc. All rights reserved.
|
|
*
|
|
* Function and structures exported by the NFS module
|
|
* for use by NFS version-specific modules.
|
|
*/
|
|
#ifndef __LINUX_INTERNAL_NFS_H
|
|
#define __LINUX_INTERNAL_NFS_H
|
|
|
|
#include <linux/fs.h>
|
|
#include <linux/sunrpc/sched.h>
|
|
#include <linux/nfs_xdr.h>
|
|
|
|
struct nfs_subversion {
|
|
struct module *owner; /* THIS_MODULE pointer */
|
|
struct file_system_type *nfs_fs; /* NFS filesystem type */
|
|
const struct rpc_version *rpc_vers; /* NFS version information */
|
|
const struct nfs_rpc_ops *rpc_ops; /* NFS operations */
|
|
const struct super_operations *sops; /* NFS Super operations */
|
|
const struct xattr_handler * const *xattr; /* NFS xattr handlers */
|
|
struct list_head list; /* List of NFS versions */
|
|
};
|
|
|
|
struct nfs_subversion *get_nfs_version(unsigned int);
|
|
void put_nfs_version(struct nfs_subversion *);
|
|
void register_nfs_version(struct nfs_subversion *);
|
|
void unregister_nfs_version(struct nfs_subversion *);
|
|
|
|
#endif /* __LINUX_INTERNAL_NFS_H */
|