Bug 911145 - ipa.service fails to start after upgrade from fedora 17 to 18 due to selinux
Summary: ipa.service fails to start after upgrade from fedora 17 to 18 due to selinux
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-14 13:35 UTC by Peter Hjalmarsson
Modified: 2013-02-24 08:59 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-24 08:59:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter Hjalmarsson 2013-02-14 13:35:28 UTC
Description of problem:
After upgrading my virtual Fedora 17 freeipa server to Fedora 18 ipa.service fails to start if selinux is in enforcing mode

Version-Release number of selected component (if applicable):
freeipa-server.x86_64                 3.1.2-1.fc18
selinux-policy.noarch                 3.11.1-76.fc18

How reproducible:
Always

Steps to Reproduce:
1. Install freeipa on Fedora 17
2. Upgrade to Fedora 18
3. restart
  
Actual results:
systemctl reports ipa.service along with pki-ca@ and httpd failed to start

Expected results:
Everything starts to work at it should

Additional info:
I found the following in /var/log/audit/audit.log:

type=AVC msg=audit(1360847849.390:97): avc:  denied  { transition } for  pid=1209 comm="runcon" path="/usr/sbin/tomcat6-sysd" dev="vda2" ino=404044 scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:system_r:pki_tomcat_script_t:s0 tclass=process
type=SYSCALL msg=audit(1360847849.390:97): arch=c000003e syscall=59 success=no exit=-13 a0=7fff06b32c7e a1=7fff06b31dc0 a2=7fff06b31dd8 a3=7fff06b319e0 items=0 ppid=1115 pid=1209 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm="runcon" exe="/usr/bin/runcon" subj=system_u:system_r:initrc_t:s0 key=(null)

echo 0 > /sys/fs/selinux/enforce or boot with selinux in permissive mode and it works.

Comment 1 Rob Crittenden 2013-02-14 14:01:22 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3399

Comment 2 Rob Crittenden 2013-02-14 14:10:12 UTC
Re-assigning to selinux-policy to get their take on this.

The pki-core team was baffled by this as well. It isn't clear yet where this transition is coming from, whether from the tomcat package, remnants of the old pki-selinux or something else.

Comment 3 Daniel Walsh 2013-02-18 17:33:25 UTC
Is /usr/sbin/tomcat6-sysd supposed to run as httpd_t?

Comment 4 Miroslav Grepl 2013-02-18 19:47:25 UTC
I don't think so. I need to repeat pki+selinux knowledge.

Comment 5 Miroslav Grepl 2013-02-19 16:05:25 UTC
I added a fix.

Comment 6 Fedora Update System 2013-02-22 08:20:41 UTC
selinux-policy-3.11.1-81.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-81.fc18

Comment 7 Fedora Update System 2013-02-24 08:59:50 UTC
selinux-policy-3.11.1-81.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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