From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Patchwork cleanup #8: submitter notification
Date: Wed, 30 Apr 2014 19:40:48 +0200 [thread overview]
Message-ID: <20140430194048.1e070625@skate> (raw)
In-Reply-To: <20140430165659.GA3336@free.fr>
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
next prev parent reply other threads:[~2014-04-30 17:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-29 19:48 [Buildroot] Patchwork cleanup #8: submitter notification Thomas De Schampheleire
2014-04-29 20:25 ` Danomi Manchego
2014-04-29 21:09 ` Yann E. MORIN
2014-04-29 22:52 ` Thomas Petazzoni
2014-04-30 16:56 ` Yann E. MORIN
2014-04-30 17:40 ` Thomas Petazzoni [this message]
2014-04-30 18:05 ` Yann E. MORIN
2014-04-30 5:19 ` Arnout Vandecappelle
2014-04-30 19:19 ` sergey kostanbaev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140430194048.1e070625@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox