/srv/irclogs.ubuntu.com/2017/03/15/#snappy.txt

mupPR snapcraft#1186 closed: demos: add ROS content sharing demo <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1186>01:39
olympionexhas anybody used snapcraft with a source file on dropbox?  It appears that whatever mechanism dropbox is using to download the source is not following the redirects.  There is just a file with html.  I'm looking through the snapcraft code, but is it not using wget or something similar/01:51
olympionexhmm, looks like its using requests.get with allow_redirects=True01:54
sergiusensolympionex: seems like a credentials thing, can the file be downloaded anonymously?01:54
sergiusenscan you wget the file?01:54
olympionexyeah01:54
sergiusensfrom the link that is01:54
olympionexcopied and pasted the url from the yaml just to make sure01:58
olympionexand it works fine with wget01:58
olympionexbut the pull phase of snapcraft is only getting some html01:58
olympionexits a link share on dropbox which means anyone with the link should be able to download it, so no required login01:59
olympionexsergiusens: here is a demo pastebin02:08
olympionexhttp://pastebin.com/jdZuNVD402:08
mupPR snapcraft#1194 opened: tests: remove repo.Ubuntu patch for plugins <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1194>02:15
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
olympionexsergiusens: nevermind, I was misinformed by something I read earlier.  Apparently the url param at the end of the dropbox links determines whether its for a direct download or for just viewing the file on dropbox.  I had read that dl=1 compressed the file but that appears not to be true02:47
olympionexchanging the links to dl=1 caused snapcraft to work fine02:47
=== chihchun_afk is now known as chihchun
sergiusensgreat03:07
sergiusensoh dear, it is already Wednesday here03:07
=== chihchun is now known as chihchun_afk
mupPR snapcraft#1191 closed: tests: run the CLA check in a docker container <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1191>03:57
mupPR snapcraft#1194 closed: tests: remove repo.Ubuntu patch for plugins <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1194>04:00
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
shuduozyga: hi, i tried to run "dnf install snapd" on fedora 25 but failed with "Failed to synchronize cache for repo 'zyga-snapcore', disabling." I believe it need be built against fedroa 25 as it works well on 24.08:34
zygashuduo: hi08:40
shuduozyga: hi08:40
zygashuduo: there are no build for fedora 24/25/26 yet; still on a TODO list, I need help if you are interested (we need two prerequisites packaged)08:40
zygashuduo: the COPR build is disabled now08:40
zygashuduo: and we have a package almost ready to release into the archive but because of the extra work to de-vendorize everything (which is starved for time) it has not been released08:41
zygashuduo: I may re-start the COPR package with vendorized deps as that would help to unblock people08:41
zygashuduo: but I really need help with extra maintenance work as my main duties are as upstream developer08:41
shuduozyga: interesting I just tried 24 today and see snap works good.08:41
zygashuduo: it must be an older build08:42
zygashuduo: we are at snapd 2.23.1 now (2.24 will release today)08:42
zygashuduo: and 2.24 is good to release for fedora (like I built it for opensuse) but the extra golang deps are a blocker onw08:43
zyga*now08:43
shuduozyga: it's 2.22.1 on fedora 24.08:43
zygahmmmm?08:47
zygathat's super odd :)08:47
zygashuduo: where did you get your package again?08:47
zygashuduo: did you build it yourself?08:47
zygathe CORP repo is unused for months08:47
shuduozyga: sorry i'm not familiar to dnf/copr since i did not use fedora quite long time. i am checking snapd status on other distro since it may help to some customer engagement08:48
zygashuduo: I try to document the current status on the snapd wiki here ...08:49
shuduozyga: i just follow the instructions of snapcraft.io08:49
zygahttps://github.com/snapcore/snapd/wiki/Distributions08:49
* zyga goes to add opensuse to supported list there08:49
zyga(opensuse is supported since last week-ish)08:50
shuduothen i find it from https://copr.fedorainfracloud.org/coprs/zyga/snapcore/08:50
zygashuduo: but that is snapd 2.1408:50
zygaanyway08:50
zygaI need to spend some time on Fedora support08:51
zygaideally after the 2.24 release tonight08:51
zygaI could re-enable COPR easily with the vendorized deps08:51
zyga(so same bits you get on ubuntu)08:51
zygaand I could work towards packaging missing stuff08:51
zygashuduo: stick around; I can do this on Friday08:51
shuduozyga: i have customer ask if snap acn run with centos08:51
zygashuduo: do you need fedora or centos?08:52
zygashuduo: it can, though package is still far away08:52
zygahttps://new.zygoon.pl/post/case-study-snapd-on-centos/08:52
shuduozyga: i believe commercial customer need centos08:52
zygabut you can build it from source to see08:52
zygashuduo: if you want to help on that I'll gladly welcome you on board :)08:52
zygashuduo: centos package could be built from COPR08:52
shuduozyga: great. i will try it.08:52
zygashuduo: with all vendorized bits it should not be hard (famous last words ;-)08:53
zygashuduo: but the issue is strictly on packaging, the code works fine08:53
shuduozyga: i would like to study how to do that first. :)08:54
zygashuduo: look at the blog post and stick around, I'm sure you can help08:54
shuduozyga: btw, seems debian is broken. https://bugs.launchpad.net/snapd/+bug/1672984.08:57
mupBug #1672984: can't install hello-world snap on debian <snapd:New> <https://launchpad.net/bugs/1672984>08:57
shuduozyga: yes, dnf info snapd show it's 2.14. sorry my wrong msg.09:00
=== davmor2_ is now known as davmor2
zygashuduo: that's ok then, no mystery :)09:46
zygatyhicks: hey, could you do a review for us today?10:02
gbissonhi all, when booting a board with TI WL127x chip on it I get the following "warning" at bootup: set_link_flags failed File "/usr/lib/python3/dist-packages/probert/network.py", line 454, in wlan_event self.rtlistener.set_link_flags(ifindex, IFF_UP) RuntimeError: rtnl_link_change failed -1610:16
gbissonhas anyone seen this? It seems that my interface is busy at the time of the request10:17
mupPR snapd#3032 opened: cmd: rename all unit tests to $command/unit-test <Created by zyga> <https://github.com/snapcore/snapd/pull/3032>10:26
mupPR snapd#3033 opened: cmd/libsnap: make mountinfo structures public <Created by zyga> <https://github.com/snapcore/snapd/pull/3033>10:26
zygagbisson: looks like kernel/driver issue10:34
gbissonzyga: well the driver is working fine though, and the connection is working just fine after that message10:39
gbissonzyga: the driver is pretty well supported in mainline: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/drivers/net/wireless/ti10:40
zygagbisson: "fine" may not be "correct" though, I'm not a kernel expert10:40
zygatyhicks: specifically this PR: https://github.com/snapcore/snapd/pull/303110:41
mupPR snapd#3031: cmd/snap-confine-suid-trampoline: add new helper <Created by zyga> <https://github.com/snapcore/snapd/pull/3031>10:41
gbissonzyga: but I agree I don't see that warning on RPi, maybe someone else will try with TI someday, we'll see, thanks anyway10:42
mupPR snapd#3034 opened: interfaces: log if the system goes into ForceDevMode <Created by mvo5> <https://github.com/snapcore/snapd/pull/3034>11:08
liuxgmvo, currently, my application has the problem described in the bug, https://bugs.launchpad.net/snappy/+bug/1590679 in strict mode. However, I cannot find any missing apparmor policy output when I use snappy-debug11:14
mupBug #1590679: Apps can't own session bus names (unity7 interface) <snap-desktop-issue> <snapd-interface> <Snappy:Fix Released by jdstrand> <snapd (Ubuntu):Fix Released> <https://launchpad.net/bugs/1590679>11:14
=== chihchun is now known as chihchun_afk
jaceknhello. Where can I find some examples of "scriplets"? I'm interested in finding out how to use them with go plugin11:48
=== petevg is now known as petevg_afk
liuxgjdstrand, ping12:02
mupPR snapd#2979 closed: tests: add ubuntu-core-16-32 system to the external backend and fix docker test <Created by fgimenez> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2979>12:11
brunch875guys I see that apt's python3-scipy version is 1.7 but pip3's version is 1.9. Will snaps solve these outdated issues?12:12
brunch875and... how friendly is snappy with other managers?12:13
stubsnaps embed dependencies, and by default you will embed the latest version. Snaps don't conflict at all with other package managers, because they keep everything separate in /snap.12:15
gbissonsince today's udpate to stable core my system gets stuck at "Run configure hook of "core" snap if present" when looking at "snap change 1"12:16
gbissonnote that I couldn't do a "snap refresh" since it would get stuck. So I've created another image with latest core inside, and now the "Initialize system state" is stuck12:19
=== hikiko is now known as hikiko|ln
=== hikiko|ln is now known as hikiko
=== Son_Goku is now known as Conan_Kudo
=== Conan_Kudo is now known as Son_Goku
mvogbisson: hello, thanks for reporting that issue! do you still have access to the system that is stuck?13:55
mvogbisson: and you mention a fresh image is also stuck? what system is that? what version/architecture?13:55
gbissonmvo: yes, here is our source code: https://github.com/boundarydevices/ubuntu-core14:01
gbissonmvo: it is based on the roseapple tree but targets our (Boundary Devices) platforms which are i.MX processors based14:01
mvogbisson: aha, thank you! I was wondering how to reproduce this myself, but it looks like might be tricky :)14:04
mvogbisson: on the fresh system I assume you can not even get to a login/create-user screen ?14:04
gbissonyes I can14:05
gbissonmvo: as said above, I can ssh and look at snap change 114:05
mvogbisson: aha, great!14:05
gbissonmvo: this is where I've seen it got stuck at step14:05
mvogbisson: could you pastebin or mail /var/log/syslog  please?14:05
gbissonmvo: sure, give me a minute or two14:05
mvogbisson: maybe we can get a clue from that data what is going on14:05
mvogbisson: no problem, take your time, I'm here for at least 3 more hours :)14:06
tyhickszyga: hey - I can have a look at that today14:06
tyhickszyga: I'll also have a look at 2624 today14:06
gbissonmvo: here it is: http://pastebin.com/ubNsYu7A14:13
pedronistyhicks: we are trying to do without #3031 it seems, mvo is working on that14:15
mvogbisson: thanks, that is very interessting. it seems like http://paste.ubuntu.com/24182859/ might be crucial, two apparmor denials14:18
zygatyhicks: thanks14:18
mvogbisson: if you run scmp_sys_resolver 282 - what do you see on this system?14:18
zygatyhicks: we're looking at writing snap-update-ns in go to avoid putting more and more complexity in C14:18
mvopedronis, tyhicks: #3031 might still be needed, unfortuantely, I was looking into a static linked version of snap-confine but udev is not available as a static lib it seems14:19
gbissonmvo: returns "bind"14:22
tyhicksok, I'll leave 3031 on the list of reviews to do today14:23
gbissonmvo: what can I do to overcome that issue? what I really don't understand is how previous rev could work14:24
mvogbisson: thanks first of all for the syscall info14:25
mvogbisson: the previous rev was not using the configure hoook in the core snap, that is something new so there is an actual behaviour change here14:26
mvogbisson: but I'm confused why its a problem on your platform but not on our platforms :/ it should just work for you too14:26
gbissonmvo: oh ok, thanks that explains the difference indeed14:27
gbissonmvo: could it be that I'm missing a kernel configuration?14:27
gbissonmvo: I'm using our regular Ubuntu defconfig14:27
mvogbisson: that should be ok then, also if normal snaps work then things with this new configure hook should also work. its the same class of confinement14:28
zygainteresting error mvo, gbisson14:28
zygais this the configure hook on core?14:29
gbissonmvo: I still have my working image available too if needs to make some comparison14:29
zygamvo: it must have network-bind, network plugs14:29
mvozyga: yeah, it looks like it14:29
zygamvo: otherwise no game (because golang design)14:29
gbissonzyga: yes, the hook on core14:29
zygamvo: this is the issue I looked at months ago14:29
zygamvo: it's still reported somewhere on snapd14:29
mvozyga: core support does not have it14:29
zygamvo: golang probes for network support on startup (to see if it has ipv6)14:29
zygamvo: there we go, a simple workaround for 2.24 is needed14:30
mvozyga: the core snap only has "core-support" as the available plug14:30
mvozyga: ok, I can easily add this to the core snap14:30
zygaI'll try to find the bug report now14:30
mvozyga: but *why* is this happening for gbisson and not on our test machines?14:30
gbissonmvo: I agree, I have a RPi3 which I updated and it worked14:31
zygamvo: not sure14:31
gbissonmvo: at first I blamed my own snaps (gadget and kernel) but it actually fails before even looking at those14:32
gbissonmvo: which is why I suspect the kernel configuration (or the kernel revision)14:32
mvogbisson: this is arm32, right (armhf in ubuntu terms)?14:33
gbissonmvo: RPi3 is based on 4.4 but I'm on 4.114:33
gbissonmvo: yes14:33
mvogbisson: the kernel version is an interessting data point14:33
zygaI cannot find it now14:33
zygamvo: maybe (long shot) different syscalls on arm14:34
mvozyga: was thinking that too14:34
zygamvo: like i386/amd64 do totally different stuff for socket related calls14:34
mvozyga: its "bind" (seccomp) and "net_admin" (appamror) that is denied14:34
zygamvo: we had issues that only showed on one arch and not the other14:34
zygaright14:34
zygawhy is net_admin needed?!?14:34
zygabind is golang for sure14:35
zygait really sucks that this magic happens14:35
mvomaybe net_admin is also bind?14:35
zygaand we cannot just say "don't"14:35
zygamvo: I doubt that14:35
zygafeels like another golang query on startup14:35
zygagbisson: what hardware is this on?14:36
zygagbisson: and what kernel?14:36
mvogbisson: if you run "snap changes" coud you pastebin that as well please14:36
mvozyga: see above, he said this, one sec14:36
mvozyga: https://github.com/boundarydevices/ubuntu-core14:36
zygaaha14:36
mvozyga: pretty cool, its a port to  Boundary Devices Nitrogen14:36
mvo(whatever that is :)14:36
mvoarmhf based14:36
zygawarp speed ahead!14:36
mvozyga: and kernel 4.114:36
zygamaybe a kernel bug/config/whatever14:37
gbissonmvo: http://pastebin.com/HSmGYQtF14:37
zyganot sure14:37
* zyga -> reboot14:37
mupPR snapd#3035 opened: tests: fix interfaces-cups-control for zesty <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3035>14:38
mvogbisson: nice, thank oyu14:42
mvogbisson: I think there is at least one bug in our code, it should not hang in there, I assuem you don't have a configure process running in this system anymore (or do you)? the code should have noticed that the child died14:43
gbissonmvo: still there: /bin/sh -e /snap/core/1443/meta/hooks/configure14:44
mvogbisson: ohhh14:44
gbissonmvo: can I kill it?14:44
mvogbisson: can you strace that?14:44
gbissonsure14:44
mvogbisson: please don't kill it :)14:44
mvogbisson: you will have to scp strace to the system first most likely14:45
gbissonmvo: strace not found haha14:45
gbissonmvo: oh ok14:45
gbissonmvo: do you have one binary I could use by any chance? (for armhf)14:45
gbissonmvo: I have a weird output: read(3,14:47
mvogbisson: lsof -p should tell you what fd this read is (adn you need to copy lsof again)14:47
gbissonmvo: using procfs instead: 3 -> pipe:[12466]14:49
mvogbisson: I would like to add the network-bind to the plugs of the core snap to see if that fixes the issue for you. is that something you could do yourself ? by just snap download core, unsquafs, adding the plug and re-squash and ubild an image? if its too dificult I could add it to our edge snap and you would have to build an edge image14:52
gbissonmvo: well yes I'd rather have you do that14:54
gbissonmvo: I've never messed with snap manually before14:55
mvogbisson: :) no problem, I'm super happy about a test case for this issue, we had some anecdotal reports but never someone who could reproduce it14:55
mvogbisson: let me create that and I will ping me14:55
gbissonok14:55
mupPR snapd#3015 closed: interfaces: alphabetize framebuffer in base decl and add it to all_test.go <Created by jdstrand> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3015>15:02
mvogbisson: I added the plug and triggered a new build, there should be a new core snap in "edge" in ~30min or so, I can ping you once its there. I assume building with a core from edge is no problem? curious to see/hear if the result is different with that :)15:05
gbissonmvo: sure, please ping me when it's ready and then I'll need 5minutes to create and flash a new image15:09
gbissonmvo: thanks!15:09
zygagbisson: hey15:19
zygagbisson: can you please pastebin /var/lib/snapd/seccomp/profiles/snap.core.hook.configure15:19
gbissonzyga: sure, give me a few minutes to reboot the board15:23
zygagbisson: thank you15:23
zygagbisson: and can you please do one more thing once the board is up15:24
zygathough not sure how yet,15:24
zygaone sec15:24
gbissonzyga: there: http://pastebin.com/PD5hYd7p15:25
gbissonsure, it stays up now15:25
zygachecking!15:26
zygagbisson: tip, pastebin.ubuntu.com == no ads15:26
mvowith noscript and umatrix also no adds :)15:26
mvoads15:26
gbissonzyga: pastebin.ubuntu.com = one more word to type ;) I'll try it next time15:27
zygagbisson: ok, you need strace for armhf15:27
gbissonI have strace for armhf15:28
zygagbisson: there's a .conf file you can use15:28
zygagbisson: ok, run strace -o log /snap/core/current/usr/bin/snapctl15:28
zygagbisson: and pastebin that15:28
gbissonzyga: I took strace from our Ubuntu xenial release15:28
zygathat's good15:28
zygagbisson: I use the classic snap (sudo snap install classic; sudo classic) to get apt-get and then install/copy strace to ~15:28
zygabut it's the same thing you got15:29
gbissonerror: snapctl cannot run without args15:29
zygathat's fine15:31
zygawe care about what it does earlier15:31
zyga(it did some things that it chokes on under confinement)(15:31
zyga(it did some things that it chokes on under confinement)15:31
zygacan you pastebin the log now?15:31
gbissonzyga: http://pastebin.ubuntu.com/24183212/15:32
zygabind(4, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 015:32
zygaso far so good15:32
zygaok, one more sec and one more test15:32
zygagbisson: can you now run: SNAP_NAME=core /usr/lib/snapd/snap-confine snap.core.hook.configure /snap/core/current/usr/bin/snapctl15:34
zygagbisson: this is a smoke test, it should crash15:34
gbissonzyga: should I sudo? doesn't seem to do much15:35
zygagbisson: no15:36
zygagbisson: no sudo, just as is15:36
zygagbisson: what happens when you ran that?15:36
gbissonzyga: nothing15:37
zygadid it crash?15:37
zygaanything in journal?15:37
gbissonzyga: it doesn't return so far but no trace whatsoever15:37
gbissonzyga: the journal gives the same SECCOMP denial as before15:39
gbissonzyga: which makes sense I guess15:39
mvoand its hanging? so the same symtpoms as before15:39
elopiodidrocks: do you know how to add an event to the Ubuntu facebook page?15:39
gbissonmvo: yes, but it's normal I haven't changed the image yet, is the edge core ready yet?15:40
zygagbisson: perfect15:40
mvogbisson: not quite but close15:40
zygagbisson: kill it (remains)15:40
zygamvo: one of the thread gets killed15:40
zygamvo: and go doesn't recover15:41
zygamvo: I have a theory, just making a simple case to try15:41
mvozyga: oh, that makes sense15:41
didrockselopio: I don't, but you should talk to amrisha, she owns the facebook page15:43
zygagbisson: ok, ready15:46
zygagbisson: a few things you need to do:15:46
zygagbisson: go to /var/lib/snapd/ then in {apparmor,seccomp}/profiles/snap.core.hook.configure you need to make two changes:15:46
zygagbisson: look at http://pastebin.ubuntu.com/24183261/15:47
zygagbisson: in the seccomp profile you need to add "ptrace" and "process_vm_readv" (on separate lines, without quotes)15:47
mupPR snapd#3036 opened: tests: fix classic-ubuntu-core-transition race <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3036>15:47
zygagbisson: in apparmor profile you need to add, before the final closing brace, "/writable/strace ixr," (the trailing comma is relevant)15:48
zygagbisson: and then "ptrace,"15:48
zygagbisson: then copy strace to /writable "sudo cp strace /writable" (wherever you had strace)15:49
zygagbisson: and reload apparmor profile with "sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.core.hook.configure"15:49
zygagbisson: this should set the stage to the real test:15:49
zygaSNAP_NAME=core sudo -E /usr/lib/snapd/snap-confine snap.core.hook.configure /writable/strace /snap/core/current/usr/bin/snapctl15:49
zygagbisson: this should give us at least partial log of the thing crashing15:49
zygamvo: ^^15:50
zygagbisson: gbisson (sorry add -f after strace)15:51
zygaSNAP_NAME=core sudo -E /usr/lib/snapd/snap-confine snap.core.hook.configure /writable/strace -f /snap/core/current/usr/bin/snapctl15:51
zygagbisson: don't redirect this anywhere as it will change the test15:51
zygagbisson: once we have some data we can tweak the profile on your disk to pass15:51
mvozyga: the new core snap is available15:51
zygagbisson: and figure out why this is happening15:51
zygagbisson: before you update, please finish this test15:52
zygamvo: thanks!15:52
gbissonzyga: http://pastebin.ubuntu.com/24183281/15:53
gbissonzyga: the first part is the journal15:53
gbissonzyga: below is the command output as-is15:53
mvozyga: so once you are ready gbisson can create a new image. or do you have a new theory already (sorry have not read all of the scrollback yet)15:55
zygare16:02
zygalooking at logs16:02
zygagbisson: can you append "bind" without quotes to the end of /var/lib/snapd/seccomp/profiles/snap.core.hook.configure16:03
zygagbisson: and re-run the test16:03
zygagbisson: (we should be ready to try mvo's idea next)16:03
zygahmm, curious16:05
zygamvo: so ...16:05
zygathis is different:16:05
zygain my run I see:socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = -1 EACCES (Permission denied)16:05
zygasocket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) = -1 EACCES (Permission denied)16:05
zygaso nothing happens next (no bind)16:05
zygabut in gbisson's run I see:16:05
zyga[pid  1720] socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 316:05
zyga[pid  1720] close(3)                    = 016:05
zygaso my run doens't reach bind16:06
zygait fails on socket16:06
zygabut there (somehow) socket passes16:06
zygano idea why16:06
zygagbisson: maybe your kernel doesn't have the full apparmor patchset, are you actively pulling new changes from the apparmor directory in the ubuntu kernel?16:06
gbissonzyga: no, definitely not, it is based on 4.1.15 with no particular apparmor backport16:09
zygagbisson: ah16:09
zygagbisson: then you should not expect this to work much16:09
zygamvo: ^16:09
mvozyga: well, maybe16:09
zygagbisson: snapd really requires a particular version of apparmor16:10
mvozyga: we have forced-devmode now based on apparmor16:10
zygagbisson: sadly the one that is not upstream yet16:10
mvozyga: but then, snap-confine is not ready for this yet :/16:10
zygamvo: I'm super curious to see if it gets picked up16:10
zygamvo: how can I check if a given system is devmode?16:10
zygamvo: IMO we should print a note (each time) "snap list" is used in devmode distro16:10
mvozyga: there is a PR for this ;)16:11
zyga"This system does not offer effective confinement. Running untrusted applications can put your systemd and data at risk"16:11
zygamvo: devmode is just too dangerous16:11
zyga(silent devmode)16:11
mvozyga: agreed16:11
* zyga typed "systemd" instead of system16:12
zygaeh :)16:12
mvozyga: so once gbisson refreshes to the new version syslog should have somthing like "started snapd/2.23 (series 16,devmode)"16:12
zygagbisson: so my recommendation, port the apparmor tree and the problem goes away16:12
gbissonzyga: will try that, is the latest linux-stable ok or should another tree be used?16:13
gbissonzyga: well there's no change on apparmor with latest 4.1 stable anyway16:14
mvogbisson: I'm curious what will happen if you switch to an image from edge16:14
mupPR snapd#3037 opened: interfaces: dbus backend spec <Created by stolowski> <https://github.com/snapcore/snapd/pull/3037>16:14
mvogbisson: if it is apparmor missing (what zyga suggested) then this version will be a step forward but it will still not fully work, we will need to fix snap-confine for this too which is planned but not quite there yet16:15
gbissonmvo: ok, so I should still try that edge image?16:17
zygagbisson: unfortunately no16:17
zygagbisson: you need ubuntu-specific patches that are not upstream yet16:17
zygagbisson: those can be found on the kernel.ubuntu.com16:18
gbissonzyga: so what you are telling is that no-one can create its own OS image right now16:18
zygagbisson: not sure if this is hard to port, apparmor is self-contained but maybe some patches span subsystems16:18
zygagbisson: not with confinement on stock kernel16:18
zygagbisson: each sponsored kernel from canonical has apparmor ported16:18
zygagbisson: and we're merging this upstream but it's a queue16:19
gbissonzyga: and what happens if I change the confinement to devmode?16:19
zygagbisson: old stuff gets merged but more bugfixes and features are added16:19
zygagbisson: no confinement16:19
zygagbisson: it switches off entirely (see mvo's update)16:19
zygagbisson: while more fixes and features land upstream it may be 4.13 where our current patches are zero16:20
zygagbisson: but I cannot promise that we don't have more after16:20
zygagbisson: apparmor is pushed by many things we're doing16:20
zygagbisson: and more exposure shows more bugs that we fix (the latest set that landed in 4.11 was mostly just bugfixes)16:20
gbissonzyga: ok but the problem is that my kernel is common across OSes so far (Ubuntu, Debian, Yocto, Buildroot) and don't want to backport things from 4.13 is I risk to break anything16:21
zygagbisson: you don't need to backport from 4.1316:23
zygagbisson: but you need to backport security fixes from ubuntu's apparmor tree to get effective confinement16:23
zygagbisson: earlier we had a few kernels published where this was done (for common kernel versions)16:24
zygagbisson: but I don't know if those are supported and maintained16:24
gbissonzyga: can you point me to the specific tree?16:24
zygagbisson: which version are you on now?16:24
gbissonzyga: 4.116:24
zygathanks16:24
zygahttps://github.com/snapcore/sample-kernels/branches16:25
zygagbisson: I can get you in touch with someone commercial at Canonical if you'd like to get backported security patches for 4.116:25
zygagbisson: but looking at those they feel unmaintained (more like a one off that was done earlier)16:26
zygagbisson: you can also review http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/ for UBUNTU SAUCE matching apparmor16:27
zygaall such patches are really desired16:27
zygagbisson: e.g. http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/log/?qt=grep&q=apparmor16:27
mvogbisson: I will be off for some minutes, if you have a chance to boot a fresh edge core based image, I'm keen to see the results :)16:30
mvogbisson: i.e. I will read backlog16:30
zygagbisson: I'm off to, kids home, need to attend stuff16:30
gbissonzyga: thanks for your help! I'll look at the apparmor patches16:30
gbissonmvo: but will I need the apparmor patches anyway?16:33
mupPR snapcraft#1195 opened: [experimental] run unit tests in osx <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1195>16:33
gbissonmvo: cause if I do I'm not sure I want to spend much time on this16:33
zygagbisson: (quick look) it depends on what you are after16:39
zygagbisson: if you are are after a quick demo you don't need much16:39
zygagbisson: if you want a real product that is supported you need to patch security issues16:39
zygagbisson: there's nothing in between16:40
gbissonzyga: we usually give OS images freely available for all our platforms on our website (https://boundarydevices.com/wiki/operating-systems/) so our customers can pick the one they want16:41
gbissonzyga: but here the problem is that if I give an image where if the customer does a "snap refresh" it breaks I'm not sure I want them to experience that16:42
zygagbisson: that is a bug and that will get fixed (in current master you will be in devmode and won't use apparmor)16:43
zygagbisson: seccomp probably won't be used either16:43
zygagbisson: but this will not be the best way to experience snapd as it will be insecure16:43
zygagbisson: so my only point was that to really say you support snaps you should support security features of your kernel16:44
gbissonzyga: I'm fine if I can be in devmode for this "demo" image, all I want is customers being able to snap install etc..16:44
gbissonmvo: I get an error when logging in:  error: while creating user: cannot communicate with server: Post16:46
gbissonhttp://localhost/v2/create-user: EOF16:46
elopiothanks didrocks16:51
mupPR snapd#3024 closed: interfaces: use apparmor spec in the apparmor backend <Created by stolowski> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3024>17:05
mupPR snapd#3036 closed: tests: fix classic-ubuntu-core-transition race <Created by fgimenez> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3036>17:46
mvogbisson: uh, so the edge image is clearly worse :/18:07
mupPR snapd#3034 closed: interfaces: log if the system goes into ForceDevMode <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3034>18:15
mupPR snapd#3023 closed: cmd: validate SNAP_NAME <Created by zyga> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3023>18:24
mupPR snapd#3038 opened: misc: revert "Log if the system goes into ForceDevMode" <Created by mvo5> <https://github.com/snapcore/snapd/pull/3038>18:30
gbissonmvo: I'm curious where is the RPi3 kernel tree for the image you provide?18:45
mupPR snapcraft#1175 closed: demo files for snaping the bitcoin-qt client <Created by torusJKL> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1175>19:00
zygatyhicks: hey19:08
zygatyhicks: did you have a chance to review 2624?19:08
tyhickszyga: yeah - I'm testing the apparmor rule19:11
zygathanks19:11
zygatyhicks: release night so if you want to block it please hurry up ;-)19:12
tyhicksah, didn't realize19:12
tyhickszyga: do I need to review 3031 immediately, too?19:13
zygatyhicks: I think we rejected that already because udev cannot be linked statically so we cannot use it19:13
zygatyhicks: please review 2624 first if you cna19:14
zygacan*19:14
tyhickszyga: done19:27
tyhickszyga: I don't guess I'll review 3031 unless I hear that it is still needed19:29
mupPR snapd#3028 closed: interfaces: seccomp tests cleanup <Created by stolowski> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3028>20:35
mupPR snapd#3038 closed: misc: revert "Log if the system goes into ForceDevMode" <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3038>20:44
mupPR snapd#3035 closed: tests: fix interfaces-cups-control for zesty <Created by fgimenez> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/3035>20:46
zygatyhicks: thank you!21:45
zygatyhicks: I made the profile tighter as suggested; both rules21:45
zygatyhicks: with two +1's I'll merge it once it shows up all green21:45
* zyga waves goodbye21:46
zygasee you tomorrow21:46
tyhickszyga: np - have a good one21:49
liuxgjdstrand, ping23:01
torusJKLI have created a snap of a QT program.23:16
torusJKLWhen I run it using the desktop link the GUI looks really bad.23:16
torusJKLIf I run it directly from /snap/myApp/current/bin/ then it looks nice and integrated into my system.23:16
torusJKLWhat am I missing here?23:17
torusJKLHere is my snapcraft.yaml file: https://github.com/torusJKL/snapcraft-projects/blob/master/bitcoin-qt/snapcraft.yaml23:18
torusJKLIt looks to me like the following: https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/158435723:55
torusJKLI'm using the part desktop-qt5 but how do I add the gtk3 dependencies (e.g. "canberra-gtk-module")?23:56

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