Red Hat Bugzilla – Bug 505490
Could not access LIRC devices under Fedora 11
Last modified: 2009-08-21 17:33:22 EDT
Description of problem:
A failure happens when I try to start the lircd service under Fedora 11. Apparently, some wrong SELinux policy is blocking access to lirc devices under /dev directory. I am using the serial port LIRC driver. The kernel modules apparently load correctly, but any attempt to open the devices (with lircd or using a command such as mode2 to verify the remote control pulses) fails.
Version-Release number of selected component (if applicable):
LIRC is: lirc-0.8.5-2.fc11
SELinux policy is: selinux-policy-3.6.12-39.fc11
Steps to Reproduce:
1. Assuming that there is a serial port remote receiver connected to the serial port, load modules lirc_dev and lirc_serial:
setserial /dev/ttyS0 uart none
2. start lircd:
services lirc start
lircd fails to load.
setroubleshoot warning popup message appears (see attached description).
lircd should load normally and decode remote control codes (assuming that file /etc/lircd.conf is correctly configured).
The problem happens with Fedora 11. I did not experience this problem with Fedora 8/9/10 on my machine.
Created attachment 347508 [details]
setroubleshootd warning description
Please update your selinux-policy and selinux-policy-targeted packages.
According to policy -45 this device should be labeled
If on your machine this returns device_t then you need to update.
If it returns lirc_device_t then whatever application that created the device created it with the wrong label.
yum -y upgrade selinux-policy-targeted
should bring in the latest policy.