Bug 546287

Summary: SELinux is preventing chcon (unconfined_t) "mac_admin" unconfined_t.
Product: [Fedora] Fedora Reporter: f_a_f12001
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:58c23dbd6bf68d61d54602520df317f2556cca71a1f1fc597f8d1bcf6b9cd190
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-10 16:29:04 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 f_a_f12001 2009-12-10 15:51:12 UTC
Summary:

SELinux is preventing chcon (unconfined_t) "mac_admin" unconfined_t.

Detailed Description:

SELinux denied access requested by chcon. It is not expected that this access is
required by chcon 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                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                None [ capability2 ]
Source                        chcon
Source Path                   /usr/bin/chcon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-7.2-1.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-53.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.29.5-191.fc11.i586
                              #1 SMP Tue Jun 16 23:11:39 EDT 2009 i686 i686
Alert Count                   4
First Seen                    Sun 30 Aug 2009 12:39:00 PM EET
Last Seen                     Sun 30 Aug 2009 12:41:26 PM EET
Local ID                      e1da5cfc-a694-473a-9afb-5dfc6576672e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1251628886.982:37): avc:  denied  { mac_admin } for  pid=3121 comm="chcon" capability=33 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=capability2

node=(removed) type=SYSCALL msg=audit(1251628886.982:37): arch=40000003 syscall=226 success=no exit=-22 a0=9fbae80 a1=a7bbbd a2=9fbc240 a3=27 items=0 ppid=2623 pid=3121 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="chcon" exe="/usr/bin/chcon" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-53.fc11,catchall,chcon,unconfined_t,unconfined_t,capability2,mac_admin
audit2allow suggests:

#============= unconfined_t ==============
allow unconfined_t self:capability2 mac_admin;

Comment 1 Daniel Walsh 2009-12-10 16:29:04 UTC

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