From: Darren Hart <dvhart@linux.intel.com>
To: Paul Eggleton <paul.eggleton@intel.com>
Cc: poky@yoctoproject.org
Subject: Re: [PATCH 01/14] openssl-native: disable execstack flag to prevent problems with SELinux
Date: Wed, 15 Dec 2010 11:28:52 -0800 [thread overview]
Message-ID: <4D0916F4.9060703@linux.intel.com> (raw)
In-Reply-To: <c5ab4d56f97a0e45b124d40c9f536541be04c201.1292430240.git.josh@linux.intel.com>
On 11/17/2010 03:37 AM, Paul Eggleton wrote:
> The execstack flag gets set on libcrypto.so by default which causes SELinux
> to prevent it from being loaded on systems using SELinux, which includes
> Fedora. This patch disables the execstack flag. (Note: Red Hat do this in
> their openssl packaging.)
>
> Signed-off-by: Paul Eggleton<paul.eggleton@linux.intel.com>
> ---
> meta/recipes-connectivity/openssl/openssl.inc | 6 +++++-
> .../recipes-connectivity/openssl/openssl_0.9.8o.bb | 2 +-
> 2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
> index 11dd1e5..dc2ff3e 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -15,7 +15,11 @@ S = "${WORKDIR}/openssl-${PV}"
>
> AR_append = " r"
> CFLAG = "${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \
> - -DTERMIO ${FULL_OPTIMIZATION} -Wall"
> + -DTERMIO ${FULL_OPTIMIZATION}"
Why do we need to remove -Wall? Doesn't that reduce our visibility into
potential issues?
> +
> +# Avoid binaries being marked as requiring an executable stack (which causes
> +# issues with SELinux on the host)
> +CFLAG_append_virtclass-native = " -Wa,--noexecstack"
>
> # -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom
> CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}"
> diff --git a/meta/recipes-connectivity/openssl/openssl_0.9.8o.bb b/meta/recipes-connectivity/openssl/openssl_0.9.8o.bb
> index 31c5568..aa11cdf 100644
> --- a/meta/recipes-connectivity/openssl/openssl_0.9.8o.bb
> +++ b/meta/recipes-connectivity/openssl/openssl_0.9.8o.bb
> @@ -1,6 +1,6 @@
> require openssl.inc
>
> -PR = "r0"
> +PR = "r1"
> SRC_URI += "file://debian/ca.patch \
> file://debian/config-hurd.patch;apply=no \
> file://debian/debian-targets.patch \
--
Darren Hart
Yocto Linux Kernel
next prev parent reply other threads:[~2010-12-15 19:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-15 16:24 [PATCH 00/14] [Laverne 4.0] Fixes for building on Fedora 14 Joshua Lock
2010-12-14 12:21 ` [PATCH 06/14] busybox: additional fixes for Make 3.82 Joshua Lock
2010-12-14 12:49 ` [PATCH 07/14] linux-libc-headers: fix " Joshua Lock
2010-12-14 15:39 ` [PATCH 08/14] gstreamer: fix to comply with make 3.82's stricter parser Joshua Lock
2010-12-14 17:56 ` [PATCH 09/14] gst-plugins: fix for make 3.82 Joshua Lock
2010-12-14 18:29 ` [PATCH 10/14] libowl-av: fix for Make 3.82 Joshua Lock
2010-12-15 12:27 ` [PATCH 11/14] owl-video-widget: fix Makefile for super strict make 3.82 Joshua Lock
2010-12-21 18:15 ` Kamble, Nitin A
2010-12-22 11:34 ` Joshua Lock
2010-12-15 12:58 ` [PATCH 12/14] dates: fix for Make 3.82 Joshua Lock
2010-12-15 13:42 ` [PATCH 13/14] contacts: fix for make 3.82 Joshua Lock
2010-12-15 14:31 ` [PATCH 14/14] web-webkit: " Joshua Lock
2010-12-15 16:28 ` [PATCH 02/14] qemu: fix failure to find zlib header files during configure Paul Eggleton
2010-12-15 16:28 ` [PATCH 01/14] openssl-native: disable execstack flag to prevent problems with SELinux Paul Eggleton
2010-12-15 19:28 ` Darren Hart [this message]
2010-12-16 9:49 ` Paul Eggleton
2010-12-16 15:45 ` Joshua Lock
2010-12-15 16:28 ` [PATCH 04/14] busybox: import upstream patch for make 3.82 Joshua Lock
2010-12-15 16:28 ` [PATCH 03/14] eglibc: fix build of eglibc-initial " Joshua Lock
2010-12-15 16:28 ` [PATCH 05/14] procps: fix for build against " Joshua Lock
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=4D0916F4.9060703@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=paul.eggleton@intel.com \
--cc=poky@yoctoproject.org \
/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.