Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RFC/PATCH] target permissions
@ 2014-11-03 12:42 Guido Martínez
  2014-11-03 12:42 ` [Buildroot] [RFC/PATCH] Makefile: guarantee reproducible permissions Guido Martínez
  2014-11-07  3:50 ` [Buildroot] [PATCH v2 0/5] target permissions Guido Martínez
  0 siblings, 2 replies; 15+ messages in thread
From: Guido Martínez @ 2014-11-03 12:42 UTC (permalink / raw)
  To: buildroot

Hi guys,

This patch solves the variablity on target permissions on different
hosts/repos. We should never depend on the umask at any time now.

The default umask was chosen to be 022 since some packages install
binaries on the target rootfs with plain mkdir/cp, so a more permissive
one like 000 would make those binaries world-writable. The --chmod on
rsync behaves similarly to having this same umask.

For the overlay, exceptions to this permission set should be specified
as a device table. The one possible regression I can think of if if
someone uses a pre-build script to set correct permissions on the
overlay before building: those permissions will be reset to 644/755 just
before image creation.

However, if that's not the case I think everything should run smoothly.
Custom permissions set by package makefiles should be respected (unless
overlayed).

Guido Mart?nez (1):
  Makefile: guarantee reproducible permissions

 Makefile                         | 7 ++++---
 support/scripts/shell-wrapper.sh | 5 +++++
 2 files changed, 9 insertions(+), 3 deletions(-)
 create mode 100755 support/scripts/shell-wrapper.sh

-- 
2.1.1

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-11-07 13:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-03 12:42 [Buildroot] [RFC/PATCH] target permissions Guido Martínez
2014-11-03 12:42 ` [Buildroot] [RFC/PATCH] Makefile: guarantee reproducible permissions Guido Martínez
2014-11-03 22:23   ` Arnout Vandecappelle
2014-11-03 22:31     ` Ezequiel Garcia
2014-11-05 14:46     ` Guido Martínez
2014-11-05 15:51       ` Angelo Compagnucci
2014-11-07 13:57         ` Guido Martínez
2014-11-07  3:50 ` [Buildroot] [PATCH v2 0/5] target permissions Guido Martínez
2014-11-07  3:50   ` [Buildroot] [PATCH v2 1/5] Makefile: don't depend on the umask Guido Martínez
2014-11-07  3:50   ` [Buildroot] [PATCH v2 2/5] Makefile: don't depend on current skeleton/overlay permissions Guido Martínez
2014-11-07  3:50   ` [Buildroot] [PATCH v2 3/5] pkg-generic.mk: don't depend on external package permissions Guido Martínez
2014-11-07  3:50   ` [Buildroot] [PATCH v2 4/5] package: matchbox-keyboard: use install instead of cp Guido Martínez
2014-11-07  3:50   ` [Buildroot] [PATCH v2 5/5] package: linux-fusion: " Guido Martínez
2014-11-07 12:44     ` Danomi Manchego
2014-11-07 13:16       ` Guido Martínez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox