1
我在我的程序中使用dlopen()API打開共享對象。但是,得到如下錯誤:在dlopen()API中拒絕的權限API
cannot restore segment prot after reloc: Permission denied
我在我的程序中使用dlopen()API打開共享對象。但是,得到如下錯誤:在dlopen()API中拒絕的權限API
cannot restore segment prot after reloc: Permission denied
它可能是dlopen的是不能搬遷共享庫的文本段。在這種情況下,我們可以更改權限以動態選擇重定位。您需要使用root權限執行以下命令來更改權限。
chcon -t texrel_shlib_t <your lib path here.>
感謝您的回答,它正在工作。 –