Re: [PATCH rhel6-branch] Set context on files as well as directories (#685090).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack.

Chris Lumens <clumens@xxxxxxxxxx> wrote:

> This fixes a problem introduced by 6627aefc2e4b7320cd367b5034ab5b8396109050.
> ---
>  packages.py |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/packages.py b/packages.py
> index a866e0d..4e786be 100644
> --- a/packages.py
> +++ b/packages.py
> @@ -243,9 +243,11 @@ def setFileCons(anaconda):
>                  glob.glob('/etc/dhcp/dhclient-*.conf')
>  
>          vgs = ["/dev/%s" % vg.name for vg in anaconda.id.storage.vgs]
> +        for f in files + vgs:
> +            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" ] + vgs:
> +        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" ]:
>              if not os.path.isdir(anaconda.rootPath + d):
>                  continue
>  
> -- 
> 1.7.4.1
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
David Cantrell <dcantrell@xxxxxxxxxx>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Honolulu, HI | UTC-10

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux