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 \ " TEST_SRC_DIR = "examples" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#121597): https://lists.openembedded.org/g/openembedded-devel/message/121597 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]] -=-=-=-=-=-=-=-=-=-=-=-
