{"action":"created","issue":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3564","repository_url":"https://api.github.com/repos/QubesOS/qubes-issues","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3564/labels{/name}","comments_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3564/comments","events_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3564/events","html_url":"https://github.com/QubesOS/qubes-issues/issues/3564","id":296126581,"number":3564,"title":"USB devices in dom0 are listed even though it's impossible to attach them","user":{"login":"micahflee","id":156128,"avatar_url":"https://avatars3.githubusercontent.com/u/156128?v=4","gravatar_id":"","url":"https://api.github.com/users/micahflee","html_url":"https://github.com/micahflee","followers_url":"https://api.github.com/users/micahflee/followers","following_url":"https://api.github.com/users/micahflee/following{/other_user}","gists_url":"https://api.github.com/users/micahflee/gists{/gist_id}","starred_url":"https://api.github.com/users/micahflee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahflee/subscriptions","organizations_url":"https://api.github.com/users/micahflee/orgs","repos_url":"https://api.github.com/users/micahflee/repos","events_url":"https://api.github.com/users/micahflee/events{/privacy}","received_events_url":"https://api.github.com/users/micahflee/received_events","type":"User","site_admin":false},"labels":[{"id":184545373,"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/C:%20core","name":"C: core","color":"cccccc","default":false},{"id":184545379,"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/C:%20qubes-manager","name":"C: qubes-manager","color":"cccccc","default":false},{"id":291578349,"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/UX","name":"UX","color":"009800","default":false},{"id":183969431,"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/milestones/17","html_url":"https://github.com/QubesOS/qubes-issues/milestone/17","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/milestones/17/labels","id":1083579,"number":17,"title":"Release 4.0","description":"* core-admin rewrite AKA core3","creator":{"login":"marmarek","id":726704,"avatar_url":"https://avatars1.githubusercontent.com/u/726704?v=4","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"open_issues":289,"closed_issues":376,"state":"open","created_at":"2015-04-25T20:32:26Z","updated_at":"2018-02-10T23:17:45Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2018-02-10T19:29:43Z","updated_at":"2018-02-11T03:07:35Z","closed_at":null,"author_association":"NONE","body":"#### Qubes OS version:\r\nR4.0\r\n\r\n#### Affected TemplateVMs: \r\nfedora-26, debian-9\r\n\r\n### Steps to reproduce the behavior:\r\nI have Qubes 4.0 installed on a desktop computer that doesn't have any PS2 ports for a keyboard, so I'm forced to use a USB keyboard. Because of this, I can't use a USB VM. If I did, my keyboard wouldn't work without sys-usb to e.g. login to my account, or power on sys-usb if it were powered off, etc.\r\n\r\nWhen I plug a yubikey into the computer, I get the notification:\r\n\r\n`Device dom0:1-1 Yubico_Yubikey_4_OTP+U2F+CCID is available`\r\n\r\nIn my fedora-26 AppVM called `usb-test-fedora`, I see my yubikey isn't seen, as expected:\r\n\r\n```\r\n[user@usb-test-fedora ~]$ lsusb\r\nBus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd \r\nBus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\n[user@usb-test-fedora ~]$ \r\n```\r\n\r\nI click the devices icon in the systray and attach the yubikey device to `usb-test-fedora`. Qubes seems to think the device is successfully attached to the VM. But when I run `lsusb` again, I don't see the yubikey (I do see more Linux Foundation hubs though):\r\n\r\n```\r\n[user@usb-test-fedora ~]$ lsusb\r\nBus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub\r\nBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\r\nBus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd \r\nBus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\n[user@usb-test-fedora ~]$ \r\n```\r\n\r\nSame with a debian-9 template. Before attaching the yubikey:\r\n\r\n```\r\nuser@usb-test-debian:~$ lsusb\r\nBus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd \r\nBus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\n```\r\n\r\nAfter attaching the yubikey:\r\n\r\n```\r\nuser@usb-test-debian:~$ lsusb\r\nBus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub\r\nBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\r\nBus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd \r\nBus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\n```\r\n\r\nWhen I run `lsusb` from dom0 however, I see the device:\r\n\r\n```\r\nBus 001 Device 012: ID 1050:0407 Yubico.com Yubikey 4 OTP+U2F+CCID\r\n```\r\n\r\nI haven't tested with other USB devices besides yubikeys yet.\r\n\r\nAttaching block devices from dom0 appears to work fine.\r\n"},"comment":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/comments/364716010","html_url":"https://github.com/QubesOS/qubes-issues/issues/3564#issuecomment-364716010","issue_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/3564","id":364716010,"user":{"login":"marmarek","id":726704,"avatar_url":"https://avatars1.githubusercontent.com/u/726704?v=4","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T03:07:35Z","updated_at":"2018-02-11T03:07:35Z","author_association":"OWNER","body":"Salt method documented there will be available as an update to 4.0 (so - not yet).\r\nUse manual one (same as in R3.2)."}}
{"actor":{"display_login":"marmarek"}}