Bug 627751 - SELinux is preventing /bin/bash "getattr" access on /sbin/modprobe.
Summary: SELinux is preventing /bin/bash "getattr" access on /sbin/modprobe.
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:69f1b05f0a9...
: 627752 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2010-08-26 20:35 UTC by Gene Snider
Modified: 2010-09-08 04:31 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.0-2.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-09-08 04:31:14 UTC
Type: ---

Attachments (Terms of Use)

Description Gene Snider 2010-08-26 20:35:48 UTC

SELinux is preventing /bin/bash "getattr" access on /sbin/modprobe.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by governor-max-fr. It is not expected that this
access is required by governor-max-fr 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

Additional Information:

Source Context                system_u:system_r:devicekit_power_t:s0
Target Context                system_u:object_r:insmod_exec_t:s0
Target Objects                /sbin/modprobe [ file ]
Source                        governor-max-fr
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-3.fc14
Target RPM Packages           module-init-tools-3.11.1-2.fc13
Policy RPM                    selinux-policy-3.8.8-20.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) #1 SMP
                              Wed Aug 25 12:24:12 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Thu 26 Aug 2010 01:32:31 PM PDT
Last Seen                     Thu 26 Aug 2010 01:32:31 PM PDT
Local ID                      07d2ba52-cd68-4846-8d70-5592c2cbb005
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1282854751.730:5): avc:  denied  { getattr } for  pid=1701 comm="governor-max-fr" path="/sbin/modprobe" dev=dm-0 ino=20569 scontext=system_u:system_r:devicekit_power_t:s0 tcontext=system_u:object_r:insmod_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1282854751.730:5): arch=c000003e syscall=4 success=yes exit=0 a0=1533b60 a1=7ffff2d064e0 a2=7ffff2d064e0 a3=38df333150 items=0 ppid=1686 pid=1701 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="governor-max-fr" exe="/bin/bash" subj=system_u:system_r:devicekit_power_t:s0 key=(null)

Hash String generated from  catchall,governor-max-fr,devicekit_power_t,insmod_exec_t,file,getattr
audit2allow suggests:

#============= devicekit_power_t ==============
allow devicekit_power_t insmod_exec_t:file getattr;

Comment 1 Gene Snider 2010-08-26 20:46:10 UTC
This happened with systemd-8-1 and systemd-8-2.  There are 11 other AVC denials that occur during boot.  I only filed one other report, bug 627752.  Let me know if I should file the other ten.


Comment 2 Daniel Walsh 2010-08-27 00:15:43 UTC
Fixed in selinux-policy-3.9.0-1.fc14

Comment 3 Daniel Walsh 2010-08-27 00:16:16 UTC
*** Bug 627752 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2010-08-30 15:58:40 UTC
selinux-policy-3.9.0-2.fc14 has been submitted as an update for Fedora 14.

Comment 5 Fedora Update System 2010-08-30 19:37:22 UTC
selinux-policy-3.9.0-2.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.0-2.fc14

Comment 6 Fedora Update System 2010-09-08 04:29:31 UTC
selinux-policy-3.9.0-2.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.