<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 09/02/2010 02:02 AM, Ryan Anthony wrote:
<blockquote
 cite="mid:AANLkTimzKhqqem-Zv4dqbpwL4D_b9G7rPECg4ZCupme0@mail.gmail.com"
 type="cite">Yeah, I've actually noticed that same thing happening too,
but the trouble is that wine_mmap_zero_ignore is set to "on" already on
my machine. &nbsp;&nbsp; <br>
  <br>
R.<br>
  <br>
</blockquote>
Ryan.<br>
could you add outputs of following commands<br>
<br>
# ausearch -m avc -su wine_t -o wine_t<br>
<br>
# sesearch --dontaudit -s wine_t -t wine_t -c memprotect -p mmap_zero<br>
<br>
# getsebool wine_mmap_zero_ignore<br>
<br>
<br>
<blockquote
 cite="mid:AANLkTimzKhqqem-Zv4dqbpwL4D_b9G7rPECg4ZCupme0@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">On Wed, Sep 1, 2010 at 7:24 PM, Dominick
Grift <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:domg472@gmail.com">domg472@gmail.com</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>
    <div class="h5">On Wed, Sep 01, 2010 at 03:49:14PM -0700, Antonio
Olivares wrote:<br>
&gt; Dear selinux experts,<br>
&gt;<br>
&gt; I have a sealert for running a windows program under wine. &nbsp;There
had been no problems on a Fedora 13 x86_64 machine till I installed
this program. &nbsp;I have not done anything yet. &nbsp;The program runs, but I
am hesitant to do anything; therefore I ask for your guidance as to
what should I do?<br>
&gt;<br>
&gt; Here's the alert:<br>
&gt;<br>
&gt;<br>
&gt; Summary:<br>
&gt;<br>
&gt; SELinux has prevented wine from performing an unsafe memory
operation.<br>
&gt;<br>
&gt; Detailed Description:<br>
&gt;<br>
&gt; SELinux denied an operation requested by wine-preloader, a program
used to run<br>
&gt; Windows applications under Linux. This program is known to use an
unsafe<br>
&gt; operation on system memory but so are a number of malware/exploit
programs which<br>
&gt; masquerade as wine. If you were attempting to run a Windows
program your only<br>
&gt; choices are to allow this operation and reduce your system
security against such<br>
&gt; malware or to refrain from running Windows applications under
Linux. If you were<br>
&gt; not attempting to run a Windows application this indicates you are
likely being<br>
&gt; attacked by some for of malware or program trying to exploit your
system for<br>
&gt; nefarious purposes. Please refer to<br>
&gt; <a moz-do-not-send="true"
 href="http://wiki.winehq.org/PreloaderPageZeroProblem" target="_blank">http://wiki.winehq.org/PreloaderPageZeroProblem</a>
Which outlines the other<br>
&gt; problems wine encounters due to its unsafe use of memory and
solutions to those<br>
&gt; problems.<br>
&gt;<br>
&gt; Allowing Access:<br>
&gt;<br>
&gt; If you decide to continue to run the program in question you will
need to allow<br>
&gt; this operation. This can be done on the command line by executing:
# setsebool<br>
&gt; -P mmap_low_allowed 1<br>
&gt;<br>
&gt; Fix Command:<br>
&gt;<br>
&gt; /usr/sbin/setsebool -P mmap_low_allowed 1<br>
&gt;<br>
&gt; Additional Information:<br>
&gt;<br>
&gt; Source Context &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023<br>
&gt; Target Context &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023<br>
&gt; Target Objects &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;None [ memprotect ]<br>
&gt; Source &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wine-preloader<br>
&gt; Source Path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /usr/bin/wine-preloader<br>
&gt; Port &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;Unknown&gt;<br>
&gt; Host &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n6355-50168<br>
&gt; Source RPM Packages &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wine-core-1.2.0-2.fc13<br>
&gt; Target RPM Packages<br>
&gt; Policy RPM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;selinux-policy-3.7.19-47.fc13<br>
&gt; Selinux Enabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; True<br>
&gt; Policy Type &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targeted<br>
&gt; Enforcing Mode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Enforcing<br>
&gt; Plugin Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wine<br>
&gt; Host Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n6355-50168<br>
&gt; Platform &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Linux n6355-50168
2.6.33.8-149.fc13.x86_64 #1 SMP<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tue Aug 17 22:53:15 UTC 2010 x86_64
x86_64<br>
&gt; Alert Count &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10<br>
&gt; First Seen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Fri 27 Aug 2010 11:45:10 AM CDT<br>
&gt; Last Seen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wed 01 Sep 2010 09:32:26 AM CDT<br>
&gt; Local ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ab7d4dae-5686-4d47-ab3b-4ea134844ade<br>
&gt; Line Numbers<br>
&gt;<br>
&gt; Raw Audit Messages<br>
&gt;<br>
&gt; node=n6355-50168 type=AVC msg=audit(1283351546.640:36): avc:
&nbsp;denied &nbsp;{ mmap_zero } for &nbsp;pid=4115 comm="wine-preloader"
scontext=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023
tcontext=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023
tclass=memprotect<br>
&gt;<br>
&gt; node=n6355-50168 type=SYSCALL msg=audit(1283351546.640:36):
arch=40000003 syscall=90 success=no exit=-13 a0=ffe4a850 a1=0
a2=ffe4a850 a3=5a items=0 ppid=4088 pid=4115 auid=500 uid=500 gid=500
euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none)
ses=1 comm="wine-preloader" exe="/usr/bin/wine-preloader"
subj=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023 key=(null)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I run the windows program correctly and with no problems, just
that when I start the program I see the sealert(warning). &nbsp;I don't
really want to give this program what it is wanting for me to do, but I
also don't want to see the warning everytime. &nbsp;How should I approach
this matter?<br>
    <br>
    </div>
    </div>
Good call. Wine does not always really need this permission. Only when
one runs older windows applications is it that one may notice loss in
functionality.<br>
    <br>
There is a boolean that one can toggle to silently deny this access
vector:<br>
    <br>
setsebool -P wine_mmap_zero_ignore on<br>
    <br>
Again, This will not allow wine to mmap low (which is a dangerous
ability), but instead it will hide attempt by wine to do so.<br>
    <div>
    <div class="h5"><br>
    <br>
    <br>
&gt;<br>
&gt; Thanks in Advance,<br>
&gt;<br>
&gt; Antonio<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; selinux mailing list<br>
&gt; <a moz-do-not-send="true"
 href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a><br>
&gt; <a moz-do-not-send="true"
 href="https://admin.fedoraproject.org/mailman/listinfo/selinux"
 target="_blank">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br>
    </div>
    </div>
    <br>
--<br>
selinux mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a><br>
    <a moz-do-not-send="true"
 href="https://admin.fedoraproject.org/mailman/listinfo/selinux"
 target="_blank">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
selinux mailing list
<a class="moz-txt-link-abbreviated" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/selinux">https://admin.fedoraproject.org/mailman/listinfo/selinux</a></pre>
</blockquote>
<br>
</body>
</html>