Skip to contentSkip to conversation

protobuf: Remove embedded runpath

PATCH In review Nitin Wankhade 3 participants 3 messages Sep 23, 2025 – Nov 4, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 protobuf: Remove embedded runpath

From: Sana Kazi <[email protected]>

Remove the runpath embedded in libprotobuf.so.25.8.0 by setting DCMAKE_SKIP_INSTALL_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.

---
 meta-oe/recipes-devtools/protobuf/protobuf_4.25.8.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/protobuf/protobuf_4.25.8.bb +1 -0
index e54dffd2cd..51f9b8c255 100644
@@ -37,6 +37,7 @@ EXTRA_OECMAKE += "\
     -Dprotobuf_BUILD_TESTS=OFF \
     -Dprotobuf_BUILD_EXAMPLES=OFF \
     -Dprotobuf_ABSL_PROVIDER="package" \
+    -DCMAKE_SKIP_INSTALL_RPATH=ON \
 "
 
 TEST_SRC_DIR = "examples"
Signature · 1 line
2.34.1
#1 lore raw

Hi Anuj,

Could you please consider this patch for integration into Scarthgap? Please let me know if you have any feedback.

#2 lore raw
Quoted 5 lines · Nikhil R via lists.openembedded.org

Hi Anuj,

Could you please consider this patch for integration into Scarthgap? Please let me know if you have any feedback.

It looks that this isn't in master branch. If it is applicable to master, it should go there first. If it isn't, could you please include some note about this in the commit message?