diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2011-08-11 12:30:23 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2011-08-11 12:30:23 +0000 |
commit | a9d2f8d84f69e98100b5746816b35666bcf992ac (patch) | |
tree | 4b691c0e209134040c3cf5ce75660b61282933d0 /sys/nfsserver | |
parent | 2ffd5fdcc433626b1adb061119cd412f9b3020e9 (diff) | |
download | src-test2-a9d2f8d84f69e98100b5746816b35666bcf992ac.tar.gz src-test2-a9d2f8d84f69e98100b5746816b35666bcf992ac.zip |
Notes
Diffstat (limited to 'sys/nfsserver')
-rw-r--r-- | sys/nfsserver/nfs_srvkrpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfsserver/nfs_srvkrpc.c b/sys/nfsserver/nfs_srvkrpc.c index 3c60825f2087..2581092eafe0 100644 --- a/sys/nfsserver/nfs_srvkrpc.c +++ b/sys/nfsserver/nfs_srvkrpc.c @@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$"); #include "opt_kgssapi.h" #include <sys/param.h> +#include <sys/capability.h> #include <sys/systm.h> #include <sys/sysproto.h> #include <sys/kernel.h> @@ -173,7 +174,7 @@ nfssvc_nfsserver(struct thread *td, struct nfssvc_args *uap) sizeof(addsockarg)); if (error) return (error); - if ((error = fget(td, addsockarg.sock, &fp)) != 0) + if ((error = fget(td, addsockarg.sock, CAP_SOCK_ALL, &fp)) != 0) return (error); if (fp->f_type != DTYPE_SOCKET) { fdrop(fp, td); |