<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO --- - Buffer Overflow in xf86-video-intel"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80157#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO --- - Buffer Overflow in xf86-video-intel"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80157">bug 80157</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>Hmm, I tend to remove setuid and then sudo valgrind /path/to/Xorg and then
connect. Replacing /usr/bin/Xorg with your script should be enough to have the
login managers and/or xinit to launch X under valgrind with no adjustments.
If you really need the setuid bit, then you will need something like
echo -e '#include<stdlib.h>\nint main(void) { return system("valgrind
/usr/bin/Xorg.real"); }' > vgX.c
gcc -o vgX vgX.c -Wall
sudo chown root:root vgX
sudo chmod +s vgX
sudo cp vgX /usr/bin/Xorg</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>