What are the best settings to get LLVM to work? It's needed for mesa with Gallium 3D.
LLVM does JIT compilation code for the video card to accelerate OpenGL.
I'm using the latest kernel.
paxctl -cm /usr/bin/<whatever>
specs wrote:Do you want "the best settings" from security perspective?
You could consider not using any program using a JIT
Using a JIT will require disabling mprotect making your security settings suboptimal.
- Code: Select all
paxctl -cm /usr/bin/<whatever>
konst wrote:Not using LLVM (which does JIT) is not an option since it's used for 3D acceleration now.
What I'm asking is what's the next best option?
konst wrote:Is the only option to -MPROTECT on every executable that uses LLVM?
yes. you either allow runtime code generation or you don't, it's a binary decision.konst wrote:Is the only option to -MPROTECT on every executable that uses LLVM?
PaX Team wrote:yes. you either allow runtime code generation or you don't, it's a binary decision.konst wrote:Is the only option to -MPROTECT on every executable that uses LLVM?
exactly, /proc/pid/maps is your friend .konst wrote:P.S. On second thought maybe PAX can't do that cause the program and libraries would be/are in the same address space?
konst wrote:Also would using the compatibility mode of RWX be better? I'm assuming not all the programs that ask for RWX actually need X so they won't automatically get denied and crash. Is that the only difference between the compatibility mode of RWX and the new mode?