diff options
author | Paul Eggleton <paul.eggleton@intel.com> | 2010-11-17 11:37:47 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-09 12:37:11 +0000 |
commit | 089612794d4d8d9c79bd2a4365d6df78371f7f40 (patch) | |
tree | 8f97e7334a56612315f3757cd8e2403f4ff47409 /meta/recipes-connectivity/openssl/openssl.inc | |
parent | 0f716e64c4f46ae483797f0536f1c63f3c247ef1 (diff) | |
download | poky-089612794d4d8d9c79bd2a4365d6df78371f7f40.tar.gz |
openssl-native: disable execstack flag to prevent problems with SELinux
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>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl.inc')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc index da90456928..5cc5732469 100644 --- a/meta/recipes-connectivity/openssl/openssl.inc +++ b/meta/recipes-connectivity/openssl/openssl.inc | |||
@@ -15,7 +15,11 @@ S = "${WORKDIR}/openssl-${PV}" | |||
15 | 15 | ||
16 | AR_append = " r" | 16 | AR_append = " r" |
17 | CFLAG = "${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \ | 17 | CFLAG = "${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \ |
18 | -DTERMIO ${FULL_OPTIMIZATION} -Wall" | 18 | -DTERMIO ${FULL_OPTIMIZATION}" |
19 | |||
20 | # Avoid binaries being marked as requiring an executable stack (which causes | ||
21 | # issues with SELinux on the host) | ||
22 | CFLAG_append_virtclass-native = " -Wa,--noexecstack" | ||
19 | 23 | ||
20 | # -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom | 24 | # -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom |
21 | CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}" | 25 | CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}" |