/srv/irclogs.ubuntu.com/2022/02/11/#snappy.txt

mborzeckimorning06:47
mardymborzecki: hi! I think I need your help :-)06:59
mborzeckimardy: hey, what's up?06:59
mardyI have made these changes to snap-confine: https://github.com/snapcore/snapd/pull/1136706:59
mupPR #11367: snap-confine: ground work for homedirs support <⛔ Blocked> <Created by mardy> <https://github.com/snapcore/snapd/pull/11367>06:59
mardymany tests already work, some others don't07:00
mardyI see this error message: cannot update snap namespace: cannot recover from trespassing over /07:00
mardyI added some more debug now, and here's what I see: https://paste.ubuntu.com/p/DVSvY8NG5s/07:01
mardy(this is when running google:ubuntu-20.04-64:tests/main/docker-smoke)07:01
mborzeckimardy: hm this must be from snap-update-ns07:02
mardymborzecki: yes, and the problem is that I don't know what it does, and whether it's trying to do the right thing07:03
mborzeckihahaha, let me look at the code, maybe i can remember07:03
mardylike, should /etc/docker be restricted?07:04
mborzeckimardy: iirc the problem was that without those checks we could have modified directories on the host by accident07:04
mborzeckieg. /etc/ which is mounted from the host and isn't ro07:04
mardymborzecki: ok, then it looks like that /etc/docker should be restricted indeed07:06
mardybut then why is the test failing?07:07
mardyI guess I can try to run this test on the master branch, with some extra debugging, and compare the logs07:08
mborzeckimardy: is there a specific layout that docker snap.yaml has?07:08
* mardy checks07:08
mardymborzecki: yes, there's a bind on /etc/docker: https://github.com/docker-snap/docker-snap/blob/main/snap/snapcraft.yaml#L38-L4607:10
mardycould it be that my changes on snap-confine broke something and made the bind impossible to setup? Would that explain the error I'm seeing?07:10
mborzeckimardy: hm maybe, in theory snap-update-ns should either create tmpfs on /etc within the snap ns, then bind mount everything there, or if /etc/docker exists in /etc/already it would use that07:11
mborzeckiis it happy if you create /etc/docker on the host?07:11
mborzeckimardy: it's clearly creating a writable mock on /etc; https://pastebin.ubuntu.com/p/rjnK94bJYy/07:14
mardymborzecki: yes, it's happy, then. It still fails, but on another file (/etc/gitconfig): https://paste.ubuntu.com/p/qrjGx2rjwF/07:15
mborzeckimardy: maybe it's confused as there's tmpfs on / no too07:15
mborzeckis/no/now/07:15
mardymborzecki: ah, thanks, your logs give me some hints: "change.go:124: DEBUG: need to create writable mimic needed to create path "/etc/docker" (original error: cannot write to "/etc/docker" because it would affect the host in "/etc")"07:17
mardymborzecki: so, it expects an error like "cannot write to "/etc/docker" because it would affect the host in "/etc"", whereas with my changes it gets another error07:18
mborzeckimardy: yeah, that's what should happen, but i wonder why it doesn't, looking at the code07:18
mborzeckiaa07:18
mborzeckiok07:18
mborzeckithat explains it then07:18
mardymborzecki: thanks a lot, you made my day :-)07:19
mborzeckimardy: hm actually the logs sugges that it returns TrespassingError07:21
mardymborzecki: yes, trespassing error is returned in https://github.com/snapcore/snapd/blob/master/cmd/snap-update-ns/trespassing.go#L229, whereas with my changes it returns on line 222.07:26
mborzeckimardy: ah ok, so it already called createPath() which then calls itself again and fails with the error from 22207:28
mardymborzecki: thanks, then I'll add some debugging in there07:35
pstolowskimorning08:03
mborzeckipstolowski: hey08:06
mupPR snapd#11362 closed: libsnap-confine-private: string functions simplification <Simple 😃> <Created by mardy> <Merged by mardy> <https://github.com/snapcore/snapd/pull/11362>08:12
mardyhi pstolowski, mvo08:48
mvogood morning mardy pstolowski 08:48
mborzeckimardy: can you take a look at https://github.com/snapcore/snapd/pull/11372 ?09:04
mupPR #11372: interfaces/systemd: use batch systemd operations <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/11372>09:04
mardymborzecki: I see that the AppArmor profile for snap-confine has "/run/snapd/ns/snap.*.fstab w,", but I don't see where snap-confine is writing that file09:36
mupPR snapd#11375 opened: interfaces: add private /dev/shm support to shared-memory interface <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/11375>10:42
mupPR snapd#11376 opened: tests: skip ~/.snap migration test on openSUSE <Simple 😃> <Flaky Test> <Created by MiguelPires> <https://github.com/snapcore/snapd/pull/11376>11:07
miguelpiresmvo: can you merge https://github.com/snapcore/snapd/pull/11337 please? failures are unrelated11:14
mupPR #11337: many: fix leftover empty snap dirs <Simple 😃> <Created by MiguelPires> <https://github.com/snapcore/snapd/pull/11337>11:14
mardymborzecki: I noticed a build failure on arch, is it something that you are already aware of? https://github.com/snapcore/snapd/runs/5154941656?check_suite_focus=true11:15
mborzeckimardy: yes, there's some inconsistency at the mirrors i think11:17
mborzeckimardy: https://bugs.archlinux.org/task/73737 the joys of arch being a niche distro11:19
mborzeckiso even worse, than what i suspected11:20
mvomiguelpires: sure11:25
miguelpiresthank you11:25
mupPR snapd#11337 closed: many: fix leftover empty snap dirs <Simple 😃> <Created by MiguelPires> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/11337>11:27
arseniquezaga I have a question regarding the "\040(deleted)" issue that you've filed and discussed here upon my first visit of the channel.12:18
arseniquezyga sorry for the typo.12:19
arseniquezyga I have a question regarding the "\040(deleted)" issue that you've filed and discussed here upon my first visit of the channel.12:19
arseniquezyga when I reproduced the failure instead of getting suffix "\40(deleted)" or " (deleted)", I've got "//deleted"12:27
mupPR snapd#11377 opened: asserts: add preseed assertion type <Needs Samuele review> <Created by stolowski> <https://github.com/snapcore/snapd/pull/11377>12:27
mupPR snapcraft#3636 closed: parts: integrate craft-parts (CRAFT-765) <Created by cmatsuoka> <Merged by cmatsuoka> <https://github.com/snapcore/snapcraft/pull/3636>12:29
zyga[m]Interesting 12:32
zyga[m]I'm not following the kernel mount subsystem 12:32
zyga[m]I would go and check the patches on that part of the kernel12:33
zyga[m]Perhaps there is a new unified syntaxe for this?12:33
zyga[m]Do you know where to look?12:33
arseniquezyga No, unfortunately no.13:01
mupPR snapd#11379 opened: tests: smoke test support for core22 <Created by Meulengracht> <https://github.com/snapcore/snapd/pull/11379>13:48
mupPR snapd#11338 closed: asserts,cmd/snap-repair: support delegation when validating signatures <authority-delegation> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/11338>14:18
mupPR snapd#11380 opened: asserts: first-class support for formatting/encoding signatory-id <authority-delegation> <Created by pedronis> <https://github.com/snapcore/snapd/pull/11380>14:28
mupPR snapd#11381 opened: asserts: fetching code should fetch authority-delegation assertions with signing keys as needed <authority-delegation> <Created by pedronis> <https://github.com/snapcore/snapd/pull/11381>14:33
mupPR snapcraft#3637 opened: meta: generate basic snap.yaml (CRAFT-801) <Created by cmatsuoka> <https://github.com/snapcore/snapcraft/pull/3637>14:54
mupPR snapd#11382 opened: asserts: remove unused function, fix for linter <⚠ Critical> <Test Robustness> <Created by pedronis> <https://github.com/snapcore/snapd/pull/11382>15:28
mupPR snapd#11383 opened: o/snapstate: migrate on core22 refresh and init ~/Snap <Created by MiguelPires> <https://github.com/snapcore/snapd/pull/11383>16:43
mupPR snapd#11354 closed: gadget: identify/match encryption parts, include in traits info <Simple 😃> <Created by anonymouse64> <Merged by anonymouse64> <https://github.com/snapcore/snapd/pull/11354>17:34
mupPR snapd#11384 opened: gadget: refactor StructureEncryption to have a concrete type instead of map <Simple 😃> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/11384>17:39
mupPR snapcraft#3637 closed: meta: generate basic snap.yaml (CRAFT-801) <Created by cmatsuoka> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3637>18:14
mupPR snapcraft#3638 opened: Colcon v2: forward cmake args <Created by artivis> <https://github.com/snapcore/snapcraft/pull/3638>18:29
zyga[m]arsenique: I'll show you next week, ok18:35
mupPR snapcraft#3639 opened: commands: add pack command and set it as default (CRAFT-762) <Created by cmatsuoka> <https://github.com/snapcore/snapcraft/pull/3639>21:30

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