Page 1 of 1

[solved] Trying to disable mprotect() restrictions on Xorg

PostPosted: Tue Aug 27, 2013 12:16 am
by GBit
mprotect restrictions break Xorg, so I'm trying to disable it for the binary, but I get:
/usr/bin/Xorg: Text file busy


I've tried killing Xorg but I keep getting that error. Is there a way to do this that I'm not thinking of?

edit: Had to run "service systemd stop" and then ctrl + alt + F4, then I could do it.

Re: Trying to disable mprotect() restrictions on Xorg

PostPosted: Tue Aug 27, 2013 7:06 am
by N8Fear
First of all: I don't have any issues with mprotect and Xorg (see checksec.sh output):
Code: Select all
* Does the CPU support NX: Yes

         COMMAND    PID RELRO             STACK CANARY           NX/PaX        PIE
            Xorg   9079 Partial RELRO     Canary found           PaX enabled   PIE enabled   


Do you have any logs stating what is happening and what is killed?
Because of the "text file busy" issue you could check if Xorg still running (i.e. with ps). If it's running kill it again and check if it is respawned by some other process.