Red Hat Bugzilla – Bug 461644
SELinux is preventing snmpd (snmpd_t) "unlink" to master (var_t)
Last modified: 2012-10-16 04:33:43 EDT
Description of problem:
Base policy contains no file context is defined for /var/agentx/master unix domain socket. This is the default socket for establishing master<->subagent communications.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. disable SELinux
2. Configure snmpd with subagents.
3. Verify snmpd is working correctly
4. change SELinux enforcement to "enforcing"
5. reboot to put changes into effect.
6. Note SELinux exception.
1. Configure snmpd with subagents
2. service snmpd stop
3. restorecon -r /var/agentx
4. service snmpd start
5. Note SELinux exception.
Relabeling places a var_t label on /var/agentx/master
snmpd is prevented from communicating with its subagents
Relabeling places a snmpd_var_lib_t label on /var/agentx/master
There must be something wrong in the policy - snmpd creates /var/agentx/master correctly with user_u:object_r:snmpd_var_lib_t context, but restorecon sets it to 'system_u:object_r:var_t', which is wrong.
To File Context
Fixed in selinux-policy-2.4.6-157
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.