Bug#923542: Error: parsed key is not in key set: 'RuleFile'

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#923542: Error: parsed key is not in key set: 'RuleFile'

Enrico Zini via nm
Package: usbguard
Version: 0.7.4+ds-1+b1
Severity: normal

Hello,

thank you for maintaining usbguard.

I installed it and I wanted to give IPC access to my user.

I ran this:

    usbguard add-user enrico -p list -d list -e listen -P list

And I got:

    [1551462757.473] (E) Error: parsed key is not in key set: 'RuleFile'
    ERROR: KeyValueParser: Parser: Invalid key

It seems to refer to this:

    # grep RuleFile /etc/usbguard/usbguard-daemon.conf
    # RuleFile=/path/to/rules.conf
    RuleFile=/etc/usbguard/rules.conf

It looks like default config file having options that are not supported
anymore/yet, or something like that?


Enrico


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_IE:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages usbguard depends on:
ii  dbus              1.12.12-1
ii  libaudit1         1:2.8.4-2
ii  libc6             2.28-7
ii  libcap-ng0        0.7.9-2
ii  libdbus-1-3       1.12.12-1
ii  libdbus-glib-1-2  0.110-4
ii  libgcc1           1:8.2.0-21
ii  libglib2.0-0      2.58.3-1
ii  libseccomp2       2.3.3-4
ii  libstdc++6        8.2.0-21
ii  libusbguard0      0.7.4+ds-1+b1

usbguard recommends no packages.

usbguard suggests no packages.

-- Configuration Files:
/etc/usbguard/usbguard-daemon.conf [Errno 13] Permission denied: '/etc/usbguard/usbguard-daemon.conf'

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#923542: Error: parsed key is not in key set: 'RuleFile'

Birger Schacht
control: forwarded -1 https://github.com/USBGuard/usbguard/issues/269

Hi Enrico!

thanks for filing a bug! Apparently its not unsupported options (it
happens with every key in the config file) but the parser seems broken.
There is an issue in the upstream issue tracker about this, thus setting
the forwarded address.

cheers,
Birger