check_xprtsec_policy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the svc_export that somebody's trying to access, like the thing at the door checking names 🫢
  • rqstp β€” the svc_rqst doing the accessing of exp, 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


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