Date: Thu, 16 Oct 2014 10:58:00 +0800 From: Marcelo Araujo <araujobsdport@gmail.com> To: Rick Macklem <rmacklem@uoguelph.ca> Cc: "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org> Subject: Re: [PATCH] disable nfsd (NFSv4) nobody/nogroup check Message-ID: <CAOfEmZjf-rLD6uYw-qCq7CiSNEDW4z6C_iF4zJT2p8_dRAFijg@mail.gmail.com> In-Reply-To: <CAOfEmZj7cDJ9d0=MiV1E5N0kNDksHp0ujn3Z9q%2B%2BJhaerKfqSg@mail.gmail.com> References: <CAOfEmZhFgx21qa3W_mx9%2B3ERT-_yU1gqJHxviUWXWTh8Dxnt1A@mail.gmail.com> <1865571459.65576954.1413416765814.JavaMail.root@uoguelph.ca> <CAOfEmZj7cDJ9d0=MiV1E5N0kNDksHp0ujn3Z9q%2B%2BJhaerKfqSg@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 2014-10-16 10:42 GMT+08:00 Marcelo Araujo <araujobsdport@gmail.com>: > > > 2014-10-16 7:46 GMT+08:00 Rick Macklem <rmacklem@uoguelph.ca>: > >> Marcelo Araujo wrote: >> > >> > Hello Ronald and Blot, >> > >> > >> > >> > Here is the patch with a small rework. I consider Ronaldo's comments >> > as well as I just change a bit the code style. >> > >> > >> > If you guys agree with the patch, I will commit it today. >> > >> Looks fine to me. >> > > Thanks Rick! Committed; I will do the MFC after two weeks if you have no > objections. > > https://svnweb.freebsd.org/base?view=revision&revision=273159 > > >> > >> > Note: About the disable_utf8 that Rick has mention, I will rework >> > that part later to make it as enable_utf8 instead of disable_utf8. >> > >> If you do change this one, try to include something in the description >> string w.r.t. RFC-3530 requires it to be enabled. >> >> Thanks, rick >> >> > Rick, here is a patch that renames the disable_utf8 to enable_utf8 and as > per your request, I have changed the description of the sysctl(8) as well. > Let me know if the change looks good for you as well as the description. > > > > Ouch, I forgot to attach the patch, spotted by kevlo@ via Skype :_) Best Regards, -- -- Marcelo Araujo (__)araujo@FreeBSD.org \\\'',)http://www.FreeBSD.org <http://www.freebsd.org/> \/ \ ^ Power To Server. .\. /_) [-- Attachment #2 --] Index: sys/fs/nfsserver/nfs_nfsdsubs.c =================================================================== --- sys/fs/nfsserver/nfs_nfsdsubs.c (revision 273159) +++ sys/fs/nfsserver/nfs_nfsdsubs.c (working copy) @@ -61,10 +61,10 @@ SYSCTL_DECL(_vfs_nfsd); -static int disable_checkutf8 = 0; -SYSCTL_INT(_vfs_nfsd, OID_AUTO, disable_checkutf8, CTLFLAG_RW, - &disable_checkutf8, 0, - "Disable the NFSv4 check for a UTF8 compliant name"); +static int enable_checkutf8 = 1; +SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_checkutf8, CTLFLAG_RW, + &enable_checkutf8, 0, + "Enable the NFSv4 check for the UTF8 compliant name required by rfc3530"); static int enable_nobodycheck = 1; SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_nobodycheck, CTLFLAG_RW, @@ -2005,7 +2005,7 @@ error = 0; goto nfsmout; } - if (disable_checkutf8 == 0 && + if (enable_checkutf8 == 1 && nfsrv_checkutf8((u_int8_t *)bufp, outlen)) { nd->nd_repstat = NFSERR_INVAL; error = 0;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfEmZjf-rLD6uYw-qCq7CiSNEDW4z6C_iF4zJT2p8_dRAFijg>
