unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Udev Rule Not Triggered
@ 2021-08-29 13:39 Antwane Mason
  2021-08-29 13:53 ` pelzflorian (Florian Pelz)
  0 siblings, 1 reply; 13+ messages in thread
From: Antwane Mason @ 2021-08-29 13:39 UTC (permalink / raw)
  To: help-guix

I am trying to use my onlykey hardware based password manager with the
onlykey-cli but am unable to manipulate the device without root
permissions. After trying some debugging steps, I noticed that the udev
rule that I defined in my guix system config is not being triggered. Can
anyone spot anything wrong with my system configuration or is there
something else that I am missing?

Onlykey udev rule

*--8<---------------cut here---------------start------------->8---*

(define %onlykey-udev-rule
  (udev-rule
   "49-onlykey.rules"
   (string-append "ATTRS{idVendor}==\"1d50\", ATTRS{idProduct}==\"60fc\",
ENV{ID_MM_DEVICE_IGNORE}=\"1\""
                  "ATTRS{idVendor}==\"1d50\", ATTRS{idProduct}==\"60fc\",
ENV{MTP_NO_PROBE}=\"1\""
                  "SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"1d50\",
ATTRS{idProduct}==\"60fc\", MODE:=\"0666\""
                  "KERNEL==\"ttyACM*\", ATTRS{idVendor}==\"1d50\",
ATTRS{idProduct}==\"60fc\", MODE:=\"0666\""
                  ; Following is to automatically set current time for OTP
                  ; "SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"1d50\",
ATTRS{idProduct}==\"60fc\", MODE:=\"0660\", GROUP:=\"onlykey\",
RUN+=\"/usr/local/bin/onlykey-cli settime\""
                  ; "KERNEL==\"ttyACM*\", ATTRS{idVendor}==\"1d50\",
ATTRS{idProduct}==\"60fc\", MODE:=\"0660\", GROUP:=\"onlykey\",
RUN+=\"/usr/local/bin/onlykey-cli settime\""
                  )))

*--8<---------------cut here---------------end--------------->8---*


Included udev rule in services section of config

*--8<---------------cut here---------------start------------->8---*

(services (append (list (service gnome-desktop-service-type)
                          (service xfce-desktop-service-type)
                          (bluetooth-service #:auto-enable? #t)
                          (udev-rules-service 'onlykey-usb
%onlykey-udev-rule)
                          (set-xorg-configuration
                           (xorg-configuration
                            (keyboard-layout keyboard-layout))))
                    %desktop-services))



*--8<---------------cut here---------------end--------------->8---*

Udev debug info indicating that 49-onlykey.rules is not triggered.











































































*--8<---------------cut
here---------------start------------->8---antwane@wmguix /dev/usb$
sudo udevadm test $(udevadm info -q path -n /dev/bus/usb/001/009)
calling: testversion 3.2.9This program is for debugging only, it does
not run any programspecified by a RUN key. It may show incorrect
results, becausesome values may be different, or not available at a
simulation run.=== trie on-disk ===tool version:          3file size:
       8270736 bytesheader size             80 bytesstrings
2110312 bytesnodes              6160344 bytesLoad module
indextimestamp of
'/gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/etc/udev/rules.d'
changedReading rules file:
/gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/50-udev-default.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-block.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-cdrom_id.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-drm.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-evdev.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-input-id.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-persistent-alsa.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-persistent-input.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-persistent-storage-tape.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-persistent-storage.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-persistent-v4l.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-sensor.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/60-serial.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/64-btrfs.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/70-joystick.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/70-mouse.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/70-touchpad.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/75-net-description.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/75-probe_mtd.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/78-sound-card.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/80-drivers.rulesReading
rules file: /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/80-net-name-slot.rulesrules
contain 24576 bytes tokens (2048 * 12 bytes), 9493 bytes strings1086
strings (16592 bytes), 683 de-duplicated (7503 bytes), 404 trie nodes
usedIMPORT builtin 'usb_id'
/gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/50-udev-default.rules:13IMPORT
builtin 'hwdb' /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/50-udev-default.rules:13MODE
0664 /gnu/store/aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9/lib/udev/rules.d/50-udev-default.rules:45handling
device node '/dev/bus/usb/001/009', devnum=c189:8, mode=0664, uid=0,
gid=0preserve permissions /dev/bus/usb/001/009, 020664, uid=0,
gid=0preserve already existing symlink '/dev/char/189:8' to
'../bus/usb/001/009'created db file '/run/udev/data/c189:8' for
'/devices/pci0000:00/0000:00:01.3/0000:03:00.0/usb1/1-3'ACTION=addBUSNUM=001DEVNAME=/dev/bus/usb/001/009DEVNUM=009DEVPATH=/devices/pci0000:00/0000:00:01.3/0000:03:00.0/usb1/1-3DEVTYPE=usb_deviceDRIVER=usbID_BUS=usbID_MODEL=ONLYKEYID_MODEL_ENC=ONLYKEYID_MODEL_FROM_DATABASE=OnlyKey
Two-factor Authentication and Password
SolutionID_MODEL_ID=60fcID_REVISION=0100ID_SERIAL=CRYPTOTRUST_ONLYKEY_1000000000ID_SERIAL_SHORT=1000000000ID_USB_INTERFACES=:030101:030000:ID_VENDOR=CRYPTOTRUSTID_VENDOR_ENC=CRYPTOTRUSTID_VENDOR_FROM_DATABASE=OpenMoko,
Inc.ID_VENDOR_ID=1d50MAJOR=189MINOR=8PRODUCT=1d50/60fc/100SUBSYSTEM=usbTYPE=0/0/0USEC_INITIALIZED=20491075910Unload
module index--8<---------------cut
here---------------end--------------->8---*



Regards,
Antwane

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-08-31 21:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-29 13:39 Udev Rule Not Triggered Antwane Mason
2021-08-29 13:53 ` pelzflorian (Florian Pelz)
2021-08-29 14:01   ` Antwane Mason
2021-08-29 14:28     ` pelzflorian (Florian Pelz)
2021-08-29 14:42       ` pelzflorian (Florian Pelz)
2021-08-29 15:22         ` Antwane Mason
2021-08-29 15:44           ` Antwane Mason
2021-08-29 17:23             ` pelzflorian (Florian Pelz)
2021-08-29 18:54               ` Antwane Mason
2021-08-29 21:39                 ` Antwane Mason
2021-08-29 22:12                   ` pelzflorian (Florian Pelz)
2021-08-29 22:17     ` Tobias Geerinckx-Rice
2021-08-31 21:59       ` Antwane Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).