Red Hat Bugzilla – Bug 764358
nfs.rpc-auth-allow/reject accepts invalid ip address.
Last modified: 2013-01-08 09:53:09 EST
gaurav@gaurav-Vostro-3400:~/new_gluster$ sudo gluster volume set new_vol2 nfs.rpc-auth-reject 000
Set volume successful
*** Bug 2935 has been marked as a duplicate of this bug. ***
Why couldn't this fix have been incorporated into GlusterFS 3.2.3 released on 23-Aug-2011?
Reopening, Patch not commited.
Planing to keep 3.4.x branch as "internal enhancements" release without any features. So moving these bugs to 3.4.0 target milestone.
*** Bug 783110 has been marked as a duplicate of this bug. ***
Can you please confirm if this still exists? If not, please close this bug.
The ip address validations occur correctly now.
Regarding the example used here, the value '000' is treated as a hostname and will be validated successfully.
Amazingly, this problem *still* is not fixed in GlusterFS
version 3.2.7, and presumably not in 3.2.6 either.
The bug is that you are using strtok_r() which modifies the
input param without first using strdup() to make a private
version of the string.
You fixed this way back in 2011-05-24, but seem unable
to carry this fix over to later releases:
Patchwork [BUG:2935] NFS rpc auth: handle multiple host/ip args
Submitter shishir gowda
Date 2011-05-24 11:03:51