Bug 647031

Summary: SELinux is preventing /usr/bin/python "setattr" access on /etc/dhcp/manager-settings.conf.
Product: [Fedora] Fedora Reporter: leigh scott <leigh123linux>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 13CC: alexander.hunt2005, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7321e8807be317bd3d02d398a5cb5536365e41f3d1817138df65d97049b6158c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-27 12:43:38 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 leigh scott 2010-10-26 21:19:55 UTC
Summary:

SELinux is preventing /usr/bin/python "setattr" access on
/etc/dhcp/manager-settings.conf.

Detailed Description:

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

SELinux denied access requested by wicd. It is not expected that this access is
required by wicd 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:NetworkManager_t:s0
Target Context                system_u:object_r:etc_t:s0
Target Objects                /etc/dhcp/manager-settings.conf [ file ]
Source                        wicd
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.6.4-27.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-68.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.34.7-61.fc13.i686
                              #1 SMP Tue Oct 19 04:42:47 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Tue 26 Oct 2010 22:16:30 BST
Last Seen                     Tue 26 Oct 2010 22:16:30 BST
Local ID                      72139f1c-e988-4f7f-a69a-16615b55107d
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1288127790.339:28): avc:  denied  { setattr } for  pid=1698 comm="wicd" name="manager-settings.conf" dev=sda1 ino=84314 scontext=unconfined_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1288127790.339:28): arch=40000003 syscall=15 success=yes exit=0 a0=9c6fbe8 a1=180 a2=5067880 a3=98b5050 items=0 ppid=1 pid=1698 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="wicd" exe="/usr/bin/python" subj=unconfined_u:system_r:NetworkManager_t:s0 key=(null)



Hash String generated from  catchall,wicd,NetworkManager_t,etc_t,file,setattr
audit2allow suggests:

#============= NetworkManager_t ==============
allow NetworkManager_t etc_t:file setattr;

Comment 1 Miroslav Grepl 2010-10-27 12:43:38 UTC

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