/srv/irclogs.ubuntu.com/2022/05/09/#snappy.txt

mborzeckimorning06:07
pstolowskimorning07:07
mupPR snapd#11765 opened: deps: bump libseccomp to include build fixes, run unit tests using CC=clang <Simple 😃> <Needs security review> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/11765>08:16
mupPR snapd#11766 opened: wrappers: refactor EnsureSnapServices <Created by Meulengracht> <https://github.com/snapcore/snapd/pull/11766>08:36
mupPR snapd#11767 opened: osutil/disks: partition UUID lookup <Simple 😃> <factory reset 🔌> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/11767>10:02
mupPR snapd#11768 opened: o/snapshotstate: add ~/Snap to snapshots <Created by MiguelPires> <https://github.com/snapcore/snapd/pull/11768>11:02
mupPR snapd#11761 closed: image/preseed: umount the base snap last after writable paths <Preseeding 🍞> <Created by stolowski> <Closed by stolowski> <https://github.com/snapcore/snapd/pull/11761>15:08
mupPR snapd#11761 opened: image/preseed: umount the base snap last after writable paths <Preseeding 🍞> <Created by stolowski> <https://github.com/snapcore/snapd/pull/11761>15:23
mupPR snapd#11761 closed: image/preseed: umount the base snap last after writable paths <Preseeding 🍞> <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/11761>19:29
MrConorAEhi snapcrafters! i'd like to modify the firefox snap apparmor profile to allow it to access USB security keys22:24
MrConorAEi've found a set of modifications that seem to work, at https://askubuntu.com/questions/1175950/apparmor-enforce-mode-prevents-firefox-from-reading-u2f-security-key22:25
MrConorAEand i can make the changes manually, but every time the snap refreshes it overwrites my changes22:25
MrConorAEis there a) any chance of getting these changes merged into the actual snap itself and b) a way to keep these changes between refreshes?22:25
ograMrConorAE, if you have an USB key that is not working, you shuld rater get it added to the u2f interface https://forum.snapcraft.io/t/the-u2f-devices-interface/9722 ... 23:04
ograMrConorAE, i.e. it should likely be added to the list at https://github.com/snapcore/snapd/blob/master/interfaces/builtin/u2f_devices.go#L4423:04
MrConorAEjust to clarify: this is a new interface that I would connect Firefox to (with snap connect)?23:05
ograit is an old interface that firefox auto-connects already ... but unknown keys will be ignored23:05
MrConorAEhm23:06
MrConorAEproblem is that i'm using WearAuthn, an app that lets you use a WearOS watch as a security key23:06
MrConorAEmeaning that each watch model will appear differently23:06
MrConorAEhttps://github.com/fmeum/WearAuthn23:06
ograthen you should open a thread on forum.snapcraft.io in the snapd category 23:07
MrConorAEit's mentioned in their README23:07
MrConorAElike this? https://forum.snapcraft.io/t/modify-firefox-apparmor-to-access-usb-security-keys/2991523:07
MrConorAEi'll modify it in a moment to add the WearAuthn bit23:08
ograerr, no23:08
MrConorAEok, withdrew it23:09
ograpretty much the opposite 🙂 start a discussion how to get your wearOS stuff integrated properly instead of promoting a hack to work around confinement 23:09
ograif it shows up as hidraw device there is perhaps a common udev criteria or whatnot that makes it possible to identify such devices and grant them permissions23:10
ograthe u2f interface clearly grants all you need, but wants a way to check the device is known 23:11
ograthat should likely get etended23:11
ogra*extended23:11
MrConorAEah ok23:17
MrConorAEi've opened an issue on WearAuthn to ask what vendor/id it uses23:17
MrConorAEif it's one consistent one, then i can ask for that to be added to the u2f list23:17
ogra👍23:18
MrConorAEif not - e.g. it uses the id of your bluetooth adapter, or it is actually different for each watch model - then could we ask u2f to add that? or is that not gonna happen23:19
ograthat's something you should start a discussion about on the forum 😉23:19
MrConorAEok :)23:19
MrConorAEthanks a lot for your help23:19
ogranp23:20
MrConorAEgetting it integrated into the snap is definetly a better solution than hacking it around the confinement23:20
ograyep23:20
MrConorAEquick question23:28
MrConorAEi just checked, and it does show up as a hidraw device23:28
MrConorAEhow do i check what the id is for that?23:28
MrConorAEit's not in lsusb23:29

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!