linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rpc.mountd and character class matches
@ 2011-06-21 15:26 Jeff Layton
  2011-06-21 15:57 ` J. Bruce Fields
  2011-06-21 22:33 ` NeilBrown
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Layton @ 2011-06-21 15:26 UTC (permalink / raw)
  To: linux-nfs; +Cc: steved, bfields, neilb

I was writing up the manpage update for exports to include info about
IPv6 addressing, and made a mistake on my first pass. I put the IPv6
address in brackets. It turned out that this worked because mountd
treats stuff in brackets as a character class wildcard match.

This behavior is undocumented in the manpage and it doesn't seem to
work correctly, but it's hard to be sure as I'm not sure what correct
behavior is for this.

For instance, I have a host with a valid hostname (tlielax) in DNS on
my subnet, and when I put this in /etc/exports:

    /export [whiskeytangofoxtrot](rw)

...mountd allowed me to mount that. Normally a character class like
that should only match if you had a single-character hostname that
matches one of the characters in the brackets.

My question is -- do we want to continue to allow this sort of wildcard
match in mountd? Given that it's not documented, it's hard to imagine
anyone relying on it.

If we do want to keep it, what's the behavior we should be shooting for
here?

Thoughts?
-- 
Jeff Layton <jlayton@redhat.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-22  0:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21 15:26 rpc.mountd and character class matches Jeff Layton
2011-06-21 15:57 ` J. Bruce Fields
2011-06-21 22:33 ` NeilBrown
2011-06-22  0:55   ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).