* [OE-core][master][PATCH] android-tools: Enable position-independent executable
@ 2024-02-22 12:55 Pawan
2024-02-22 13:02 ` Pawan Badganchi
2024-02-22 13:11 ` [oe] " Martin Jansa
0 siblings, 2 replies; 4+ messages in thread
From: Pawan @ 2024-02-22 12:55 UTC (permalink / raw)
To: openembedded-devel, badganchipv; +Cc: ranjitsinh.rathod
Enable position-independent executable security flag for adb
and fastboot. Verified that flag is enabled by using checksec.py
Upstream-Status: Pending
Signed-off-by: Pawan <badganchipv@gmail.com>
---
.../recipes-devtool/android-tools/android-tools_29.0.6.r14.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
index fbad5e136..6ec90c2f5 100644
--- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
+++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
@@ -77,6 +77,8 @@ PREREQUISITE_core = "liblog libbase libsparse liblog libcutils"
TOOLS_TO_BUILD = "libcrypto_utils libadb libziparchive fastboot adb img2simg simg2img libbacktrace"
TOOLS_TO_BUILD:append:class-target = " adbd"
+SECURITY_CFLAGS:append:aarch64 = " -pie -fPIE"
+
do_compile() {
case "${HOST_ARCH}" in
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [OE-core][master][PATCH] android-tools: Enable position-independent executable
2024-02-22 12:55 [OE-core][master][PATCH] android-tools: Enable position-independent executable Pawan
@ 2024-02-22 13:02 ` Pawan Badganchi
2024-02-22 13:11 ` [oe] " Martin Jansa
1 sibling, 0 replies; 4+ messages in thread
From: Pawan Badganchi @ 2024-02-22 13:02 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 27 bytes --]
Please ignore this patch.
[-- Attachment #2: Type: text/html, Size: 27 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [oe] [OE-core][master][PATCH] android-tools: Enable position-independent executable
2024-02-22 12:55 [OE-core][master][PATCH] android-tools: Enable position-independent executable Pawan
2024-02-22 13:02 ` Pawan Badganchi
@ 2024-02-22 13:11 ` Martin Jansa
2024-02-22 13:13 ` Pawan Badganchi
1 sibling, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2024-02-22 13:11 UTC (permalink / raw)
To: Pawan Badganchi; +Cc: openembedded-devel, ranjitsinh.rathod
[-- Attachment #1: Type: text/plain, Size: 1894 bytes --]
[OE-core] tag doesn't belong to subject for meta-oe patches, use [meta-oe]
instead.
Upstream-Status belongs to .patch files in the metadata, not to commit
message of metadata changes.
On Thu, Feb 22, 2024 at 1:56 PM Pawan Badganchi <badganchipv@gmail.com>
wrote:
> Enable position-independent executable security flag for adb
> and fastboot. Verified that flag is enabled by using checksec.py
>
> Upstream-Status: Pending
>
> Signed-off-by: Pawan <badganchipv@gmail.com>
> ---
> .../recipes-devtool/android-tools/android-tools_29.0.6.r14.bb | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/
> android-tools_29.0.6.r14.bb
> b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/
> android-tools_29.0.6.r14.bb
> index fbad5e136..6ec90c2f5 100644
> --- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/
> android-tools_29.0.6.r14.bb
> +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/
> android-tools_29.0.6.r14.bb
> @@ -77,6 +77,8 @@ PREREQUISITE_core = "liblog libbase libsparse liblog
> libcutils"
> TOOLS_TO_BUILD = "libcrypto_utils libadb libziparchive fastboot adb
> img2simg simg2img libbacktrace"
> TOOLS_TO_BUILD:append:class-target = " adbd"
>
> +SECURITY_CFLAGS:append:aarch64 = " -pie -fPIE"
> +
> do_compile() {
>
> case "${HOST_ARCH}" in
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#108983):
> https://lists.openembedded.org/g/openembedded-devel/message/108983
> Mute This Topic: https://lists.openembedded.org/mt/104507422/3617156
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 3238 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core][master][PATCH] android-tools: Enable position-independent executable
2024-02-22 13:11 ` [oe] " Martin Jansa
@ 2024-02-22 13:13 ` Pawan Badganchi
0 siblings, 0 replies; 4+ messages in thread
From: Pawan Badganchi @ 2024-02-22 13:13 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 34 bytes --]
Thank you, but ignore this patch
[-- Attachment #2: Type: text/html, Size: 34 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-22 13:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-22 12:55 [OE-core][master][PATCH] android-tools: Enable position-independent executable Pawan
2024-02-22 13:02 ` Pawan Badganchi
2024-02-22 13:11 ` [oe] " Martin Jansa
2024-02-22 13:13 ` Pawan Badganchi
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.