Bug 556688

Summary: SELinux is preventing /usr/sbin/snmpd "chown" access
Product: [Fedora] Fedora Reporter: Anthony Messina <amessina>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: low    
Version: 12   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.6.32-73.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-21 22:56:40 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 Anthony Messina 2010-01-19 04:22:16 UTC
Using selinux-policy-targeted-3.6.32-66.fc12.noarch, the snmpd daemon is unable to chown /var/agentx/master with the following snmpd.conf config:

master agentx
agentXSocket /var/agentx/master
agentXPerms 0660 0555 nobody asterisk

node=elburn.messinet.com type=AVC msg=audit(1263874540.957:7): avc:  denied  { chown } for  pid=1312 comm="snmpd" capability=0 scontext=system_u:system_r:snmpd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=capability

node=elburn.messinet.com type=SYSCALL msg=audit(1263874540.957:7): arch=40000003 syscall=212 success=no exit=-1 a0=bfa3b434 a1=63 a2=1e4 a3=0 items=0 ppid=1 pid=1312 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="snmpd" exe="/usr/sbin/snmpd" subj=system_u:system_r:snmpd_t:s0 key=(null)

Comment 1 Daniel Walsh 2010-01-19 13:15:12 UTC
Miroslav, can you add this capability?

Comment 2 Miroslav Grepl 2010-01-19 13:21:03 UTC
Fixed in selinux-policy-3.6.32-72.fc12.noarch

Comment 3 Fedora Update System 2010-01-19 21:37:57 UTC
selinux-policy-3.6.32-73.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-73.fc12

Comment 4 Fedora Update System 2010-01-21 00:12:55 UTC
selinux-policy-3.6.32-73.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/F12/FEDORA-2010-0858

Comment 5 Anthony Messina 2010-01-21 22:56:40 UTC
fix confirmed in: selinux-policy-targeted-3.6.32-73.fc12.noarch

Comment 6 Anthony Messina 2010-01-22 13:31:57 UTC
Karma updated.

Comment 7 Fedora Update System 2010-01-28 01:01:05 UTC
selinux-policy-3.6.32-73.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.