Bug 632719 - SELinux is preventing init "associate" access on hugepages.
Summary: SELinux is preventing init "associate" access on hugepages.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:ccb2e656e1d...
Depends On:
Blocks: F14Blocker, F14FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2010-09-10 20:07 UTC by Steve Tyler
Modified: 2010-09-25 05:38 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.5-3.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-25 05:38:19 UTC


Attachments (Terms of Use)
messages.bz2 (42.35 KB, application/x-bzip)
2010-09-10 20:19 UTC, Steve Tyler
no flags Details

Description Steve Tyler 2010-09-10 20:07:29 UTC
Summary:

SELinux is preventing init "associate" access on hugepages.

Detailed Description:

SELinux denied access requested by init. It is not expected that this access is
required by init and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:object_r:hugetlbfs_t:s0
Target Context                system_u:object_r:device_t:s0
Target Objects                hugepages [ filesystem ]
Source                        init
Source Path                   init
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.3-1.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.4-12.fc14.x86_64 #1 SMP Fri Aug
                              27 07:45:05 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Fri 10 Sep 2010 12:17:21 PM PDT
Last Seen                     Fri 10 Sep 2010 12:17:21 PM PDT
Local ID                      d63fb282-fba7-4704-8bb2-f27030b09a2a
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1284146241.619:18): avc:  denied  { associate } for  pid=1 comm="init" name="hugepages" scontext=system_u:object_r:hugetlbfs_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=filesystem



Hash String generated from  catchall,init,hugetlbfs_t,device_t,filesystem,associate
audit2allow suggests:

#============= hugetlbfs_t ==============
allow hugetlbfs_t device_t:filesystem associate;

Comment 1 Steve Tyler 2010-09-10 20:19:41 UTC
Created attachment 446584 [details]
messages.bz2

This has some related log messages with the same time stamp.
F14 running on a VM.

Comment 2 Daniel Walsh 2010-09-13 14:41:44 UTC
Fixed in selinux-policy-3.9.4-1.fc14

Comment 3 Adam Williamson 2010-09-13 21:28:16 UTC
This should block final - "In most cases, there must be no SELinux 'AVC: denied' messages or abrt crash notifications on initial boot and subsequent login (see Blocker_Bug_FAQ) " (I hit this just running desktop validation tests on Beta TC1)



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 4 Fedora Update System 2010-09-22 23:03:15 UTC
selinux-policy-3.9.5-3.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-3.fc14

Comment 5 Fedora Update System 2010-09-23 19:32:55 UTC
selinux-policy-3.9.5-3.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-3.fc14

Comment 6 Fedora Update System 2010-09-25 05:37:21 UTC
selinux-policy-3.9.5-3.fc14 has been pushed to the Fedora 14 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.