lkml.org 
[lkml]   [2005]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 2/2] selinux: add executable heap check
From
Date
On Wed, 2005-06-22 at 03:51 +0200, Lorenzo Hernández García-Hierro
wrote:
> This patch,based on sample code by Roland McGrath, adds an execheap
> permission check that controls the ability to make the heap executable
> so that this can be prevented in almost all cases (the X server is
> presently an exception, but this will hopefully be resolved in the future)
> so that even programs with execmem permission will need to have the anonymous
> memory mapped in order to make it executable.
> The only reason that we use a permission check for such restriction
> (vs. making it unconditional) is that the X module loader presently
> needs it; it could possibly be made unconditional in the future when
> X is changed.

> Signed-off-by: Lorenzo Hernandez Garcia-Hierro <lorenzo@gnu.org>
> ---
>
> security/selinux/hooks.c | 11 +++++++++++
> security/selinux/include/av_perm_to_string.h | 1 +
> security/selinux/include/av_permissions.h | 1 +
> 3 files changed, 13 insertions(+)

Acked-by: Stephen Smalley <sds@tycho.nsa.gov>

--
Stephen Smalley
National Security Agency

-
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-06-22 13:44    [W:0.100 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site