check_xprtsec_policy(9)
β¨ check_xprtsec_policy(9) β¨
okay so bestie, we're in the Kernel API Manual today and the vibe is very NFS daemon security. stay with me, this one's actually cute and short π
πΈ NAME πΈ
check_xprtsec_policy β checks whether the xprtsec policy is gonna let you have access to the export, or if it's giving denied π
π SYNOPSIS π
__be32 check_xprtsec_policy (struct svc_export *exp , struct svc_rqst *rqstp );
π¦ ARGUMENTS π¦
expβ thesvc_exportthat somebody's trying to access, like the thing at the door checking names π«Άrqstpβ thesvc_rqstdoing the accessing ofexp, aka the one knocking on the door
π DESCRIPTION π
so this is a helper function for check_nfsd_access. and like, huge note: callers should be using check_nfsd_access instead of calling this function directly. not me emphasizing that twice, but fr fr, don't come for me later π
the one exception is __fh_verify, because it has logic that may result in one or both of the helpers being skipped. so yeah, that one gets a pass, she's special π
Return values: nfs_ok if access is granted, or nfserr_wrongsec if access is denied. slay or no slay, those are your only two options β¨
π§ SEE ALSO π§
Kernel file ./fs/nfsd/export.c
nfsd_nl_expkey_get_reqs_dumpit(9)nfsd_nl_parse_one_expkey(9)nfsd_nl_expkey_set_reqs_doit(9)nfsd_nl_svc_export_get_reqs_dumpit(9)nfsd_nl_parse_fslocations(9)nfsd_nl_parse_one_export(9)nfsd_nl_svc_export_set_reqs_doit(9)check_security_flavor(9)check_nfsd_access(9)rqst_exp_find(9)
reminder bestie: this is a helper. go through check_nfsd_access. iykyk π«Ά
and that's the whole page, periodt π« this little gem lives in ./fs/nfsd, dated October 2026, straight from the Kernel API Manual β mwah, go read the real source and stay iconic ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms