Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] permissions of downloaded source
Date: Sat, 2 Aug 2014 21:07:56 +0200	[thread overview]
Message-ID: <20140802190755.GA3806@free.fr> (raw)
In-Reply-To: <CANxTyt7OFibLhjuXH1fVZmxuPE5ky1yMsWG98DDyq=6tw=Scgw@mail.gmail.com>

Danomi, All,

On 2014-08-02 14:55 -0400, Danomi Manchego spake thusly:
> Apologies if this was already addressed - I didn't follow all of the
> download helper re-org threads ...

Yes, the permission problem is already known, and I have sybmitted a new
series to fix this, and further enhance the download support, see;
    http://lists.busybox.net/pipermail/buildroot/2014-July/thread.html#102526

> Using mktemp in the download help scripts means that downloaded
> archives have 600 permissions.  On purpose?  This seems not so good
> when groups use a shared "dl" directory.  Maybe these lines in the
> download helper scripts:
> 
> mv "${tmp_output}" "${output}"
> 
> should be:
> 
> install -m0644 "${tmp_output}" "${output}"

Although it seems OK at first sight, it misses a few corner cases.

First, the user's umask is not accounted for in the above. We do not
want to create files with more permissive permissions than the user
decided with his umask.

Second, the local-files download helper may have to copy files with the
executable bit set, and this is also missing in the install command
above.

Those two are handled in the series I posted. It is still open for
comments, though, so feel free to reply to it. ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

      reply	other threads:[~2014-08-02 19:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02 18:55 [Buildroot] permissions of downloaded source Danomi Manchego
2014-08-02 19:07 ` Yann E. MORIN [this message]

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=20140802190755.GA3806@free.fr \
    --to=yann.morin.1998@free.fr \
    --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