Bug 447218 - SELinux prevents reading cacert
Summary: SELinux prevents reading cacert
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 9
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-18 21:41 UTC by Zaphod Beeblebrox
Modified: 2008-11-17 22:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-17 22:03:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Zaphod Beeblebrox 2008-05-18 21:41:11 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071201 Remi/2.0.0.11-1.fc4.remi Firefox/2.0.0.11

Description of problem:
SELinux audit daemon logs an error trying to access the /etc/openldap/cacerts/authconfig_downloaded.pem CA cert. Here is an example from the system log:

May 16 20:59:49 localhost setroubleshoot: SELinux is preventing unix_chkpwd (system_chkpwd_t) "getattr" to /etc/openldap/cacerts/authconfig_downloaded.pem (etc_runtime_t). For complete SELinux messages. run sealert -l c4ed3e11-1daf-4621-9745-73e065d44c4f



Version-Release number of selected component (if applicable):


How reproducible:
Always


Steps to Reproduce:
1. Install FC9
2. During firstboot, configure authentication via LDAP and use http to download the CA cert
3. Try to login with an LDAP network id, get failure

Actual Results:
Never logged in

Expected Results:


Additional info:

Comment 1 Jan Safranek 2008-05-30 10:52:40 UTC
Reassigning to firstboot. Firstboot calls authconfig-gtk, which downloads the
certificate and stores it into /etc/openldap/cacerts. The stored certificate has
context system_u:object_r:etc_runtime_t:s0, while rest of the system expects the
context to be etc_t (without 'runtime').

Authconfig-gtk started from user's session (not from firstboot) stores
certificates with the right context (system_u:object_r:etc_t:s0) and login then
works.

Either the firstboot or selinux policy must be fixed.

Comment 2 Daniel Walsh 2008-07-02 19:28:29 UTC
Removing the transition from firstboot, which should leave the file labeled etc_t.

Fixed in selinux-policy-3.3.1-75.fc9.noarch

Comment 3 Daniel Walsh 2008-11-17 22:03:59 UTC
Closing all bugs that have been in modified for over a month.  Please reopen if the bug is not actually fixed.


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