All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] Config.in: enable PIC/PIE, RELRO and SSP by default
Date: Sat, 26 Oct 2019 08:49:21 +0200	[thread overview]
Message-ID: <87o8y4gfwu.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20191025220446.7e21071d@windsurf.dhcp.lyon.intranet> (Thomas Petazzoni's message of "Fri, 25 Oct 2019 22:04:45 +0200")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > On Fri, 25 Oct 2019 21:54:56 +0200
 > Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

 >> Enhance security by enabling PIC/PIE, RELRO and SSP by default.
 >> 
 >> This could help making IoT more secure and fight againt the assumption
 >> that buildroot does not support binary hardening (see
 >> https://cyber-itl.org/2019/08/26/iot-data-writeup.html)
 >> 
 >> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 > I'm not sure we're ready to do that. A first step would be to add some
 > randomization in the autobuilders to test those features (by improving
 > ./utils/genrandconfig). This will allow us to test that enabling those
 > features doesn't break too many packages. Then we can discuss at
 > enabling it by default, even though I find that it kind of breaks the
 > logic that Buildroot does something minimal/basic by default.

I agree that it makes sense to do some more testing first, but as a data
point, I do enable SSP_REGULAR / RELRO_PARTIAL / FORTIFY_SOURCE_1
without issues on the project I'm currently working on.

And yes, Buildroot normally does the most minimal thing out of the box,
but defaults also matter when we talk about these "complicated" security
related things.

We have done similar things in the past, E.G. the change of password
encoding algorithm:

commit 9cf2280846b60ba081ed21339b407e2c761b599d
Author: Matt Weber <matthew.weber@rockwellcollins.com>
Date:   Wed Dec 5 20:06:28 2018 -0600

    system cfg: set mkpasswd default to SHA256

    This patch changes the default mkpasswd method to SHA256 from MD5.
    The change both improves the quality of the hash used and prepares
    for eventually removing MD5 as a option.

    Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
    Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
    Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

But lets not rush things.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2019-10-26  6:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-25 19:54 [Buildroot] [PATCH 1/1] Config.in: enable PIC/PIE, RELRO and SSP by default Fabrice Fontaine
2019-10-25 20:04 ` Thomas Petazzoni
2019-10-26  6:49   ` Peter Korsgaard [this message]
2019-10-26  8:44     ` Fabrice Fontaine
2019-10-26 13:07 ` Thomas Petazzoni

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=87o8y4gfwu.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.