Bug 177525 - /etc/mtab and /proc/mounts displays rw even when mounted as ro
Summary: /etc/mtab and /proc/mounts displays rw even when mounted as ro
Keywords:
Status: CLOSED DUPLICATE of bug 163532
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: util-linux
Version: 4.0
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Karel Zak
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: 176344
TreeView+ depends on / blocked
 
Reported: 2006-01-11 15:12 UTC by Mark Gray
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-21 10:01:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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