Bug 981598 - SElinux AVC alerts for openstack after packstack install
Summary: SElinux AVC alerts for openstack after packstack install
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
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-07-05 08:49 UTC by Jonathan Barber
Modified: 2013-08-04 22:58 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.12.1-69.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-04 22:58:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
/var/log/audit/audit.log (6.00 MB, text/plain)
2013-07-11 08:35 UTC, Jonathan Barber
no flags Details

Description Jonathan Barber 2013-07-05 08:49:18 UTC
Description of problem:
selinux reports AVC issues after packstack is run with selinux in permissive mode.

Version-Release number of selected component (if applicable):
openstack-packstack-2013.1.1-0.3.dev527.fc19.noarch

How reproducible:
Always

Steps to Reproduce:
1. install f19 @core, yum install openstack-packstack
2. packstack

Actual results:
AVC messages appear

Expected results:
No AVC messages

Additional info:
# cat /var/log/audit/audit.log | audit2allow -R
require {
	type nova_cert_t;
	type nova_console_t;
	type glance_registry_t;
	type memcached_t;
	class capability sys_resource;
}

#============= glance_registry_t ==============
dev_manage_sysfs_dirs(glance_registry_t)

#============= memcached_t ==============
allow memcached_t self:capability sys_resource;

#============= nova_cert_t ==============
dev_manage_sysfs_dirs(nova_cert_t)

#============= nova_console_t ==============
dev_manage_sysfs_dirs(nova_console_t)

Comment 1 Sandro Mathys 2013-07-05 09:08:57 UTC
Re-assigning to selinux-policy as Packstack does not touch selinux contexts or policies (except for enabling two booleans in some use cases).

Comment 2 Daniel Walsh 2013-07-10 22:58:04 UTC
Please attach the original avcs.

Comment 3 Jonathan Barber 2013-07-11 08:35:59 UTC
Created attachment 772071 [details]
/var/log/audit/audit.log

Apologies for just attaching the whole log file, but I don't know which parts are important.

Comment 4 Daniel Walsh 2013-07-26 17:57:46 UTC
0aefe67621f5a2966205fb357cf9b2ae64104dd6 and
85c5f723382b764dc78a7c9252ddec71d63ba383

Fix this in git.

Comment 5 Fedora Update System 2013-08-02 13:28:01 UTC
selinux-policy-3.12.1-69.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-69.fc19

Comment 6 Fedora Update System 2013-08-02 21:54:06 UTC
Package selinux-policy-3.12.1-69.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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-69.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-14089/selinux-policy-3.12.1-69.fc19
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-08-04 22:58:54 UTC
selinux-policy-3.12.1-69.fc19 has been pushed to the Fedora 19 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.