Description of problem: With selinux set to enforcing, apcupsd has a fatal error when trying to start. Version-Release number of selected component (if applicable): selinux-policy-2.4.6-69.fc6 selinux-policy-targeted-2.4.6-69.fc6 apcupsd-3.12.4-5.fc6 How reproducible: Every time. Steps to Reproduce: 1. try to start apcupsd with selinux enforcing Actual results: apcupsd will not start Expected results: apcupsd should start Additional info: The APC UPS is connected through /dev/ttyS0 comm port. with selinux enforcing the following is entered in /var/log/messages: May 21 14:46:28 itox apcupsd[3510]: apcupsd FATAL ERROR in dumbsetup.c at line 53 Cannot open UPS port /dev/ttyS0: Permission denied May 21 14:46:28 itox apcupsd[3510]: apcupsd error shutdown completed with selinux permissive the following is entered in /var/log/messages: May 21 14:50:03 itox apcupsd[3640]: apcupsd 3.12.4 (19 August 2006) redhat startup succeeded May 21 14:50:03 itox apcupsd[3640]: NIS server startup succeeded
Please attach the avc messages from /var/log/audit/audit.log. You might also want to install setroubleshoot.
Here are the avc messages generated: May 22 11:05:20 itox kernel: audit(1179849920.498:17): avc: denied { write } for pid=16610 comm="apcupsd" name="[138631]" dev=pipefs ino=138631 scontext=system_u:system_r:apcupsd_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file May 22 11:05:20 itox kernel: audit(1179849920.499:18): avc: denied { write } for pid=16610 comm="apcupsd" name="[138631]" dev=pipefs ino=138631 scontext=system_u:system_r:apcupsd_t:s0 tcontext=system_u:system_r:unconfined_t:s0 tclass=fifo_file
Should be fixed in selinux-policy-2.4.6-80.fc6
Closed as all fixes are in the current release