From: "J. Bruce Fields" <bfields@citi.umich.edu>
To: Michael Guntsche <mike-Z92qn3yYq0hWk0Htik3J/w@public.gmane.org>
Cc: linux-nfs <linux-nfs@vger.kernel.org>
Subject: Re: Problem with 2.6.33-rc1 and insecure flag
Date: Sun, 20 Dec 2009 10:41:22 -0500 [thread overview]
Message-ID: <20091220154122.GA2841@fieldses.org> (raw)
In-Reply-To: <20091220094625.GA2159-8FIgwK2HfyKMj3X28ACnv+Tv7YV0F9Eg@public.gmane.org>
On Sun, Dec 20, 2009 at 10:46:26AM +0100, Michael Guntsche wrote:
> I think I figured out the problem.
>
> Apparently the code checked if insecure was set, while it should check if it was NOT set.
Thanks! And apologies, I ran across this too a couple days ago, left it
in -next, and forgot to send it upstream.... I'll do that now.
--b.
>
> Kind regards,
> Michael
>
> diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c
> index 1c12177..55c8e63 100644
> --- a/fs/nfsd/nfsfh.c
> +++ b/fs/nfsd/nfsfh.c
> @@ -89,7 +89,7 @@ static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp,
> int flags = nfsexp_flags(rqstp, exp);
>
> /* Check if the request originated from a secure port. */
> - if (!rqstp->rq_secure && (flags & NFSEXP_INSECURE_PORT)) {
> + if (!rqstp->rq_secure && !(flags & NFSEXP_INSECURE_PORT)) {
> RPC_IFDEBUG(char buf[RPC_MAX_ADDRBUFLEN]);
> dprintk(KERN_WARNING
> "nfsd: request from insecure port %s!\n",
>
>
>
next prev parent reply other threads:[~2009-12-20 15:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-20 9:46 Problem with 2.6.33-rc1 and insecure flag Michael Guntsche
[not found] ` <20091220094625.GA2159-8FIgwK2HfyKMj3X28ACnv+Tv7YV0F9Eg@public.gmane.org>
2009-12-20 10:13 ` Muntz, Daniel
[not found] ` <7A24DF798E223B4C9864E8F92E8C93EC04EBFD3F-hX7t0kiaRRpT+ZUat5FNkAK/GNPrWCqfQQ4Iyu8u01E@public.gmane.org>
2009-12-20 15:46 ` J. Bruce Fields
2009-12-20 15:41 ` J. Bruce Fields [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-12-20 9:28 Michael Guntsche
2009-12-20 1:52 Michael Guntsche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091220154122.GA2841@fieldses.org \
--to=bfields@citi.umich.edu \
--cc=linux-nfs@vger.kernel.org \
--cc=mike-Z92qn3yYq0hWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.