Bug 669927 - SELinux is preventing /bin/bash from 'read' accesses on the file meminfo.
Summary: SELinux is preventing /bin/bash from 'read' accesses on the file meminfo.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:1011f3e9282...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-15 20:18 UTC by John Watzke
Modified: 2011-01-17 10:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-17 10:20:44 UTC
Type: ---


Attachments (Terms of Use)

Description John Watzke 2011-01-15 20:18:11 UTC
SELinux is preventing /bin/bash from 'read' accesses on the file meminfo.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that bash should be allowed read access on the meminfo file 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 service /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:gnomeclock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:proc_t:s0
Target Objects                meminfo [ file ]
Source                        service
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.9-5.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.12-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-2.fc15.x86_64
                              #1 SMP Fri Jan 7 14:57:36 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 15 Jan 2011 07:13:20 PM EST
Last Seen                     Sat 15 Jan 2011 07:13:20 PM EST
Local ID                      8a268935-a924-46b0-b85c-43fa580d4b31

Raw Audit Messages
type=AVC msg=audit(1295136800.213:90): avc:  denied  { read } for  pid=5515 comm="service" name="meminfo" dev=proc ino=4026532025 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=file


type=SYSCALL msg=audit(1295136800.213:90): arch=x86_64 syscall=open success=no exit=EACCES a0=7f4045cc3a01 a1=0 a2=1b6 a3=2 items=0 ppid=5513 pid=5515 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=service exe=/bin/bash subj=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 key=(null)

Hash: service,gnomeclock_t,proc_t,file,read

audit2allow

#============= gnomeclock_t ==============
#!!!! This avc is allowed in the current policy

allow gnomeclock_t proc_t:file read;

audit2allow -R

#============= gnomeclock_t ==============
#!!!! This avc is allowed in the current policy

allow gnomeclock_t proc_t:file read;

Comment 1 Miroslav Grepl 2011-01-17 10:20:44 UTC
Fixed in selinux-policy-3.9.12-8.fc15


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