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.
Created attachment 871329[details]
Patch backported from RHEL6
This is the patch from RHEL6 which applies cleanly to the RHEL511 branch.
Comment 2RHEL 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.
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
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
Created attachment 871329 [details] Patch backported from RHEL6 This is the patch from RHEL6 which applies cleanly to the RHEL511 branch.