SUNRPC: Allow further customisation of RPC program registration
Add a callback to allow customisation of the rpcbind registration. When clients have the ability to turn on and off version support, we want to allow them to also prevent registration of those versions with the rpc portmapper. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
committed by
J. Bruce Fields
parent
4532608d71
commit
642ee6b209
@ -410,6 +410,11 @@ struct svc_program {
|
||||
__be32 (*pg_init_request)(struct svc_rqst *,
|
||||
const struct svc_program *,
|
||||
struct svc_process_info *);
|
||||
int (*pg_rpcbind_set)(struct net *net,
|
||||
const struct svc_program *,
|
||||
u32 version, int family,
|
||||
unsigned short proto,
|
||||
unsigned short port);
|
||||
};
|
||||
|
||||
/*
|
||||
@ -522,6 +527,16 @@ __be32 svc_return_autherr(struct svc_rqst *rqstp, __be32 auth_err);
|
||||
__be32 svc_generic_init_request(struct svc_rqst *rqstp,
|
||||
const struct svc_program *progp,
|
||||
struct svc_process_info *procinfo);
|
||||
int svc_generic_rpcbind_set(struct net *net,
|
||||
const struct svc_program *progp,
|
||||
u32 version, int family,
|
||||
unsigned short proto,
|
||||
unsigned short port);
|
||||
int svc_rpcbind_set_version(struct net *net,
|
||||
const struct svc_program *progp,
|
||||
u32 version, int family,
|
||||
unsigned short proto,
|
||||
unsigned short port);
|
||||
|
||||
#define RPC_MAX_ADDRBUFLEN (63U)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user