[rhel6-branch] Set proper SELinux context of /etc/multipath. (#919409)
Vratislav Podzimek
vpodzime at redhat.com
Wed Jul 3 07:44:50 UTC 2013
On Tue, 2013-07-02 at 10:14 -0400, Samantha N. Bueno wrote:
> Resolves: rhbz#919409
> ---
> packages.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/packages.py b/packages.py
> index 5144916..db28c2c 100644
> --- a/packages.py
> +++ b/packages.py
> @@ -247,7 +247,7 @@ def setFileCons(anaconda):
> isys.resetFileContext(os.path.normpath(f), anaconda.rootPath)
>
> # ugh, this is ugly
> - for d in ["/etc/sysconfig/network-scripts", "/var/cache/yum", "/var/lib/rpm", "/var/lib/yum", "/etc/lvm", "/dev/mapper", "/etc/iscsi", "/var/lib/iscsi", "/root", "/var/log", "/etc/modprobe.d", "/etc/sysconfig" ]:
> + for d in ["/etc/sysconfig/network-scripts", "/var/cache/yum", "/var/lib/rpm", "/var/lib/yum", "/etc/lvm", "/dev/mapper", "/etc/iscsi", "/var/lib/iscsi", "/root", "/var/log", "/etc/modprobe.d", "/etc/sysconfig", "/etc/multipath" ]:
> if not os.path.isdir(anaconda.rootPath + d):
> continue
I'd love to see the list split in multiple lines, but ACK in either
case.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list