lkml.org 
[lkml]   [2003]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: chstk - URL?

On Wed, 1 Oct 2003, Catalin BOIE wrote:

> I use kernel 2.6.0-test6-mm1 with ecec-shield and X gives me sig 11.

for security reasons it's not possible to disable exec-shield for setuid
root processes (such as X). So the solution either to upgrade X to have
the fix or to switch off exec-shield when you start up X, and switch on
exec-shield afterwards. A bit painful the later method ...

(alternatively you can also disable the setuid-root protection in the
kernel, remove the two 'current->personality = PER_LINUX' lines from
fs/exec.c and recompile the kernel.)

> A program must be compiled with new gcc to work with exec-shield and
> without chstk?

no. The X segmenation fault is because the X module loader malloc()s
buffers for code and expects them to be executable. Those buffers were
non-executable on other architectures already, so the fix is really simple
- a oneliner #ifdef or so.

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.144 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site