Bug 1073384 - gfs2_grow changes mtab permissions to 600
Summary: gfs2_grow changes mtab permissions to 600
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gfs2-utils
Version: 5.11
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Andrew Price
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On: 1059853
Blocks: 1086861
TreeView+ depends on / blocked
 
Reported: 2014-03-06 10:33 UTC by Andrew Price
Modified: 2018-12-09 17:37 UTC (History)
15 users (show)

Fixed In Version: gfs2-utils-0.1.62-41.el5
Doc Type: Bug Fix
Doc Text:
After the gfs2_grow, gfs2_tool, gfs2_jadd, or gfs2_quota utilities cleaned up the /etc/mtab file, the file's permissions were changed from the default of 644 to 600. As a consequence, non-root processes could not read /etc/mtab. This update fixes the code that cleans up the /etc/mtab file so that it no longer modifies the /etc/mtab file's permissions. As a result, processes are able to access the /etc/mtab file as expected.
Clone Of: 1059853
Environment:
Last Closed: 2014-09-16 00:30:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch backported from RHEL6 (2.06 KB, patch)
2014-03-06 10:39 UTC, Andrew Price
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 787743 0 None None None Never
Red Hat Product Errata RHBA-2014:1203 0 normal SHIPPED_LIVE gfs2-utils bug fix update 2014-09-16 04:16:53 UTC

Comment 1 Andrew Price 2014-03-06 10:39:26 UTC
Created attachment 871329 [details]
Patch backported from RHEL6

This is the patch from RHEL6 which applies cleanly to the RHEL511 branch.

Comment 2 RHEL Program Management 2014-03-06 10:48:33 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 3 Andrew Price 2014-03-06 11:30:20 UTC
Testing without the above patch:

[root@hp-dl360g4-01 ~]# rpm -q gfs2-utils
gfs2-utils-0.1.62-39.el5
[root@hp-dl360g4-01 ~]# ls -l /etc/mtab
-rw-r--r-- 1 root root 358 Mar  6 06:21 /etc/mtab
[root@hp-dl360g4-01 ~]# gfs2_grow /mnt/test
Error: The device has grown by less than one Resource Group (RG).
The device grew by 0MB.  One RG is 255MB for this file system.
gfs2_grow complete.
[root@hp-dl360g4-01 ~]# ls -l /etc/mtab
-rw------- 1 root root 358 Mar  6 06:21 /etc/mtab

With the patch:

[root@hp-dl360g4-01 ~]# ls -l /etc/mtab
-rw-r--r-- 1 root root 358 Mar  6 06:26 /etc/mtab
[root@hp-dl360g4-01 ~]# gfs2_grow /mnt/test
Error: The device has grown by less than one Resource Group (RG).
The device grew by 0MB.  One RG is 255MB for this file system.
gfs2_grow complete.
[root@hp-dl360g4-01 ~]# ls -l /etc/mtab
-rw-r--r-- 1 root root 358 Mar  6 06:26 /etc/mtab

I've pushed the patch to cluster.git/RHEL511

Comment 16 errata-xmlrpc 2014-09-16 00:30:19 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.

http://rhn.redhat.com/errata/RHBA-2014-1203.html


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