All of lore.kernel.org
 help / color / mirror / Atom feed
From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [mmap zero conditional for unconfined patch ] 1/1] Allow unconfined domains to mmap low conditionally.
Date: Fri, 03 Sep 2010 10:56:30 -0400	[thread overview]
Message-ID: <4C810C9E.8080201@redhat.com> (raw)
In-Reply-To: <4C810BE4.8070403@tresys.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/03/2010 10:53 AM, Christopher J. PeBenito wrote:
> On 09/01/10 11:54, Dominick Grift wrote:
>> Allow unconfined domains to mmap low conditionally.
> 
> I'm very concerned about adding this to all unconfined domains, even if 
> its conditional.
> 
> Is this from the Fedora policy?
> 
>> Signed-off-by: Dominick Grift<domg472@gmail.com>
>> ---
>> :100644 100644 416e668... a1bfac5... M	policy/modules/system/unconfined.if
>>   policy/modules/system/unconfined.if |    1 +
>>   1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/policy/modules/system/unconfined.if b/policy/modules/system/unconfined.if
>> index 416e668..a1bfac5 100644
>> --- a/policy/modules/system/unconfined.if
>> +++ b/policy/modules/system/unconfined.if
>> @@ -37,6 +37,7 @@ interface(`unconfined_domain_noaudit',`
>>   	kernel_unconfined($1)
>>   	corenet_unconfined($1)
>>   	dev_unconfined($1)
>> +	domain_mmap_low($1)
>>   	domain_unconfined($1)
>>   	domain_dontaudit_read_all_domains_state($1)
>>   	domain_dontaudit_ptrace_all_domains($1)
> 

Yes.  The problem is not adding it, proves to be useless.  Since an
unconfined domain can do

Download mmap_zero_breakin /tmp/
chcon -t wine_exec_t /tmp/mmap_zero_breakin
/tmp/mmap_zero_breakin

Removing this line will just cause AVC's from random wine apps and add
no security.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkyBDJ4ACgkQrlYvE4MpobPSBwCfXPwVcpNDSzXaqshzPD95Tr9J
HuYAnipz0i0ey2+08mmEcxw465ti3Z7I
=1iju
-----END PGP SIGNATURE-----

  reply	other threads:[~2010-09-03 14:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01 15:54 [refpolicy] [mmap zero conditional for unconfined patch ] 1/1] Allow unconfined domains to mmap low conditionally Dominick Grift
2010-09-03 14:53 ` Christopher J. PeBenito
2010-09-03 14:56   ` Daniel J Walsh [this message]
2010-09-03 15:14     ` Christopher J. PeBenito
2010-09-03 16:08       ` Daniel J Walsh

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=4C810C9E.8080201@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=refpolicy@oss.tresys.com \
    /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.