Bug 1069670 - A recent update broke running httpd
Summary: A recent update broke running httpd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
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: 2014-02-25 13:40 UTC by Bruno Wolff III
Modified: 2014-03-12 12:16 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-127.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-12 12:16:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Some of audit.log that appeared related to the httpd issue. (5.74 KB, text/plain)
2014-02-25 13:40 UTC, Bruno Wolff III
no flags Details
More complete list of rawhide AVCs (8.38 KB, text/plain)
2014-02-25 17:11 UTC, Bruno Wolff III
no flags Details

Description Bruno Wolff III 2014-02-25 13:40:26 UTC
Created attachment 867431 [details]
Some of audit.log that appeared related to the httpd issue.

Description of problem:
After a about a week without rebooting, when I did httpd didn't finish starting. (systemctl restart httpd would hang.) There hasn't been an httpd update since my previous reboot. I am seeing some AVCs that appear related and switching to permissive made things work. I'm relabelling /usr now and will see if that didn't get updated properly in an update or if it appears there is a policy problem. (Though either should be considered a bug.)


Version-Release number of selected component (if applicable):
httpd-2.4.6-6.fc20.i686
selinux-policy-targeted-3.12.1-126.fc20.noarch

Comment 1 Miroslav Grepl 2014-02-25 13:57:49 UTC
Yes, it is going to be fixed in the next build. Fortunately the update is just in updates-testing so please add negative karma. Thank you for testing.

Comment 2 Bruno Wolff III 2014-02-25 14:03:16 UTC
There might be a related issue with rawhide. iptables, httpd, postgresql, lm_sensors, and console-kit-log-system-start failed to start at boot. iptables wouldn't restart in enforcing mode. When I switched to permissive, I was able to restart all of the listed services.

Comment 3 Miroslav Grepl 2014-02-25 14:08:36 UTC
(In reply to Bruno Wolff III from comment #2)
> There might be a related issue with rawhide. iptables, httpd, postgresql,
> lm_sensors, and console-kit-log-system-start failed to start at boot.
> iptables wouldn't restart in enforcing mode. When I switched to permissive,
> I was able to restart all of the listed services.

Are you testing with the latest rawhide build?

Comment 4 Miroslav Grepl 2014-02-25 14:13:50 UTC
(In reply to Miroslav Grepl from comment #3)
> (In reply to Bruno Wolff III from comment #2)
> > There might be a related issue with rawhide. iptables, httpd, postgresql,
> > lm_sensors, and console-kit-log-system-start failed to start at boot.
> > iptables wouldn't restart in enforcing mode. When I switched to permissive,
> > I was able to restart all of the listed services.
> 
> Are you testing with the latest rawhide build?

http://koji.fedoraproject.org/koji/buildinfo?buildID=500352

Comment 5 Bruno Wolff III 2014-02-25 16:16:23 UTC
Not yet. I was waiting for rawhide to update, but it looks like it is running late again. If it doesn't show up soon, I'll grab that build from koji and try it out.

Comment 6 Bruno Wolff III 2014-02-25 17:07:52 UTC
I just tested selinux-policy-targeted-3.13.1-26.fc21.noarch and at least httpd won't start in enforcing mode. It does start in permissive.

Here is a few of the recent httpd AVCs:
type=AVC msg=audit(1393347934.989:66480): avc:  denied  { search } for  pid=11200 comm="/usr/sbin/httpd" name="condor" dev="dm-1" ino=295522 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:condor_var_lib_t:s0 tclass=dir
type=AVC msg=audit(1393347935.002:66481): avc:  denied  { search } for  pid=11200 comm="/usr/sbin/httpd" name="munin" dev="dm-1" ino=400958 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:munin_var_lib_t:s0 tclass=dir
type=AVC msg=audit(1393347935.118:66482): avc:  denied  { search } for  pid=11200 comm="/usr/sbin/httpd" name="games" dev="dm-1" ino=263468 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:games_data_t:s0 tclass=dir
type=AVC msg=audit(1393347935.154:66483): avc:  denied  { search } for  pid=11200 comm="/usr/sbin/httpd" name="ntop" dev="dm-1" ino=2655739 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:ntop_var_lib_t:s0 tclass=dir
type=AVC msg=audit(1393347935.274:66484): avc:  denied  { search } for  pid=11200 comm="/usr/sbin/httpd" name="vnstat" dev="dm-1" ino=2660030 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:vnstatd_var_lib_t:s0 tclass=dir
type=AVC msg=audit(1393347935.333:66485): avc:  denied  { search } for  pid=11200 comm="/usr/sbin/httpd" name="couchdb" dev="dm-1" ino=301317 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:couchdb_var_lib_t:s0 tclass=dir

Comment 7 Bruno Wolff III 2014-02-25 17:11:02 UTC
Created attachment 867556 [details]
More complete list of rawhide AVCs

It looks like there are other problems than the tmp issue in rawhide. We might need a separate bug for those.

Comment 8 Bruno Wolff III 2014-02-25 17:33:59 UTC
I screwed up. I did the test on the rawhide machine that was in the process of updating selinux-policy instead of the one where it had finished. I am able to restart httpd with selinux-policy-3.13.1-27.fc21.noarch.

Comment 9 Fedora Update System 2014-02-25 22:10:49 UTC
selinux-policy-3.12.1-127.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-127.fc20

Comment 10 Fedora Update System 2014-02-26 13:48:26 UTC
Package selinux-policy-3.12.1-127.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-127.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-127.fc20
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2014-03-12 12:16:45 UTC
selinux-policy-3.12.1-127.fc20 has been pushed to the Fedora 20 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.