Bug 702813 - SELinux is preventing /usr/bin/skype from 'mmap_zero' accesses on the memprotect Unknown.
Summary: SELinux is preventing /usr/bin/skype from 'mmap_zero' accesses on the memprot...
Keywords:
Status: CLOSED DUPLICATE of bug 697616
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:fe6feff4386...
: 702903 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-07 11:15 UTC by xfirebg
Modified: 2011-05-09 15:41 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-05-09 15:41:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description xfirebg 2011-05-07 11:15:21 UTC
SELinux is preventing /usr/bin/skype from 'mmap_zero' accesses on the memprotect Unknown.

*****  Plugin mmap_zero (53.1 confidence) suggests  **************************

If you do not think /usr/bin/skype should need to mmap low memory in the kernel.
Then you may be under attack by a hacker, this is a very dangerous access.
Do
contact your security administrator and report this issue.

*****  Plugin catchall_boolean (42.6 confidence) suggests  *******************

If you want to control the ability to mmap a low area of the address space, as configured by /proc/sys/kernel/mmap_min_addr.
Then you must tell SELinux about this by enabling the 'mmap_low_allowed' boolean.
Do
setsebool -P mmap_low_allowed 1

*****  Plugin catchall (5.76 confidence) suggests  ***************************

If you believe that skype should be allowed mmap_zero access on the Unknown memprotect by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep skype /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_mono_t:s0-s0:
                              c0.c1023
Target Context                unconfined_u:unconfined_r:unconfined_mono_t:s0-s0:
                              c0.c1023
Target Objects                Unknown [ memprotect ]
Source                        skype
Source Path                   /usr/bin/skype
Port                          <Непознат>
Host                          (removed)
Source RPM Packages           skype-2.2.0.25-fc10
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.12-90.fc14.i686
                              #1 SMP Fri Apr 22 16:14:44 UTC 2011 i686 i686
Alert Count                   326
First Seen                     6.05.2011 (пт) 12,11,23 EEST
Last Seen                      7.05.2011 (сб) 14,10,23 EEST
Local ID                      5afc53fb-7899-4a75-bc4a-c558091dfd58

Raw Audit Messages
type=AVC msg=audit(1304766623.402:1409): avc:  denied  { mmap_zero } for  pid=1964 comm="skype" scontext=unconfined_u:unconfined_r:unconfined_mono_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_mono_t:s0-s0:c0.c1023 tclass=memprotect


type=SYSCALL msg=audit(1304766623.402:1409): arch=i386 syscall=mmap2 per=400000 success=no exit=EACCES a0=0 a1=100000 a2=0 a3=4022 items=0 ppid=1 pid=1964 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=skype exe=/usr/bin/skype subj=unconfined_u:unconfined_r:unconfined_mono_t:s0-s0:c0.c1023 key=(null)

Hash: skype,unconfined_mono_t,unconfined_mono_t,memprotect,mmap_zero

audit2allow

#============= unconfined_mono_t ==============
#!!!! This avc can be allowed using the boolean 'mmap_low_allowed'

allow unconfined_mono_t self:memprotect mmap_zero;

audit2allow -R

#============= unconfined_mono_t ==============
#!!!! This avc can be allowed using the boolean 'mmap_low_allowed'

allow unconfined_mono_t self:memprotect mmap_zero;

Comment 1 xfirebg 2011-05-07 11:17:12 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
This erorr pop up wen starting up skype 2.2 beta.

Comment 2 Elad Alfassa 2011-05-08 08:46:09 UTC
*** Bug 702903 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2011-05-09 15:41:52 UTC

*** This bug has been marked as a duplicate of bug 697616 ***


Note You need to log in before you can comment on or make changes to this bug.