Para que meu serviço snmp funcione, eu executo o comando restorecon
nas bibliotecas envolvidas na execução do snmp.
restorecon -vv /lib64/libres*
restorecon -vv /lib64/libnsl*
restorecon -vv /lib64/libdl*
restorecon -vv /lib64/libm*
restorecon -vv /lib64/libcrypt*
restorecon -vv /lib64/libutil*
restorecon -vv /lib64/libpthread*
restorecon -vv /lib64/libc*
restorecon -vv /lib64/librpmdb*
restorecon -vv /usr/lib64/librpmdb-4.4.so
restorecon -vv /lib64/libselinux*
restorecon -vv /lib64/libnss3*
restorecon -vv /usr/lib64/libnss3.so
restorecon -vv /usr/lib64/libnssutil3.so
restorecon -vv /usr/lib64/libplds4.so
restorecon -vv /usr/lib64/libplc4.so
restorecon -vv /usr/lib64/libnspr4.so
restorecon -vv /lib64/librt.so.1
restorecon -vv /lib64/librt*
restorecon -vv /usr/lib64/libbz2.so.1
restorecon -vv /usr/lib64/libbz2*
restorecon -vv /lib64/libgcc_s*
restorecon -vv /usr/lib64/libsysfs*
restorecon -vv /usr/lib64/libsqlite3*
restorecon -vv /usr/lib64/libelf*
restorecon -vv /lib64/libsepol*
restorecon -vv /lib64/ld-linux-x86-64.so.2
restorecon -vv /lib64/ld-linux-x86-64*
restorecon -vv /lib64/ld-2.5.so
restorecon
redefiniu os contextos de segurança das bibliotecas acima de system_u:object_r:file_t:s0
para system_u:object_r:lib_t:s0