fetchmail is blocked by SELinux
Hi fellows,
I am having a problem with fetchmail not working at boot time. I figure out the problem is related to SElinux. The facts: I create a "/etc/fetchmailrc" file and put "/usr/bin/fetchmail -f /etc/fetchmailrc" at the end of "/etc/rc.local" in FC5. After the computer finish the boot, I can see fetchmail is running, but there is no messages at "/var/log/fetchamail.log" as expected. No avc error messages in /var/log/messages, either. Code:
bash-3.1$ ls -l /var/log/fetchmail.log Code:
May 10 08:04:00 gold kernel: audit(1147259040.523:514): avc: denied { write } for pid=2058 comm="fetchmail" name="[12088]" dev=pipefs ino=12088 scontext=system_u:system_r:fetchmail_t:s0 tcontext=system_u:system_r:fetchmail_t:s0 tclass=fifo_file Code:
[root@gold ~]# fetchmail -f /etc/fetchmailrc I read the SElinux FAQ but I can't find a way to solve this. fetchmail is not listed as a service in system-config-security tool, so I am lost. Any ideas and comments will be welcome ! thanks, |
I start fetchmail from cron with an
@reboot fetchmail -d 600 statement .fetchmailrc sits in /root Works fine under SELinux, but perhaps not the ideal method |
you may have the same problem as me...
run: service fetchmail status if it says locked & dead run service fetchmail cleanup then service fetchmail start (all above as root) The problem is SElinux but as yet Idon't know how to solve, I have posted a simlar message in FedoraForum-->Security Mark |
partially solved
Quote:
This is not the ideal method but it is better than nothing. At least it works ! Code:
@reboot fetchmail -f /etc/fetchmailrc |
Nice to get some completed feedback. Thanks
|
All times are GMT -5. The time now is 12:34 PM. |