protobuf: Remove embedded runpath
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
@@ -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
Hi Anuj,
Could you please consider this patch for integration into Scarthgap? Please let me know if you have any feedback.
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?