Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/4] Allow Busybox installation as individual binaries
@ 2017-03-26 21:43 Thomas Petazzoni
  2017-03-26 21:43 ` [Buildroot] [PATCH 1/4] system: do not overwrite /bin/sh Busybox symlink Thomas Petazzoni
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2017-03-26 21:43 UTC (permalink / raw)
  To: buildroot

Hello,

For SELinux, we need to be able to use the Busybox installation mode
of "one binary per applet". So, this patch series allows the Busybox
package to use this option.

However, this requires some preparation, due to two different aspects:

 1. In terms of permissions, it is no longer as easy as making
    /bin/busybox SUID root. We want only the actual applets that need
    to be SUID to be SUID, and therefore the list of files that should
    be SUID root is now generated depending on the Busybox
    configuration, thanks to the addition of the support for
    <pkg>_PERMISSIONS_FILE to the package infrastruture (implemented
    by Yann E. Morin)

 2. The /bin/sh symlink is normally created to point to /bin/busybox,
    which does not exist when using this "individual binary"
    mode. Therefore, a patch also tweaks the /bin/sh logic to not
    overwrite the /bin/sh implementation of Busybox.

I've runtime tested this on an ARM platform, and it works for me. I'm
not super interested by this feature personaly, but it's been waiting
in patchwork for ages, so it's time to do something with it. If too
much rework is requested, I'll just drop the patches and mark them as
Rejected.

Best regards,

Thomas

Clayton Shotwell (1):
  busybox: applets as individual binaries

Thomas Petazzoni (1):
  system: do not overwrite /bin/sh Busybox symlink

Yann E. MORIN (2):
  core: allow packages to declare a permission file
  docs/manual: document FOO_PERMISSIONS_FILE

 docs/manual/adding-packages-generic.txt |  8 +++++++-
 fs/common.mk                            |  3 +++
 package/busybox/Config.in               | 16 ++++++++++++++++
 package/busybox/busybox.mk              | 28 ++++++++++++++++++++++++++++
 package/pkg-generic.mk                  |  1 +
 package/skeleton/skeleton.mk            |  2 ++
 system/Config.in                        |  1 -
 7 files changed, 57 insertions(+), 2 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2017-07-03 16:11 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-26 21:43 [Buildroot] [PATCH 0/4] Allow Busybox installation as individual binaries Thomas Petazzoni
2017-03-26 21:43 ` [Buildroot] [PATCH 1/4] system: do not overwrite /bin/sh Busybox symlink Thomas Petazzoni
2017-03-27 16:43   ` Matthew Weber
2017-03-28 21:30   ` Arnout Vandecappelle
2017-03-29 21:29   ` Thomas Petazzoni
2017-03-26 21:43 ` [Buildroot] [PATCH 2/4] core: allow packages to declare a permission file Thomas Petazzoni
2017-03-27 16:44   ` Matthew Weber
2017-03-28 22:12   ` Arnout Vandecappelle
2017-03-29  6:43     ` Arnout Vandecappelle
2017-07-03 16:03       ` Arnout Vandecappelle
2017-07-03 16:11         ` Arnout Vandecappelle
2017-03-26 21:43 ` [Buildroot] [PATCH 3/4] docs/manual: document FOO_PERMISSIONS_FILE Thomas Petazzoni
2017-03-27 16:44   ` Matthew Weber
2017-03-26 21:43 ` [Buildroot] [PATCH 4/4] busybox: applets as individual binaries Thomas Petazzoni
2017-03-27 16:39   ` Matthew Weber

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