Bug 177525

Summary: /etc/mtab and /proc/mounts displays rw even when mounted as ro
Product: Red Hat Enterprise Linux 4 Reporter: Mark Gray <mark.gray>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-21 10:01:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 176344    

Description Mark Gray 2006-01-11 15:12:56 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050323 Firefox/1.0.2 Red Hat/1.0.2-1.4.1

Description of problem:
When mounting an NFS ro export and specifying the mount type as rw from the client. The mount appears to be correctly mounted as read-only. However in the /etc/mtab and /proc/mounts files, the mount is seen to be rw. Is this a feature or a bug?

Version-Release number of selected component (if applicable):
util-linux-2.12a

How reproducible:
Always

Steps to Reproduce:
1. Export folder as read-only on NFS server.
2. Attempt to mount from cNFS client as read/write
3. Attempt to "touch" a file from the NFS client, confirming a read-only mount.
4. View the /etc/mtab and /proc/mounts files.

Actual Results:  
Files indicate a read/write NFS share.

Expected Results:  
Files should indicate a read-only share.

Additional info:


Not certain if this is a feature or a bug. IMHO, it should state that the share is mounted as read-only even if the user specified read/write.

Comment 1 Karel Zak 2006-06-26 12:00:16 UTC
I think the /proc/mounts should be indicate the right state (ro). The problem
with /etc/mtab is known problem and it's limitation of implementation (which is
described it in the latest version of mount man page).

We should update RHEL4 mount(8) man page and sync it with RHEL3 and FC5|6.

Comment 2 RHEL Program Management 2006-08-18 16:48:34 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 3 Karel Zak 2006-08-21 10:01:07 UTC

*** This bug has been marked as a duplicate of 163532 ***