RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1341908 - rpc.mountd does not check for membership of IP addresses in netgroups if the IP is resolvable
Summary: rpc.mountd does not check for membership of IP addresses in netgroups if the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On: 1231998
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-02 02:20 UTC by Yongcheng Yang
Modified: 2016-11-04 05:04 UTC (History)
4 users (show)

Fixed In Version: nfs-utils-1.3.0-0.29.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1231998
Environment:
Last Closed: 2016-11-04 05:04:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2383 0 normal SHIPPED_LIVE nfs-utils bug fix and enhancement update 2016-11-03 13:53:02 UTC

Description Yongcheng Yang 2016-06-02 02:20:16 UTC
+++ This bug was initially created as a clone of Bug #1231998 +++

Description of problem:

If a netgroup entry specifies an IP address, and that IP address can be resolved to a name, the current match code only tests whether the canonical name and any aliases are in the netgroup, and does not test whether the IP address is in the netgroup.

If the IP address does not resolve to a name, the IP does get checked for membership in the netgroup, as expected.

As far as I can tell, this affects all versions of nfs-utils, including upstream.


Version-Release number of selected component (if applicable):

nfs-utils-1.2.3-54.el6.x86_64 (though appears to affect all versions)


How reproducible:

reproducer below


Steps to Reproduce:

/etc/netgroup:
test_netgroup	(127.0.0.1,-,-)

/etc/exports:
/data2		@test_netgroup(rw,sync)

# mkdir /data2
# mkdir -p /mnt/test
# exportfs -a
# mount localhost:/data2 /mnt/test


Actual results:

mount.nfs: access denied by server while mounting localhost:/data2

(this will fail, assuming that there's a localhost entry in /etc/hosts)


Expected results:

mount succeeds


Additional info:

I took a first crack at a patch for support/export/client.c.  It works, but probably needs fixing.

Comment 2 Yongcheng Yang 2016-06-02 02:27:08 UTC
According to bug 1231998 comment 10, need two upstream commits:

commit 4b5bd85481a45957122357feebfcd514550fc219
Author: Frank Sorenson <sorenson>
Date:   Wed Dec 16 10:12:38 2015 -0500

    mountd: fix netgroup lookup for short hostnames

commit 9a92ef6f194926904b1289e0ce1daecb42bd5e8b
Author: Frank Sorenson <sorenson>
Date:   Mon Nov 2 08:31:29 2015 -0500

    mountd: fix netgroup lookup for resolvable IP addresses

Comment 6 Yongcheng Yang 2016-06-12 01:58:38 UTC
Move to VERIFIED according to comment 5 and continue to run the automatic case.

Comment 8 errata-xmlrpc 2016-11-04 05:04:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2383.html


Note You need to log in before you can comment on or make changes to this bug.