#104 Devices with file names cause problems

main
closed
nobody
None
5
2014-09-08
2014-02-24
Wes Hardaker
No

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.

Discussion

  • John Horne
    John Horne
    2014-02-24

    What version of rkhunter are you running?

     
  • Wes Hardaker
    Wes Hardaker
    2014-02-26

    rkhunter-1.4.0-6.fc19.noarch

    (from the fedora 19 distribution)

     
  • John Horne
    John Horne
    2014-02-26

    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*"

     
  • Wes Hardaker
    Wes Hardaker
    2014-03-19

    Thanks, this did solve my problems!

     
  • unSpawn
    unSpawn
    2014-04-18

    • status: open --> closed