SELinux Custom Policy

export NAME="newrelic-daemon"
sudo audit2allow -m "${NAME}" -i /var/log/audit/audit.log > ${NAME}.te
sudo setup_semodule ${NAME}
checkmodule -M -m -o ${NAME}.mod ${NAME}.te
semodule_package -o ${NAME}.pp -m ${NAME}.mod
semodule -i ${NAME}.pp

References: