Bug 659945 - SELinux is preventing /usr/bin/certwatch from 'getattr' accesses on the file /etc/pki/dovecot/certs/dovecot.crt.
Summary: SELinux is preventing /usr/bin/certwatch from 'getattr' accesses on the file ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:4289b87cba6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-04 10:43 UTC by Nicolas Mailhot
Modified: 2010-12-06 11:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-06 11:40:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2010-12-04 10:43:18 UTC
SELinux is preventing /usr/bin/certwatch from 'getattr' accesses on the file /etc/pki/dovecot/certs/dovecot.crt.

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

If you believe that certwatch should be allowed getattr access on the dovecot.crt 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 /usr/bin/certwatch /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:certwatch_t:s0-s0:c0.c1023
Target Context                system_u:object_r:dovecot_cert_t:s0
Target Objects                /etc/pki/dovecot/certs/dovecot.crt [ file ]
Source                        certwatch
Source Path                   /usr/bin/certwatch
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           crypto-utils-2.4.1-27
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.10-5.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.36.1-10.fc15.x86_64 #1 SMP Mon
                              Nov 29 14:41:22 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    ven. 03 déc. 2010 03:42:02 CET
Last Seen                     ven. 03 déc. 2010 03:42:02 CET
Local ID                      4ee9ebad-0d87-42c4-b894-7b3dd0cdd996

Raw Audit Messages
type=AVC msg=audit(1291344122.341:16943): avc:  denied  { getattr } for  pid=5371 comm="certwatch" path="/etc/pki/dovecot/certs/dovecot.crt" dev=dm-1 ino=183874 scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dovecot_cert_t:s0 tclass=file

certwatch,certwatch_t,dovecot_cert_t,file,getattr
type=SYSCALL msg=audit(1291344122.341:16943): arch=x86_64 syscall=fstat success=yes exit=0 a0=5 a1=7fff85e791a0 a2=7fff85e791a0 a3=30 items=0 ppid=5369 pid=5371 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=449 comm=certwatch exe=/usr/bin/certwatch subj=system_u:system_r:certwatch_t:s0-s0:c0.c1023 key=(null)
certwatch,certwatch_t,dovecot_cert_t,file,getattr

#============= certwatch_t ==============
allow certwatch_t dovecot_cert_t:file getattr;

Comment 1 Miroslav Grepl 2010-12-06 11:40:12 UTC
Fixed in selinux-policy-3.9.10-6.fc15

Comment 2 Miroslav Grepl 2010-12-06 11:40:39 UTC
(In reply to comment #1)
> Fixed in selinux-policy-3.9.10-6.fc15

I meant selinux-policy-3.9.10-7.fc15


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