Bug 718630 - SELinux is preventing /sbin/killall5 from 'getattr' accesses on the file /usr/libexec/postfix/tlsmgr.
Summary: SELinux is preventing /sbin/killall5 from 'getattr' accesses on the file /usr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:27e69dde695...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-04 04:53 UTC by John Griffiths
Modified: 2011-07-19 06:46 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.9.16-34.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-18 22:32:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Griffiths 2011-07-04 04:53:54 UTC
SELinux is preventing /sbin/killall5 from 'getattr' accesses on the file /usr/libexec/postfix/tlsmgr.

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

If you believe that killall5 should be allowed getattr access on the tlsmgr 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 pidof /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:postfix_exec_t:s0
Target Objects                /usr/libexec/postfix/tlsmgr [ file ]
Source                        pidof
Source Path                   /sbin/killall5
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sysvinit-tools-2.88-3.dsf.fc15
Target RPM Packages           postfix-2.8.3-1.fc15
Policy RPM                    selinux-policy-3.9.16-30.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38.8-32.fc15.i686.PAE #1 SMP Mon Jun 13
                              19:55:27 UTC 2011 i686 i686
Alert Count                   14
First Seen                    Sat 25 Jun 2011 10:52:56 PM EDT
Last Seen                     Sun 03 Jul 2011 07:08:43 PM EDT
Local ID                      46e56827-71e9-4aa5-b7e7-3430e4477bee

Raw Audit Messages
type=AVC msg=audit(1309734523.440:57373): avc:  denied  { getattr } for  pid=31754 comm="pidof" path="/usr/libexec/postfix/tlsmgr" dev=dm-3 ino=6168600 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:postfix_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1309734523.440:57373): arch=i386 syscall=stat64 success=no exit=EACCES a0=bf91df4a a1=bf91de40 a2=4d19aff4 a3=3 items=0 ppid=31751 pid=31754 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pidof exe=/sbin/killall5 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: pidof,xdm_t,postfix_exec_t,file,getattr

audit2allow

#============= xdm_t ==============
allow xdm_t postfix_exec_t:file getattr;

audit2allow -R

#============= xdm_t ==============
allow xdm_t postfix_exec_t:file getattr;

Comment 1 Daniel Walsh 2011-07-05 17:37:57 UTC
What tool are you running for logging in?  Gdm?

Comment 2 Daniel Walsh 2011-07-05 17:43:17 UTC
Fixed in selinux-policy-3.9.16-33.fc15

Comment 3 Fedora Update System 2011-07-15 15:43:22 UTC
selinux-policy-3.9.16-34.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-34.fc15

Comment 4 Fedora Update System 2011-07-16 07:28:17 UTC
Package selinux-policy-3.9.16-34.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-34.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-34.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-07-18 22:30:44 UTC
selinux-policy-3.9.16-34.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 John Griffiths 2011-07-19 06:46:51 UTC
Seems to be fixed.


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