Bug 538589

Summary: SELinux is preventing chown (unconfined_t) "setattr" rpm_t.
Product: [Fedora] Fedora Reporter: Isaac Fischer <xwaver>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE 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:9f3e54127024c65e4a1be72a1d45ac94c6ae7733e0b092c3ad8b354720db8ee2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-18 21:36:13 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 Isaac Fischer 2009-11-18 21:22:11 UTC
Summary:

SELinux is preventing chown (unconfined_t) "setattr" rpm_t.

Detailed Description:

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

SELinux denied access requested by chown. It is not expected that this access is
required by chown 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                system_u:system_r:rpm_t:s0-s0:c0.c1023
Target Objects                fd [ dir ]
Source                        chown
Source Path                   /bin/chown
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-7.2-4.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-85.fc11
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.30.8-64.fc11.i586 #1 SMP Fri Sep 25
                              04:30:19 EDT 2009 i686 athlon
Alert Count                   1
First Seen                    Fri 23 Oct 2009 12:34:45 PM CDT
Last Seen                     Fri 23 Oct 2009 12:34:45 PM CDT
Local ID                      3cf32041-78f2-409b-8653-1de0e25d3695
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1256319285.15:246): avc:  denied  { setattr } for  pid=11052 comm="chown" name="fd" dev=proc ino=222013 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:system_r:rpm_t:s0-s0:c0.c1023 tclass=dir

node=(removed) type=SYSCALL msg=audit(1256319285.15:246): arch=40000003 syscall=298 success=yes exit=0 a0=8 a1=9e34240 a2=18f a3=18f items=0 ppid=8030 pid=11052 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="chown" exe="/bin/chown" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-85.fc11,catchall,chown,unconfined_t,rpm_t,dir,setattr
audit2allow suggests:

#============= unconfined_t ==============
allow unconfined_t rpm_t:dir setattr;

Comment 1 Daniel Walsh 2009-11-18 21:36:13 UTC

*** This bug has been marked as a duplicate of bug 538428 ***