All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Ivan Gyurdiev <ivg2@cornell.edu>,
	Jim Carter <jwcart2@epoch.ncsc.mil>,
	selinux@tycho.nsa.gov
Subject: Re: Provide finer-grained booleans for execmem/execmod, please
Date: Thu, 14 Apr 2005 09:51:14 -0400	[thread overview]
Message-ID: <425E7552.3030002@redhat.com> (raw)
In-Reply-To: <1113485318.373.39.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:

>Hi,
>
>I'd like to again request finer-grained booleans for execmem and
>execmod, possibly nested within the existing coarse-grained boolean, so
>that we can allow it as needed for X and similar programs while denying
>it elsewhere.  To show why this is useful, below is the diff of paxtest
>(with nested function moved to global scope) results on the latest FC3
>kernel with SELinux permissive vs. enforcing with the allow_execmem and
>allow_execmod booleans set to 0.  The permissive output shows what is
>being provided by exec-shield w/o SELinux, while the enforcing output
>shows what added benefit is provided by the SELinux execmem/execmod
>controls when they are denied to the domain in question.  Note that in
>this test, /proc/sys/kernel/exec-shield was 1 and paxtest was built via
>make generic.
>
>  
>
We can do that, the problem is we are having an explosion of booleans.  
I just don't want to
get to the point where every app that needs execmem has a boolean.  
Maybe we need two booleans
allow_trusted_execmem, allow_untrusted_execmem.  So ones that are 
explainable like Java and X
would be trusted and other random ones that we can not necessarily 
explain would be untrusted.

Dan

>--- paxtest-permissive.log	2005-04-11 14:14:23.000000000 -0400
>+++ paxtest-enforcing.log	2005-04-11 14:14:23.000000000 -0400
>@@ -9,18 +9,18 @@
> Executable data                          : Killed
> Executable heap                          : Killed
> Executable stack                         : Killed
>-Executable anonymous mapping (mprotect)  : Vulnerable
>-Executable bss (mprotect)                : Vulnerable
>-Executable data (mprotect)               : Vulnerable
>-Executable heap (mprotect)               : Vulnerable
>-Executable shared library bss (mprotect) : Vulnerable
>-Executable shared library data (mprotect): Vulnerable
>-Executable stack (mprotect)              : Vulnerable
>+Executable anonymous mapping (mprotect)  : Killed
>+Executable bss (mprotect)                : Killed
>+Executable data (mprotect)               : Killed
>+Executable heap (mprotect)               : Killed
>+Executable shared library bss (mprotect) : Killed
>+Executable shared library data (mprotect): Killed
>+Executable stack (mprotect)              : Killed
> Anonymous mapping randomisation test     : 8 bits (guessed)
>-Heap randomisation test (ET_EXEC)        : 14 bits (guessed)
>-Heap randomisation test (ET_DYN)         : 12 bits (guessed)
>+Heap randomisation test (ET_EXEC)        : 13 bits (guessed)
>+Heap randomisation test (ET_DYN)         : No randomisation
> Main executable randomisation (ET_EXEC)  : No randomisation
>-Main executable randomisation (ET_DYN)   : 12 bits (guessed)
>+Main executable randomisation (ET_DYN)   : No randomisation
> Shared library randomisation test        : No randomisation
> Stack randomisation test (SEGMEXEC)      : 17 bits (guessed)
> Stack randomisation test (PAGEEXEC)      : 17 bits (guessed)
>@@ -30,4 +30,4 @@
> Return to function (memcpy, RANDEXEC)    : Vulnerable
> Executable shared library bss            : Vulnerable
> Executable shared library data           : Vulnerable
>-Writable text segments                   : Vulnerable
>+Writable text segments                   : Killed
>
>  
>


-- 



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2005-04-14 13:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-14 13:28 Provide finer-grained booleans for execmem/execmod, please Stephen Smalley
2005-04-14 13:51 ` Daniel J Walsh [this message]
2005-04-14 14:06   ` Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=425E7552.3030002@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=ivg2@cornell.edu \
    --cc=jwcart2@epoch.ncsc.mil \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.