Devices with file names cause problems
Brought to you by:
dogsbody,
dogsbodymark
I've been struggling to ok a /dev filename that I can't seem to match against because the filename contains spaces. The full filename is:
/dev/shm/libv4l-mythtv:PCI:0000:08:01.0:Hauppauge WinTV PVR-150
And I've tried various combinations of ALLDEVFILE, no of which work.
ALLOWDEVFILE="/dev/shm/libv4l-mythtv:PCI:0000:08:01.0:Hauppauge WinTV PVR-150"
ALLOWDEVFILE=/dev/shm/libv4l-mythtv:PCI:0000:08:01.0:Hauppauge*
All of which I get mail for saying:
Invalid ALLOWDEVFILE configuration option: Invalid pathname: WinTV
Invalid ALLOWDEVFILE configuration option: Invalid pathname: PVR-150
which certainly indicates it's not handling the space properly and taking the next two arguments as new options.
What version of rkhunter are you running?
rkhunter-1.4.0-6.fc19.noarch
(from the fedora 19 distribution)
For old versions of RKH replace the spaces with a '%' sign:
ALLOWDEVFILE="/dev/shm/libv4l-mythtv:PCI:0000:08:01.0:Hauppauge%WinTV%PVR-150"
or use a wildcard:
ALLOWDEVFILE="/dev/shm/libv4l-mythtv:PCI:0000:08:01.0:Hauppauge*"
Thanks, this did solve my problems!