Bug 674068 - SELinux is preventing /lib/ld-2.12.90.so from 'mmap_zero' accesses on the memprotect Unknown.
Summary: SELinux is preventing /lib/ld-2.12.90.so from 'mmap_zero' accesses on the mem...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:4c4145ab407...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-31 14:44 UTC by Bengt Sjögren
Modified: 2016-11-24 16:06 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-16 14:40:23 UTC
Type: ---


Attachments (Terms of Use)

Description Bengt Sjögren 2011-01-31 14:44:59 UTC
SELinux is preventing /lib/ld-2.12.90.so from 'mmap_zero' accesses on the memprotect Unknown.

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

If you do not think /lib/ld-2.12.90.so 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 ld-2.12.90.so 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 ld-linux.so.2 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0-
                              s0:c0.c1023
Target Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0-
                              s0:c0.c1023
Target Objects                Unknown [ memprotect ]
Source                        ld-linux.so.2
Source Path                   /lib/ld-2.12.90.so
Port                          <Okänd>
Host                          (removed)
Source RPM Packages           glibc-2.12.90-21
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-25.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.i686 #1 SMP Thu
                              Dec 23 16:17:40 UTC 2010 i686 i686
Alert Count                   1
First Seen                    mån 31 jan 2011 14.57.29
Last Seen                     mån 31 jan 2011 14.57.29
Local ID                      ba905845-bd64-48a7-b168-002c8c832fda

Raw Audit Messages
type=AVC msg=audit(1296482249.416:24215): avc:  denied  { mmap_zero } for  pid=4696 comm="ld-linux.so.2" scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tclass=memprotect


type=SYSCALL msg=audit(1296482249.416:24215): arch=i386 syscall=mmap2 success=no exit=EACCES a0=0 a1=1000 a2=3 a3=22 items=0 ppid=4683 pid=4696 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=ld-linux.so.2 exe=/lib/ld-2.12.90.so subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)

Hash: ld-linux.so.2,unconfined_execmem_t,unconfined_execmem_t,memprotect,mmap_zero

audit2allow

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

allow unconfined_execmem_t self:memprotect mmap_zero;

audit2allow -R

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

allow unconfined_execmem_t self:memprotect mmap_zero;

Comment 1 Miroslav Grepl 2011-02-01 09:16:19 UTC
This access should not be required.

Comment 2 Andreas Schwab 2011-02-01 16:36:20 UTC
Please provide a test case.

Comment 3 Andreas Schwab 2011-02-16 14:40:23 UTC
Not reproducable.


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