On Wed, Nov 12, 2025 at 9:36 PM Nikhil R via lists.openembedded.org
<[email protected]> wrote:

> Remove the runpath embedded in libprotobuf.so.31.1.0 by setting
> CMAKE_SKIP_INSTALL_RPATH=ON
> CMAKE_SKIP_BUILD_RPATH=ON
>
> The embedded runpath can easily enable an attacker
> to get malicious code executed if there is some issue
> with the file permissions at the specified location.
>
> Signed-off-by: Nikhil R <[email protected]>
> Signed-off-by: Sana Kazi <[email protected]>
> ---
>  meta-oe/recipes-devtools/protobuf/protobuf_6.31.1.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_6.31.1.bb
> b/meta-oe/recipes-devtools/protobuf/protobuf_6.31.1.bb
> index 90be1179aa..7479574d93 100644
> --- a/meta-oe/recipes-devtools/protobuf/protobuf_6.31.1.bb
> +++ b/meta-oe/recipes-devtools/protobuf/protobuf_6.31.1.bb
> @@ -42,6 +42,8 @@ EXTRA_OECMAKE += "\
>      -Dprotobuf_BUILD_EXAMPLES=OFF \
>      -Dprotobuf_ABSL_PROVIDER="package" \
>      -Dprotobuf_JSONCPP_PROVIDER="package" \
> +    -DCMAKE_SKIP_INSTALL_RPATH=ON  \
> +    -DCMAKE_SKIP_BUILD_RPATH=ON \
>  "
>

This breaks ptest build. see

https://autobuilder.yoctoproject.org/valkyrie/api/v2/logs/4142742/raw_inline

You have to add 'ptest' to DISTRO_FEATURES to reproduce it.


>
>  TEST_SRC_DIR = "examples"
> --
> 2.34.1
>
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121654): 
https://lists.openembedded.org/g/openembedded-devel/message/121654
Mute This Topic: https://lists.openembedded.org/mt/116270151/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to