───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ File: /usr/lib/udev/rules.d/41-nitrokey.rules ───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 1 │ # 2 │ # Copyright (c) 2015-2022 Nitrokey GmbH 3 │ # 4 │ # This file is part of libnitrokey. 5 │ # 6 │ # libnitrokey is free software: you can redistribute it and/or modify 7 │ # it under the terms of the GNU Lesser General Public License as published by 8 │ # the Free Software Foundation, either version 3 of the License, or 9 │ # any later version. 10 │ # 11 │ # libnitrokey is distributed in the hope that it will be useful, 12 │ # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 │ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 │ # GNU General Public License for more details. 15 │ # 16 │ # You should have received a copy of the GNU Lesser General Public License 17 │ # along with libnitrokey. If not, see . 18 │ # 19 │ # SPDX-License-Identifier: LGPL-3.0 20 │ # 21 │ 22 │ # Here rules in new style should be provided. Matching devices should be tagged with 'uaccess'. 23 │ # File prefix number should be lower than 73, to be correctly processed by the Udev. 24 │ # Recommended udev version: >= 188. 25 │ # 26 │ ACTION!="add|change", GOTO="u2f_end" 27 │ 28 │ # Nitrokey U2F 29 │ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="f1d0", TAG+="uaccess" 30 │ # Nitrokey FIDO U2F 31 │ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="4287", TAG+="uaccess" 32 │ # Nitrokey FIDO2 33 │ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42b1", TAG+="uaccess" 34 │ # Nitrokey 3 35 │ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42b2", TAG+="uaccess" 36 │ # Nitrokey 3 Bootloader 37 │ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42dd", TAG+="uaccess" 38 │ # Nitrokey 3 Bootloader NRF 39 │ ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42e8", TAG+="uaccess" 40 │ 41 │ LABEL="u2f_end" 42 │ 43 │ 44 │ SUBSYSTEM!="usb", GOTO="gnupg_rules_end" 45 │ ACTION!="add", GOTO="gnupg_rules_end" 46 │ 47 │ # USB SmartCard Readers 48 │ ## Crypto Stick 1.2 49 │ ATTR{idVendor}=="20a0", ATTR{idProduct}=="4107", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", TAG+="uaccess" 50 │ ## Nitrokey Pro 51 │ ATTR{idVendor}=="20a0", ATTR{idProduct}=="4108", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", TAG+="uaccess" 52 │ ## Nitrokey Pro Bootloader 53 │ ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42b4", TAG+="uaccess" 54 │ ## Nitrokey Storage 55 │ ATTR{idVendor}=="20a0", ATTR{idProduct}=="4109", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", TAG+="uaccess" 56 │ ## Nitrokey Storage Bootloader 57 │ ATTR{idVendor}=="03eb", ATTR{idProduct}=="2ff1", TAG+="uaccess" 58 │ ## Nitrokey Start 59 │ ATTR{idVendor}=="20a0", ATTR{idProduct}=="4211", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", TAG+="uaccess" 59 │ ATTR{idVendor}=="20a0", ATTR{idProduct}=="4211", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", TAG+="uaccess" 60 │ ## Nitrokey HSM 61 │ ATTR{idVendor}=="20a0", ATTR{idProduct}=="4230", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", TAG+="uaccess" 62 │ 63 │ LABEL="gnupg_rules_end" 64 │ 65 │ 66 │ # Nitrokey Storage dev Entry 67 │ KERNEL=="sd?1", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="4109", SYMLINK+="nitrospace"