Bug 654049

Summary: SELinux is preventing /sbin/cgconfigparser "fsetid" access .
Product: [Fedora] Fedora Reporter: Dhaval Giani <dhaval.bugzilla>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dhaval.bugzilla, dwalsh, mglantz, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e0ae50e38660e0522af4606d6aca54e59b8ae4f35107aec4d2e120c4201a6644
Fixed In Version: selinux-policy-3.9.7-12.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-21 22:00:33 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 Dhaval Giani 2010-11-16 17:59:42 UTC
Summary:

SELinux is preventing /sbin/cgconfigparser "fsetid" access .

Detailed Description:

[cgconfigparser has a permissive type (cgconfig_t). This access was not denied.]

SELinux denied access requested by cgconfigparser. It is not expected that this
access is required by cgconfigparser 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                unconfined_u:system_r:cgconfig_t:s0
Target Context                unconfined_u:system_r:cgconfig_t:s0
Target Objects                None [ capability ]
Source                        cgconfigparser
Source Path                   /sbin/cgconfigparser
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           libcgroup-0.36.2-5.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-10.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.6-48.fc14.x86_64 #1 SMP
                              Fri Oct 22 15:36:08 UTC 2010 x86_64 x86_64
Alert Count                   18
First Seen                    Tue 16 Nov 2010 06:57:51 PM CET
Last Seen                     Tue 16 Nov 2010 06:57:51 PM CET
Local ID                      3673dde8-9783-4a98-952b-8b2e77a8eb6b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1289930271.251:37): avc:  denied  { fsetid } for  pid=3164 comm="cgconfigparser" capability=4  scontext=unconfined_u:system_r:cgconfig_t:s0 tcontext=unconfined_u:system_r:cgconfig_t:s0 tclass=capability

node=(removed) type=AVC msg=audit(1289930271.251:37): avc:  denied  { fsetid } for  pid=3164 comm="cgconfigparser" capability=4  scontext=unconfined_u:system_r:cgconfig_t:s0 tcontext=unconfined_u:system_r:cgconfig_t:s0 tclass=capability

node=(removed) type=SYSCALL msg=audit(1289930271.251:37): arch=c000003e syscall=90 success=yes exit=0 a0=1b30560 a1=1fd a2=0 a3=1 items=0 ppid=3156 pid=3164 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="cgconfigparser" exe="/sbin/cgconfigparser" subj=unconfined_u:system_r:cgconfig_t:s0 key=(null)



Hash String generated from  catchall,cgconfigparser,cgconfig_t,cgconfig_t,capability,fsetid
audit2allow suggests:

#============= cgconfig_t ==============
allow cgconfig_t self:capability fsetid;

Comment 1 Daniel Walsh 2010-11-16 18:04:35 UTC
Miroslav we should allow this.

Comment 2 Miroslav Grepl 2010-11-18 14:43:32 UTC
Fixed in selinux-policy-3.9.7-12.fc14

Comment 3 Fedora Update System 2010-11-19 13:22:22 UTC
selinux-policy-3.9.7-12.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 4 Fedora Update System 2010-11-19 22:40:38 UTC
selinux-policy-3.9.7-12.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.7-12.fc14

Comment 5 Fedora Update System 2010-11-21 21:58:57 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.