* [Buildroot] permissions of downloaded source
@ 2014-08-02 18:55 Danomi Manchego
2014-08-02 19:07 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Danomi Manchego @ 2014-08-02 18:55 UTC (permalink / raw)
To: buildroot
Yann,
Apologies if this was already addressed - I didn't follow all of the
download helper re-org threads ...
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}"
?
Danomi -
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] permissions of downloaded source
2014-08-02 18:55 [Buildroot] permissions of downloaded source Danomi Manchego
@ 2014-08-02 19:07 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2014-08-02 19:07 UTC (permalink / raw)
To: buildroot
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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-02 19:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-02 18:55 [Buildroot] permissions of downloaded source Danomi Manchego
2014-08-02 19:07 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox