Bug 662141 - SELinux is preventing /usr/sbin/certmonger "read" access to /etc/httpd/alias/cert8.db.
Summary: SELinux is preventing /usr/sbin/certmonger "read" access to /etc/httpd/alias/...
Status: CLOSED DUPLICATE of bug 662143
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: Unspecified
OS: Linux
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-12-10 18:18 UTC by Dmitri Pal
Modified: 2010-12-10 20:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-12-10 20:48:51 UTC
Type: ---

Attachments (Terms of Use)

Description Dmitri Pal 2010-12-10 18:18:54 UTC

SELinux is preventing /usr/sbin/certmonger "read" access to

Detailed Description:

SELinux denied access requested by certmonger. /etc/httpd/alias/cert8.db may be
a mislabeled. /etc/httpd/alias/cert8.db default SELinux type is cert_t, but its
current type is httpd_config_t. Changing this file back to the default type, may
fix your problem.

File contexts can be assigned to a file in the following ways.

  * Files created in a directory receive the file context of the parent
    directory by default.
  * The SELinux policy might override the default label inherited from the
    parent directory by specifying a process running in context A which creates
    a file in a directory labeled B will instead create the file with label C.
    An example of this would be the dhcp client running with the dhclient_t type
    and creating a file in the directory /etc. This file would normally receive
    the etc_t type due to parental inheritance but instead the file is labeled
    with the net_conf_t type because the SELinux policy specifies this.
  * Users can change the file context on a file using tools such as chcon, or

This file could have been mislabeled either by user error, or if an normally
confined application was run under the wrong domain.

However, this might also indicate a bug in SELinux because the file should not
have been labeled with this type.

If you believe this is a bug, please file a bug report against this package.

Allowing Access:

You can restore the default system context to this file by executing the
restorecon command. restorecon '/etc/httpd/alias/cert8.db', if this file is a
directory, you can recursively restore using restorecon -R

Fix Command:

/sbin/restorecon '/etc/httpd/alias/cert8.db'

Additional Information:

Source Context                unconfined_u:system_r:certmonger_t:s0
Target Context                unconfined_u:object_r:httpd_config_t:s0
Target Objects                /etc/httpd/alias/cert8.db [ file ]
Source                        certmonger
Source Path                   /usr/sbin/certmonger
Port                          <Unknown>
Host                          lenovo.home
Source RPM Packages           certmonger-0.32-0.2010113022gitc2be99c.fc13
Target RPM Packages           mod_nss-1.0.8-6.fc13
Policy RPM                    selinux-policy-3.7.19-74.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   restorecon
Host Name                     lenovo.home
Platform                      Linux lenovo.home #1 SMP Fri
                              Dec 3 12:35:44 UTC 2010 i686 i686
Alert Count                   3
First Seen                    Fri 10 Dec 2010 01:12:30 PM EST
Last Seen                     Fri 10 Dec 2010 01:12:45 PM EST
Local ID                      f62815cd-053c-4dac-b372-20de00078a38
Line Numbers                  

Raw Audit Messages            

node=lenovo.home type=AVC msg=audit(1292004765.134:64545): avc:  denied  { read } for  pid=14124 comm="certmonger" name="cert8.db" dev=dm-0 ino=263087 scontext=unconfined_u:system_r:certmonger_t:s0 tcontext=unconfined_u:object_r:httpd_config_t:s0 tclass=file

node=lenovo.home type=SYSCALL msg=audit(1292004765.134:64545): arch=40000003 syscall=5 success=no exit=-13 a0=9963088 a1=0 a2=180 a3=9963f60 items=0 ppid=14121 pid=14124 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="certmonger" exe="/usr/sbin/certmonger" subj=unconfined_u:system_r:certmonger_t:s0 key=(null)

Comment 1 Dmitri Pal 2010-12-10 18:28:10 UTC
The issue is found during IPA installation.

Comment 2 Daniel Walsh 2010-12-10 20:48:51 UTC

*** This bug has been marked as a duplicate of bug 662143 ***

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