Bug 574523

Summary: SELinux is preventing updatedb "getattr" access on /mnt/s2/SFU/dev/ttyn39.
Product: [Fedora] Fedora Reporter: James Barrett <james>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:246e11e6453f0da568930b605422bfeee88d2e199bbb870ae5a6b76b4cb92900
Fixed In Version: selinux-policy-3.6.32-106.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 02:11:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Barrett 2010-03-17 17:56:12 UTC
Summary:

SELinux is preventing updatedb "getattr" access on /mnt/s2/SFU/dev/ttyn39.

Detailed Description:

SELinux denied access requested by updatedb. It is not expected that this access
is required by updatedb 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:system_r:locate_t:s0-s0:c0.c1023
Target Context                system_u:object_r:fusefs_t:s0
Target Objects                /mnt/s2/SFU/dev/ttyn39 [ chr_file ]
Source                        updatedb
Source Path                   updatedb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-99.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux lt1.intranet.bluepenguintechnologies.com
                              2.6.31.12-174.2.22.fc12.i686.PAE #1 SMP Fri Feb 19
                              19:10:04 UTC 2010 i686 athlon
Alert Count                   1
First Seen                    Wed 17 Mar 2010 01:13:03 PM EDT
Last Seen                     Wed 17 Mar 2010 01:13:03 PM EDT
Local ID                      a0cac9ee-0aa3-44cc-adf8-49f26633c22d
Line Numbers                  

Raw Audit Messages            

node=lt1.intranet.bluepenguintechnologies.com type=AVC msg=audit(1268845983.958:159): avc:  denied  { getattr } for  pid=6276 comm="updatedb" path="/mnt/s2/SFU/dev/ttyn39" dev=sda2 ino=241058 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fusefs_t:s0 tclass=chr_file



Hash String generated from  catchall,updatedb,locate_t,fusefs_t,chr_file,getattr
audit2allow suggests:

#============= locate_t ==============
allow locate_t fusefs_t:chr_file getattr;

Comment 1 Daniel Walsh 2010-03-18 16:04:16 UTC
Miroslav,

Add

fs_getattr_all_blk_files(locate_t)
fs_getattr_all_chr_files(locate_t)

interfaces defined in rawhide.

Comment 2 Miroslav Grepl 2010-03-19 16:53:40 UTC
Fixed in selinux-policy-3.6.32-105.fc12

Comment 3 Fedora Update System 2010-03-23 18:03:06 UTC
selinux-policy-3.6.32-106.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-106.fc12

Comment 4 Fedora Update System 2010-03-24 23:30:15 UTC
selinux-policy-3.6.32-106.fc12 has been pushed to the Fedora 12 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: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-106.fc12

Comment 5 Fedora Update System 2010-03-30 02:09:49 UTC
selinux-policy-3.6.32-106.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.