-Never worked on a selinux enabled box before; seems it's interfering with the snmpd daemon's access to it's config file (/etc/snmp/snmpd.conf).
uname -a
Linux zzz.zzz.zzz 2.6.9-55.0.0.0.2.ELsmp #1 SMP Wed May 2 14:59:56 PDT 2007 i686 i686 i386 GNU/Linux
snmpd -v
NET-SNMP version: 5.1.2
I get the following error when I try to start snmpd;
kernel: audit(1194378789.325:8): avc: denied { read } for pid=4257 comm="snmpd" name="snmpd.conf" dev=dm-0 ino=118759 scontext=root:system_r:snmpd_t tcontext=user_u
bject_r:user_home_t tclass=file
I was able to chcon -u root snmpd.conf - but trying to set the role or type gives me a "permission denied". I'm root!?
What am I missing? Or better yet what is the secret incantation I need to get the permissions correct on this file so I can get snmpd running?
TIA,
-Chris