Bug 670916

Summary: SELinux is preventing /usr/bin/certwatch from read, write access on the file coolkeypk11sE-Gate 0 0-0.
Product: [Fedora] Fedora Reporter: kentontofte
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:77c9b83d59ff0d03e484be3bb6c5b20d7e501e4112d10804e891956872d16c4d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-26 20:40:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description kentontofte 2011-01-19 16:45:34 UTC
SELinux is preventing /usr/bin/certwatch from read, write access on the file coolkeypk11sE-Gate 0 0-0.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If you want to allow certwatch to have read write access on the coolkeypk11sE-Gate 0 0-0 file
Then you need to change the label on coolkeypk11sE-Gate.0.0-0
Do
# semanage fcontext -a -t FILE_TYPE 'coolkeypk11sE-Gate.0.0-0'
where FILE_TYPE is one of the following: user_cron_spool_t, afs_cache_t, certwatch_t, auth_cache_t. 
Then execute: 
restorecon -v 'coolkeypk11sE-Gate.0.0-0'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that certwatch should be allowed read write access on the coolkeypk11sE-Gate 0 0-0 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 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                unconfined_u:object_r:var_t:s0
Target Objects                coolkeypk11sE-Gate 0 0-0 [ file ]
Source                        certwatch
Source Path                   /usr/bin/certwatch
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           crypto-utils-2.4.1-27
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-20.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.i686.PAE
                              #1 SMP Thu Dec 23 16:10:47 UTC 2010 i686 i686
Alert Count                   4
First Seen                    Sat 15 Jan 2011 02:29:02 PM EST
Last Seen                     Wed 19 Jan 2011 08:38:03 AM EST
Local ID                      aae91e44-f9bd-42b4-b747-421d2d186d88

Raw Audit Messages
type=AVC msg=audit(1295444283.565:23571): avc:  denied  { read write } for  pid=2519 comm="certwatch" name=636F6F6C6B6579706B313173452D47617465203020302D30 dev=dm-0 ino=132502 scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_t:s0 tclass=file

certwatch,certwatch_t,var_t,file,read,write
type=SYSCALL msg=audit(1295444283.565:23571): arch=i386 syscall=open success=no exit=EACCES a0=9affdb8 a1=20002 a2=180 a3=9affda0 items=0 ppid=2514 pid=2519 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm=certwatch exe=/usr/bin/certwatch subj=system_u:system_r:certwatch_t:s0-s0:c0.c1023 key=(null)
certwatch,certwatch_t,var_t,file,read,write

#============= certwatch_t ==============
allow certwatch_t var_t:file { read write };

Comment 1 Daniel Walsh 2011-01-19 16:55:05 UTC
I think you have a labeling issue.

restorecon -R -v /var

Should fix.

Where does coolkeypk11sE-Gate 0 0-0 exist?