Bug 565999 - SELinux is preventing /usr/sbin/gpm "read" access on gpm.pid.
Summary: SELinux is preventing /usr/sbin/gpm "read" access on gpm.pid.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:9b61f1f3c2e...
: 566276 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-16 21:18 UTC by kruvalig
Modified: 2010-03-26 06:51 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.6.32-92.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-04 00:16:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description kruvalig 2010-02-16 21:18:31 UTC
Summary:

SELinux is preventing /usr/sbin/gpm "read" access on gpm.pid.

Detailed Description:

SELinux denied access requested by gpm. It is not expected that this access is
required by gpm and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:gpm_t:s0
Target Context                unconfined_u:object_r:var_run_t:s0
Target Objects                gpm.pid [ file ]
Source                        gpm
Source Path                   /usr/sbin/gpm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gpm-1.20.6-9.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-84.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.12-174.2.3.fc12.i686 #1 SMP Mon Jan 18
                              20:22:46 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Wed 17 Feb 2010 12:09:37 AM MSK
Last Seen                     Wed 17 Feb 2010 12:09:37 AM MSK
Local ID                      65ce4b80-ef33-444a-925f-ab17fb65d4ae
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1266354577.570:36): avc:  denied  { read } for  pid=2041 comm="gpm" name="gpm.pid" dev=dm-2 ino=72672 scontext=unconfined_u:system_r:gpm_t:s0 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1266354577.570:36): arch=40000003 syscall=5 success=no exit=-13 a0=8059e69 a1=0 a2=1b6 a3=805755e items=0 ppid=1 pid=2041 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="gpm" exe="/usr/sbin/gpm" subj=unconfined_u:system_r:gpm_t:s0 key=(null)



Hash String generated from  catchall,gpm,gpm_t,var_run_t,file,read
audit2allow suggests:

#============= gpm_t ==============
allow gpm_t var_run_t:file read;

Comment 1 Daniel Walsh 2010-02-16 21:41:09 UTC
chcon -t gpm_var_run_t /var/run/gpm.pid

Should fix.

Miroslav

Add the following

/var/run/gpm\.pid 	--	gen_context(system_u:object_r:gpm_var_run_t,s0)

Comment 2 Miroslav Grepl 2010-02-16 21:47:00 UTC
Fixed in selinux-policy-3.6.32-91.fc12

Comment 3 Daniel Walsh 2010-02-17 19:19:15 UTC
*** Bug 566276 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2010-02-23 20:57:23 UTC
selinux-policy-3.6.32-92.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-92.fc12

Comment 5 Fedora Update System 2010-02-26 03:44:07 UTC
selinux-policy-3.6.32-92.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-2953

Comment 6 Fedora Update System 2010-03-04 00:12:51 UTC
selinux-policy-3.6.32-92.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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