[Buildroot] Patchwork cleanup #8: submitter notification

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Apr 30 17:40:48 UTC 2014


Dear Yann E. MORIN,

On Wed, 30 Apr 2014 18:56:59 +0200, Yann E. MORIN wrote:

> > We do a "chown -R 0:0" on all files in the root filesystem, before
> > taking into account device tables. So I don't see how an ownership on
> > the build machine can leak into the generated root filesystem.
> 
> chown does not change the ownership of a symlink, only that of the
> pointed-to entity:
> 
>     $ touch titi
>     $ ln -s titi toto
>     $ sudo chown root:root toto
>     $ ls -l titi toto
>     -rw-r--r-- 1 root   root   0 Apr 30 18:55 titi
>     lrwxrwxrwx 1 ymorin ymorin 4 Apr 30 18:55 toto -> titi
> 
> So the symlink's ownership is not modified.

Should we do a chown -h -R 0:0 then?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list