Set the NOMACCHECK flag for namei()'s generated by the NFS server code.
We currently don't enforce protections on NFS-originated VOP's. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
65f49102eb
commit
94998f80fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105481
@ -604,6 +604,7 @@ nfs_namei(struct nameidata *ndp, fhandle_t *fhp, int len,
|
||||
struct componentname *cnp = &ndp->ni_cnd;
|
||||
|
||||
*retdirp = NULL;
|
||||
cnp->cn_flags |= NOMACCHECK;
|
||||
cnp->cn_pnbuf = uma_zalloc(namei_zone, M_WAITOK);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user