Red Hat Bugzilla – Bug 177525
/etc/mtab and /proc/mounts displays rw even when mounted as ro
Last modified: 2007-11-30 17:07:22 EST
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):
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.
Files indicate a read/write NFS share.
Files should indicate a read-only share.
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.
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.
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
*** This bug has been marked as a duplicate of 163532 ***