[lorax] Set permissions on the initrd (#863018)

Vratislav Podzimek vpodzime at redhat.com
Mon Oct 8 10:56:42 UTC 2012


Looks good to me.

On Mon, 2012-10-08 at 12:37 +0200, Martin Gracik wrote:
> Dracut now makes the initrd with 600 permissions
> for security reasons. These reasons do not apply
> to install images, and we want the other tools
> that use lorax to be able to read the initrd file.
> ---
>  src/pylorax/ltmpl.py |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/pylorax/ltmpl.py b/src/pylorax/ltmpl.py
> index a391a90..3dda557 100644
> --- a/src/pylorax/ltmpl.py
> +++ b/src/pylorax/ltmpl.py
> @@ -302,6 +302,7 @@ class LoraxTemplateRunner(object):
>            Same as installkernel, but for "initrd".
>          '''
>          self.install(src, dest)
> +        self.chmod(dest, '644')
>          self.treeinfo(section, "initrd", dest)
>  
>      def hardlink(self, src, dest):

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list