[00:50] cwayne: How can I import self signed certificates into Ubuntu Core 16 system? === JanC_ is now known as JanC [01:34] seshu: what exactly is it you're trying to do? [01:35] cwayne: Our EDM server allows user to upload self signed certificates to talk over https. So the user will have to import/export the same certificates to their devices so they can talk over https. [02:16] seshu: hmm, I'm not 100% sure how we could do that, would be worth a mail to the list so some more security-minded people could take a look [02:34] how far away is series (or branch?) support for multiple versions of a snap? [08:09] ogra_: my laptop just died (battery) and when it came back, packageproxy didn't load, I suspect because /var/snap/packageproxy/1/lockfile.lock still exists. Perhaps needs a sanity check when it launches? [08:18] good morning [08:24] PR snapd#2751 opened: 14.04/integrationtests: rely on upstart to restart ssh [08:31] gah [08:31] I hate being awake this early [08:40] Son_Goku: hey [08:41] Son_Goku: good morning :) [08:41] hi [08:41] * zyga goes to dig into the kernel [08:41] * Son_Goku grumbles about zsync and garbage fire build systems [08:41] I hate autotools [08:41] Son_Goku: I share the sentiment [08:43] I'm porting zsync to use meson as an exercise to learn meson and also because DNF upstream wants to libify zsync to use with librepo for doing zsync downloads of metadata [08:44] might as well kill two birds with one stone [08:44] but holy crap the source autotools build system is annoying to figure out [08:59] popey, well, there is a check (that is why it doesnt start) ... the prob is that i'd need access to the process-control interface to actually check if the pid still exists to kill the potentially hanging former process ... when i created that snap there was no such interface ... :) [09:08] ogra_: :) [09:09] i'll try to come up with something though, that behaviour is indeed not acceptable :) [09:09] jdstrand: http://askubuntu.com/questions/873495/how-do-i-use-snappy-debug-to-debug-a-snap/878204#878204 - perhaps snappy-debug description should be updated to remove mention of tools it doesn't contain? :) [09:09] ogra_: thanks === wesleyma` is now known as wesleymason [10:02] hm, my .desktop file appeared in the menu today (=after reboot). perhaps some command must be run after snap installation to update the menu. [10:09] Where can I find documentation regarding paid snaps ? I didn't see a reference to that on snapcraft.io [10:11] popey: ^ do you know ? [10:11] om26er: not landed yet [10:12] popey: hmm, what does `snap buy` do ? [10:13] om26er: nothing yet, as it hasn't all landed yet [10:28] anyone know whether the launchpad builders can build classic snaps yet? [10:52] PR snapd#2732 closed: snapenv: do not append ":" to the SNAP_LIBRARY_PATH [10:53] PR snapd#2596 closed: tests: parameterize kernel snap channel [10:56] PR snapd#2731 closed: store: always log retry summary when SNAPD_DEBUG is set [12:14] guys how to play youtube in snap packaged app?? [12:17] anyone on ?? [12:18] hi popey [12:21] bulld: can you be more specific please? [12:24] zyga, flash support in snap packages [12:25] how my qt app with qwebviw cant play youtube videos [12:38] zyga You were on one of the Hangouts recently and we talked about running snapd on a kernel without AppArmor. [12:39] My memory was that you said something to the effect that it would "work" albeit without confinement. [12:39] Is my memory wrong? [12:39] flexiondotorg, that is how it works on fedora for example [12:40] OK, so I've made a "Ubuntu" image with a 3rd party kernel. [12:40] Which has no AppArmor patches at all. [12:40] bad idea :P [12:40] I know it's a bad idea. [12:40] :-) [12:41] hi [12:41] (re) [12:41] This was the outcome [12:41] http://paste.ubuntu.com/23899188/ [12:41] flexiondotorg: no, that's accurate [12:41] flexiondotorg: but it needs some hand-holding to enable [12:41] flexiondotorg: specifically there's no runtime detection yet, you'd have to do two things: [12:41] OK, can you point me at something. [12:42] flexiondotorg: (both can be done permanently later) [12:42] flexiondotorg: snap-confine needs to be rebuilt without apparmor, simply pass the --disable-apparmor switch and that should do it [12:42] flexiondotorg: then snapd may need to be patched slightly depending on the state of your apparmor userspace [12:42] popey: done (it wasn't in the 15.04 snap. the series 16 and yaml was fine) [12:43] flexiondotorg: if changing snap-confine is not sufficient you need to edit (in snapd tree) release/release.go [12:43] flexiondotorg: and in there look at the function ForceDevMode [12:43] flexiondotorg: and have it return true for "ubuntu" [12:43] zyga OK, thanks for the info. [12:43] flexiondotorg: it would be good to give your system a different /etc/os-release [12:43] flexiondotorg: so that it doesn't register as ubuntu, that will kick in devmode automatically [12:43] zyga So this is "ubuntu" userspace right now. [12:43] flexiondotorg: (you still need to rebuild snap-confine but there are patches there (see debian/rules) to do that [12:44] But the end game here is the vendors own distribution. [12:44] flexiondotorg: a proper fix would be to fix snap-confine and snapd to do runtime detection [12:44] then tweaking os-release should happen anyway [12:44] We spoke to them yesterday, they have agreed to work together to add snapd support to their distro. [12:44] flexiondotorg: btw, if you change the kernel and it's that wildely different you should not call it ubuntu anymore [12:44] that too ... [12:44] flexiondotorg: would you mind waiting a little (~hour) [12:45] flexiondotorg: I have a meeting soon and my family calls me for lunch [12:45] It is a very popular SBC manufacturer with a distro based on Debian, with a similar sounding name. [12:45] flexiondotorg: (still not ubuntu) [12:45] I know :-) [12:46] jamespage: jdstrand nice one [12:46] zyga I'll be here later. Enjoy lunch. [12:48] flexiondotorg, in the snappy core team we dont have lunch ... we have meetings instead :P [12:49] Ah yes, meetings. The practical alternative to work ;-) [12:49] and to lunch :) [12:50] flexiondotorg: I don't think you could call a system Ubuntu if it doesn't have the Ubuntu kernel (ie, apparmor, etc) [12:50] but zyga lives in spain anyway ... lunch time isnt before 4pm there :) [12:50] jdstrand, tell that to OpenVZ :) [12:50] (they offer ubuntu on 2.6 kernels :) ) [12:50] jdstrand It is not Ubuntu. [12:51] we recently had some support fun here with that [12:51] ogra_: that can't possibly meet the trademark standards [12:51] It was the quickest way for me test test their kernel with our userspace and snapd. [12:51] FSVO "fun" [12:51] but, I'll let others decide on that [12:51] jdstrand, https://openvz.org/Download/template/precreated [12:52] ogra_: I don't doubt they have things called 'ubuntu', I doubt that they should be able to do that. IANAL [12:52] yeah [12:53] i fully agree, especially after wasting 2h to support someone trying to run snappy on such an image [12:53] but to me, a system isn't Ubuntu unless it has apparmor and our kernel configs. that is especially true for snappy. again, IANAL [12:53] yeah [12:53] i couldnt really belive the uname output when i first saw it [12:54] I wrote 'check-requirements' for ufw all those years ago because of people saying ufw didn't work on some hosted machine. "yep, it doesn't, you don't have connection tracking in your kernel" [12:54] * jdstrand shakes head [13:07] jdstrand: hey :) [13:07] jdstrand: looking at the kernel and the apparmor bug, trying to reproduce it with a smaller test case, interestingly it doesn't fail there [13:07] jdstrand: I'm trying to grow the test case to the point where the same behavior we have in snap-confine happens and the failure re-surfaces [13:08] that is annoying [13:08] jdstrand: I wasted some time because /home is nosuid for me but now progressing === hikiko is now known as hikiko|ln [13:44] PR snapcraft#1094 opened: core: switch to using rpath for clasic confinement [13:47] zyga, how application get access to flash player when snapped ?? [13:47] my qt app cant play videos from youtube [13:48] project is based on qt 5.5.1 [13:48] did you include flash in your snap ? [13:48] i guess you'd need the player inside [13:48] ogra_, it wont work [13:48] ogra_, flash player installer as stage package wont install flash layer [13:48] ogra_, flash player installer as stage package wont install flash player [13:49] no, indeed [13:49] and i didnt say flashplayer-installer :) [13:49] ogra_, how to install f.p then ? [13:50] does snapcraft require the CLA for people to contribute? [13:50] teh same way you would do it without flashplayer-installer on a desktop ... put the binaries in the right place etc [13:50] ogra_, also my qt 5 app cursor dont look as it looks in the normal deb install [13:50] PR snapcraft#1080 closed: python plugin: avoid the use of PYTHON* env vars [13:50] PR snapcraft#1090 closed: core: classic with no exported variables [13:50] stokachu: yes [13:50] sergiusens, hi [13:50] sergiusens, thanks [13:51] PR snapd#2749 closed: interfaces/default: allow mknod for regular files, pipes and sockets [13:51] jamespage: they cannot yet [13:51] ogra_, i placed the libflashplayer.so in the right place and it still dont work [13:51] bulld: hey [13:51] hi [13:51] bulld: if you bundle the flash player in your snap it should jsut work [13:51] sergiusens, my qt 5 app mouse cursor looks odd [13:51] bulld, well, you'Äd have to ship the right cursor theme in your snap (not sure there is an interface planned for that in the future, but for today you'd have to ship it) [13:52] * zyga goes to debug kernel issues, please ping/mention me explicitly if you need my attention [13:52] ogra_, sergiusens http://paste.ubuntu.com/23899428/ here is my snapcraft file [13:52] jamespage: for one reason or another, it is good as these need to happen https://github.com/snapcore/snapcraft/pull/1093 https://github.com/snapcore/snapcraft/pull/1094 [13:52] PR snapcraft#1093: python plugin: do the right thing with classic [13:52] PR snapcraft#1094: core: switch to using rpath for clasic confinement [13:52] bulld: I cannot help you with that, no idea about GUIs [13:53] ogra_, i also tried [desktop-qt5] to build [13:53] sergiusens, thanks [13:53] that should at least give you a themed cursor [13:53] * mvo hugs popey for his emoj snap [13:53] sergiusens, am having issues with youtube video playback my project is using qt5.5.1 and qwebview [13:54] ogra_, same happedned with my previous application [13:54] note that i have no clue how to make flash work, but i'd start with placing libflashplayer.so inside the snap in a place where the app can find it and then stracing the whole thing to see what it tries to do and how it actually fails [13:54] ogra_, did you checked my craft file ?? [13:55] i'm also not sure if qtwebkit would even have support for flash at all [13:55] yes, i see it === mardy_ is now known as mardy [13:55] ogra_, it works fine when i play video in normal deb install [13:55] why are you building qt from source ? [13:55] am not building qt from source [13:56] thats the name of part , my app source code is in /src folder [13:56] oh, right, thats just your app [13:56] yeah [13:56] ogra_, am bulldog you remember me ?? [13:56] yes [13:56] ty [13:56] hehe [13:57] well, for the cursor thing i'd include the qt desktop bit ... and for flash i'd debug it like i said above [13:58] but as i said, i'd be surprised if qtwebkit could even woirk with it [13:59] ogra_, konqueror webbrowser works with flash [13:59] libflashplayer is built for being used with a plugin framework and i doubt qtwebkit provides that [13:59] and qwebview works with flash am sure about it [13:59] well, then you know more than me ... just make it work :P [14:00] QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true); [14:00] this line enable webview to use external plugins [14:04] ogra_, i will open this url in my snapped application from webview to verify whats wrong https://helpx.adobe.com/flash-player.html [14:06] it is saying Sorry, Flash Player is either not installed or not enabled. [14:10] PR snapd#2748 closed: seccomp-support.c: add PF_* domains which can be used instead of AF_* [14:15] jdstrand: I ased in one of the reviews but I was wondering if there's any specific thing you'd like to do with seccomp [14:16] jdstrand: (any changes to default policy or some kind of new interface) [14:20] zyga: that is very open ended. I saw the question about quotactl and answered it. did you have another question? [14:20] PR snapd#2752 opened: snap: add support user-sessions from snaps [14:21] zyga: all of the PRs (except the PF_* one, which was just an omission in the original implementation) are to meaningfully improve policy [14:21] well and the cleanups one [14:22] ok, so the quotctl, mknod and ioctl ones are all to fix real world issues [14:22] once I fix mknod I' going to work on chown/setuid/friends to 'daemon' [14:23] zyga: I don't know if any of that answers your question, but there you go [14:23] ogra_, how i can trace what my app looking for ?? [14:23] jdstrand: thanks, yes, that answers it [14:23] jdstrand: I was just curious about where this is going [14:23] bulld, put strace into your snap and run the app under strace === hikiko|ln is now known as hikiko [14:24] guys any working example snap with flashplayer and html5 video playback ?? [14:24] ogra_, i have no idea how to do that :( [14:25] "and html5" ? [14:25] it is either/or [14:25] zyga: mostly everywhere where there is a TODO in the policy to fix it with seccomp arg filtering, fix it. then fix bugs, then fix other things I noticed. fix, fix, fix :) [14:25] there is no and ... [14:25] ogra_, html5 video playback [14:25] * ogra_ wouldnt use flash at all for youtube ... [14:25] jdstrand: I was thinking about changing how some of the tests look like, it'd be good to add a few lines of documentation to each one [14:25] ogra_, yes [14:25] i'D just use the ubuntu webbrowser-app isnide my snap [14:25] that works fine with youtube [14:26] jdstrand: I grok them after a while but I have to double check each time if my feeling is right [14:26] ogra_, qwebkit support html5 video playback idk if youtube is trying with html5 why cant my app play videos [14:26] no idea, really... it is your app [14:27] ogra_, it work with debian install man [14:27] and we never used qtwebkit in ubuntu anywhere so i have no clue about it [14:27] :D [14:27] damn [14:27] zyga: can you give an example of a test that was hard to understand? [14:27] jdstrand: I specifically mean each of the seccomp test [14:27] ogra_, you telling me to include ubuntu webbrowser app in my snap ?? [14:28] on the phone we use oxide inside a webapp-container or the webbrowser-app ... if we want tio use Qt based stuff [14:28] zyga: yes, I figured, but like, what is hard to understand about it? (I'd like to clarify meaningfully rather than guessing) [14:28] jdstrand: hard is perhaps an overstatement but making it obvious like "check that $SYSCALL is denied when it is not in the filter" or something like this would help, I think [14:28] https://github.com/fcole90/fcole-hexgl-webapp is an example i think [14:28] omg :9 [14:28] :( [14:28] zyga: as a comment or test output? [14:28] jdstrand: the name encodes the meaning but it's also limietd by length/readability [14:28] jdstrand: as a comment really [14:28] (i actually thougth qtwebkit was dead since years) [14:28] ogra let me check [14:29] ogra_, no [14:29] :D [14:29] ok, I'll add a todo for that. I'll do that after I finish my policy updates [14:29] jdstrand: I was wondering if we could stick most of those tests into spread with preapre/execute and details section (details would be that comment) [14:29] anyway, thats all i know about web apps [14:29] hehe [14:29] you are so nice :) [14:29] lol [14:29] jdstrand: thanks, this is not urgent in any way :) [14:30] zyga: I think we need to always have these build tests to make sure the C code is right. adding spread tests on top is fine of course. I am also working on a snap to test various parts of policy that I figured a spread test could drive [14:31] in fact, it was that exercise where I found bug #1658219 [14:31] Bug #1658219: flock not mediated by 'k' [14:31] ogra_, my app http://imgur.com/a/o2GPq [14:31] jdstrand: yes, ideally we could run those via spread (like unit tests) [14:32] jdstrand: I wish there was a "more declarative" way of defining them [14:32] ogra_, how is it ?? [14:33] jdstrand: nice [14:36] jdstrand: btw, it would be helpful if you or anyone you know could answer a question with authority: is it possible to reliably determine that something is a bind mount by looking at /proc/self/mountinfo [14:36] sergiusens: is there any way to inject version numbers into a snapcraft.yaml at build time? [14:36] jdstrand: not urgent but something that will block update-ns when we return there [14:36] zyga: I would have to investigate. perhaps tyhicks or jjohansen would know [14:36] jdstrand: I can post this to a mailing list (not sure where) so that others can reply [14:41] zyga: stgraber might be someone else otoh [14:51] mhall119, hi === bulld is now known as bulldog [14:52] mhall119, my new app http://imgur.com/a/o2GPq [14:53] mhall119, is not talking with me on telegram either :( [14:58] any suggestions in trying to debug what's happening with my config hooks? I'm trying to use the dump plugin to put files on the filesystem for a classic snap [15:00] balloons: I did just echo to $SNAP stdout from a shell script personally [15:01] (and look in /var/log/syslog for denials) [15:01] $SNAP_DATA [15:01] bulldog: in a call atm [15:01] hmm, I was thinking a script might be easier to see what's happening. I need to kick a service anyway [15:06] bulldog: what was your question? [15:06] balloons: if you have a non-daemon app defined in your snap, you can "snap run --shell " to get a shell promot in the snap environment [15:07] mhall119, interesting [15:08] balloons: that's true for shell apps as well [15:08] er [15:08] daemon apps [15:08] jdstrand: I don't know if you saw my earlier ping about that but I'd love if you could review https://github.com/snapcore/snapd/pull/2745 [15:08] so what I'm trying to do actually is get bash completion to work, along with installing a sysctl file [15:08] PR snapd#2745: cmd: add sc_must_stpcpy [15:08] jdstrand: I plan to use that for all "strcat" like code [15:09] yes. I'll look at it after I fix the mknod branch [15:09] jdstrand: thanks! [15:09] zyga: oh? Is that a recent change? When I tried to do that with a daemon in the past it didn't work [15:09] mhall119: it doesn't care if it's a daemon or not, --shell just causes us to run /bin/bash [15:09] mhall119: you get the same confinement as whetever would run otherwise [15:10] PR snapd#2753 opened: tests: install ubuntu-core from the same channel as core [15:10] mhall119: if you saw otherwise I'd love to know more [15:11] zyga: well I can't reproduce that error now, so I guess it was user-error all along :) [15:19] mhall119, you there ? [15:20] mhall119, my app uses qwebview to play youtube videos , on normal debian install it plays well and when i snap it the youtube player saus videos cant be played n this device [15:20] pstolowski: hi! got a minute? [15:20] mardy, hello! sure, what's up? [15:21] pstolowski: I'm trying snapd from master, + your interface hook branch (step 3) [15:21] brave man ;) [15:21] pstolowski: if I run snapd with SNAP_DEBUG=1, should I see the lines "Run hook %s of snap %q" in the output? [15:22] pstolowski: or, to make the question more meaningful, how can I check whether my hook is being run? [15:24] mardy, I think (but haven't actually used debug mode) you would see 'Running task ...'. but isn't it SNAPD_DEBUG (not SNAP_DEBUG)? [15:24] yeah, it's SNAPD_DEBUG [15:25] pstolowski: indeed, sorry, I launched the proper command, just misspelt it here on IRC [15:26] mardy: look at syslog/journal [15:26] mardy: how are you running snapd? [15:26] bulldog: have you tried adding the browser-support plug? [15:26] the qwebview might need that [15:26] zyga: sudo SNAPD_DEBUG=1 ./snapd [15:26] mhall119, yes [15:26] sergiusens, ack - thanks for confirming - have a few classic snaps landing into /openstack today - but holding off on the auto-build to edge bit for now then! [15:26] mardy: (funny that it works like that now, we used to require socket activation) [15:27] zyga, pstolowski: I see quite a few lines there, including "Run configure hook of "amazon-webapp" snap if present" but nothing about interface hooks [15:27] mhall119, my craft file http://paste.ubuntu.com/23899846/ [15:27] pstolowski: are the hooks run for interfaces which do autoconnect? [15:27] mardy, they will only run when you connect (sorry if that's obvious) [15:28] bulldog: I'm not sure then, I imagine it has something to do with the html5 video playback, have you checked dmesg for DENIAL? [15:28] mardy, no, not yet [15:28] pstolowski: ah, that explains it [15:28] mhall119, how to do that ? [15:28] mardy, also, this branch doesn't actually use the attributes you set in hooks. this will come in the next branch [15:29] pstolowski: you mean the "step 3" branch, or another one? [15:29] ok let me check [15:30] mardy, the upcoming 'step 4' should (hopefully) make it possible to apply the attributes to the interface [15:30] bulldog: dmesg |grep DENIAL [15:31] bulldog: are you running in --devmode or in strict confinement? [15:31] mhall119, strict [15:31] ok,then if it's confinement causing your errors,it should show up in dmesg [15:32] mhall119, i installed with --devmode flag too but it still says this device cant play videos [15:32] mardy, although with step 3 branch it's already possible to exchange data between slot and plug side, as you can see in the attached spread tests [15:32] hmm, might be a configuration thing then, not sure [15:32] or a missing dependency [15:32] pstolowski: ok, thanks [15:33] bulldog: does it need flash to work? [15:33] pstolowski: and about running hooks for interface which are autoconnected, is that planned? [15:33] mhall119, this is very sad that my some of apps are still not running fine with snap [15:35] mardy, yes, afaict this needs to be supported (I don't see a reason why we wouldn't support this). it'll just come separately as for some reason autoconnect currently bypasses this execution path completely and needs to be treated separately [15:35] mhall119, he is using his own custom webapp built around qt-webkit and trying to use adobe-flash ... (instead of just using an oxide webapp container ... i already pointed to the hexgl snap but ...) [15:35] what support browser-support gives :D [15:35] mardy, (separately as in a separate PR) [15:36] ogra_, mhall119 , its not a webapp [15:36] ita an app to play back youtube videos, no ? [15:36] *it's [15:36] ogra_, my app is a qt gui qpp , with more then 5k lines of code [15:36] ok [15:36] pstolowski: ok, thanks a lot, I'll keep an eye on your branches :-) [15:36] well, you wrote it,. you should know how to debug it too then [15:37] yes it does , the question is if my app can play video in normal install why it cant do that in snap [15:37] mardy, sorry it's taking so long... but we're making progress [15:37] first of all strace it to see how/where it looks for libfalshplayer ... if it finds it ... if it execs it etc etc ... the standard stuff you do for debugging [15:37] qt is not changing its api for snap right after compilation right ? [15:37] ogra_, i think it is not looking for flash player [15:38] well, find out why ... and fix that [15:38] i renamed the libflashplayer.so in my system and it plays videos [15:38] ogra_, yes i will :( [15:39] i renamed the libflashplayer.so in my system and it plays videos that mean app not looking for flash layer [15:39] so it likely simply uses html5 and you dont need the flash player at all ... [15:39] yes [15:39] (like i said in the beginning of our conversation) [15:39] hmm [15:39] zyga: no, I don't know of a reliable bind mount check from userspace :/ [15:40] tyhicks: I see, thanks [15:40] tyhicks: is there any place better than mountinfo to see the mount table? [15:40] so i added - libavcodec-ffmpeg56 - ffmpeg in stage-packages but still no luck [15:40] tyhicks: I'm reading kernel documentation but I'm not that far yet [15:40] anyway, look at the hexgl snap that i pointed to, try to add the same interfaces and connect them ... also try to build your app unconfined and see if it works tghen [15:40] zyga: nope, that's the best [15:40] if it doesn, thats not a confinement issue [15:40] tyhicks: thanks [15:41] not sure why you would add ffmpeg [15:41] ogra_, it even wont play , when i install app with --devmode [15:41] so its an issue with your app ... debug it [15:41] libffmpeg.so is what makes play H264 vids [15:41] and fix the errors you find [15:42] ogra_, i said it is running fine on normal system [15:42] i do not write buggy code :D [15:42] bulldog: I'd suggest doing as ogra_ suggested earlier, use strace to figure out what happens when your app runs outside of a snap (it probably accesses something on your host and uses that to work) [15:43] zyga, ok [15:43] bulldog: then do the same inside a snap [15:43] bulldog: and compare to get an idea of what is missing [15:43] ok :( [15:43] bulldog: remember that snaps run in a chroot of sorts [15:43] bulldog: why the sad face? [15:43] bulldog: so I suspect you just rely on the fact that something on your host is being automatically loaded [15:43] i dont knnow strace and chroot and sorts [15:44] idk [15:44] bulldog: and that thing is not present in the core snap (or your own snap) and it doesn't work [15:44] bulldog: strace works like strace [15:44] bulldog: just strace ./program [15:44] ok [15:44] bulldog: --help and manual page has useful things, [15:44] zyga: from a real quick scan, MS_BIND is missing in fs_info struct in show_sb_opts() of fs/proc_namespace.c [15:45] bulldog: my suggestion is to limit it just to open() so that you see a very small set of data [15:45] zyga: I assume that is intentional but don't know why [15:45] PR snapd#2744 closed: overlord: move configstate.Transaction stuff into configstate.config.Transaction [15:45] zyga, am trying [15:45] tyhicks: interesting, thanks [15:46] tyhicks: I'll build a test kernel with a change there, maybe I can get some insight [15:46] zyga, i got my terminal filled with stuff [15:47] zyga, do i need to play video to find what it is using to play video ? [15:47] bulldog: strace -o is useful [15:47] bulldog: yes, use a realistic test case (do what it usually does) [15:48] ok [15:52] zyga: one last idea about it... I can't fully remember but MS_BIND may not actually be set in the superblock's flags when you do a bind mount. It may just clone the mount flags from the source superblock. [15:52] tyhicks: I see, I'll read that code and see what I can find [15:52] zyga: that'll be the case if your test kernel doesn't end up showing "bind" in mountinfo [15:53] zyga, i got something interesting man :) [15:54] zyga, please check this out http://imgur.com/a/TFoCm [15:55] ogra_, grep ffmpeg and flash of strace of my application http://imgur.com/a/TFoCm [15:56] mhall119, [16:01] :( [16:06] bulldog: I'm sorry I cannot check it out now [16:06] zyga, ok [16:07] zyga, you cant check image ?? [16:08] zyga, i want to know how to create those mimes files i think the player first read the mime files and then choose what codec is needed to play video and then call ffmpeg [16:09] i added shared-mime-infot to stage-package now [16:14] bulldog: no, I'm digging through kernel code, sorry [16:14] bulldog: mime files don't do anything on ubuntu-core [16:14] bulldog: and I doubt they are related [16:15] zyga, plyer tries to find he mime type am sure of this [16:16] bulldog: the server sends the mime type [16:16] or it may be dynamic at runtime [16:16] it always is as the server sends it [16:16] if it was not why strace showing mime stuffs [16:17] I'm sorry but I cannot dig into your code right now [16:17] server sends several url to playable streams [16:17] my code has nothing to do with that [16:18] bulldog: are you using desktop-launch from the desktop-qt5 remote part? [16:18] i have to pack it in deb :( [16:18] yeah [16:18] mhall119, yes [16:18] mhall119, two things not working , video playback and mouse cursor looks odd [16:19] rest of application works fine [16:19] wow, MS_BIND is really used just twice in the whole kernel [16:19] and both issues are when i pack with snap [16:20] mhall119, can i run update-mime-database before my app starts ?? [16:21] oh it is already done by desktop-launcher [16:32] zyga I've been asked what the RAM overhead for adding AppArmor to a kernel is. Any idea? [16:34] flexiondotorg: I've got no numbers for that off the top of my head [16:34] OK, thanks. [16:41] PR snapcraft#1095 opened: Plainbox providers run validate [16:43] pstolowski, poke ... [16:46] ogra_, hey [16:47] pstolowski, so i'm trying to extend our core snap for an option to turn syslog on/off ... [16:47] looking at https://github.com/snapcore/snapd/wiki/hooks [16:47] apparently i cant get any info about what option the snap set that hands over the value was called with [16:48] there is nothing in the shell env or in the arg list [16:48] does that mean that ... if i would package ... say postfix which can easily have 500 config options the confgure script would have to parse each single of them with a snapctl call ? [16:49] PR snapd#2749 opened: interfaces/default: allow mknod for regular files, pipes and sockets [16:49] (and would also set all these options every time i change one of them) [16:50] that doesnt look actually scalable ... is there a way for the configure script to find out what was called in snap set ? [16:52] flexiondotorg: no [16:53] flexiondotorg: I think jjohansen is the person to ask but you can measure that yourself [16:53] flexiondotorg: boot ubuntu on x86 [16:53] flexiondotorg: then disable apparmor [16:53] bschaefer: (you have to pass somthing on command line, I could check later) [16:53] er [16:53] flexiondotorg: ^^ [16:54] bschaefer: sorry, tab-mistake [16:54] flexiondotorg: then you can compare [16:54] flexiondotorg: but I don't suspect it is significant [16:54] zyga OK, thanks. [16:55] From some research papers is indicates maybe 1Mb of RAM. [16:55] But I'll need to test. [16:55] flexiondotorg: apparmor=0 is the kernel command option, which zyga is referring to, that disables apparmor [16:56] thanks :) [16:56] Yep :-) [16:56] flexiondotorg: once you do find out can you please give us a note [16:56] Yeah, will post on the ML. [16:56] flexiondotorg: include the test procedure as well, could be useful to repeat and measure [16:56] great, thanks [16:56] * ogra_ gives zyga a ♫ [16:57] Won't be for a couple of days though. [16:57] flexiondotorg: just to check that you've properly disabled apparmor after booting, run aa-enabled and make sure that it doesn't print "Yes" [16:57] flexiondotorg, he has a note now, no hurry, that will persist for a few days ;) [16:57] :-) [16:58] tyhicks Thanks for the tip. [17:03] ogra_, hmm, not really [17:04] do we plan to extend that in the future ? [17:04] ogra_, i know this is not answer to your question, but I feel like it's worth mentioning - you can structure your options in a map, and then get them all in one go [17:04] * ogra_ imagines shell script hooks with 100s of lines of snapctl get at the top [17:04] ogra_, e.g. snapctl set author='{"name":"pawel", "age":18}' [17:05] yeah, that doesnt help much ... especially in the context of the core snap where i probably only want to toggle a few options of the OS [17:05] ogra_, and then "snap(ctl) get -d ... author" will give you a formatted json document will both options [17:05] right [17:05] s/will/with/ [17:06] i think we need a way to make the script knwo what option is being changed [17:06] ogra_, i think the idea was to use that as input to generate the target config [17:06] thats fine for initial install [17:06] but not if you want to change a single value [17:06] ogra_, I don't know of any plans to do that. this is the first time I hear about this limitation. but I think you're right [17:06] in a snap that has tons of options [17:07] ogra_, yes.. sounds like a lots of work for script author to handle anything more complex than a few options [17:07] well, i'm already stuggling with more than one :) [17:07] ;) [17:08] morphis_ created a configure script for the core snap [17:08] i'm trying to add a second option but seemingly cant do that without also parsing his option every time i set mine [17:08] ogra_, yeah, it's worth discussing. i'm about eod, need to pack things for the trip. back on monday but feel free to discuss tomorrow on standup [17:09] ogra_: yeah you don't get a info which option is set [17:09] i'll drag it to the ML [17:09] ogra_: niemeyer talked about something to improve this [17:09] morphis_, yeah, imagine you package postfix ... 500-800 possible options ... [17:09] ogra_: but currently the only optio is to save state .. [17:09] ogra_: I know, configure hook is pretty limited [17:10] the configure script would probably end up bigger than the whole postfix source [17:10] :-) [17:10] ogra_: and my problem is that it is sometimes orthogonal to existing configuration systems as both can change and then don't match anymore [17:10] yeah [17:10] so you need to go state both ways etc. [17:11] pretty complex [17:11] yup [17:11] raised that already back when the hook was introduced but I guess this is still just the beginning and to be improved in the future [17:11] i hope so :) [17:12] well, i'll just add my option to it then ... [17:12] it sounds to me like snap config options should only be used for some fundamental settings and not try to replicate all apps settings [17:12] e.g. what port to listen to or some such [17:13] ogra_: wait, snapd does not update gadget snaps? [17:13] morphis_, nope [17:13] wooot? [17:13] yeah [17:13] awe_: ^^ [17:13] i was the same :) [17:13] ogra_: why is that the case? [17:13] safety net i think [17:13] ask mvo [17:14] so if a vendor updates its gadget snap in the store it doesn't get pulled and installed? [17:14] we actually have a bug (though regarding the config.txt on the pi, but it applies to all gadget content afaik) [17:14] ogra_: so lets say I add another plug to the gadget snap for a serial-port it doesn't get available on the device ever? [17:15] morphis_: plugs are processed (that's snap.yaml) [17:15] i dont know if any parts get updated ... if there are any they are selectz bits [17:15] morphis_: but we don't process any of the gadget artefacts [17:15] good night guys , i was not able to play videos in qwebview :( [17:15] morphis_: we don't bundle the equivalent of what ubuntu-image does [17:15] yeah, you wont get a new grub config or a fix in the grub binary today [17:15] zyga: right, so just gadget.yaml is ignored, correct? [17:16] morphis_: yes [17:16] zyga: but lets say I change my configure hook in the gadget snap its still being updated and executed? [17:16] thats in the snap.yaml, right ? [17:16] morphis_: yes [17:16] morphis_: it's just like any other snap [17:16] good [17:16] morphis_: we just don't have code that goes over what is done by the gadget at build time [17:17] we need that though :) [17:17] morphis_: there is a bit of a misunderstanding here it seem. we update the gadget snaps, we just don't update the bootloader bits and apply them to /boot/{uboot,grub} [17:17] ogra_: then your comment on the bug does not apply [17:17] morphis_, yeah, sorry [17:17] seems i misunderstood [17:17] mvo: yeah I just figured that .. [17:17] aha, thanks zyga, you already said this [17:17] ogra_: can you correct that on the bug? [17:18] done [17:19] mvo: thinking about it [17:19] mvo: perhaps it would be better in general [17:19] mvo: to have a special hook that gadgets could have [17:19] mvo: that lets them upgrade themselves [17:20] mvo: this feels more flexible than teaching snapd to understand all the random devices out there [17:20] mvo: and we could then leverage ubuntu-image codebase to construct gadget update hooks [17:20] that sounds like a plan [17:20] mvo: (where the hook would run a new tool built from the same codebase) [17:20] mvo: and since the hook can inspect the system (kernel, what not) it could be smarter about hard cases [17:21] mvo: it could even be the configure hook though I somewhat share ogra_'s opinion about scalability [17:21] (as in what the hook is supposed to do when invoked) [17:22] mvo: and over time this could do other funky stuff like push a new gadget to update firmware on some oddball attached device [17:22] (e.g. reflash arduino with new program) [17:22] well, i'd already be happy to be able to update bugfixes in the bootloader binary [17:22] we do that all the time on classic [17:23] so there is no reason to not do it on core [17:23] zyga: interessting idea, I think this aligns with the discussions we had at the sprint [17:38] sergiusens, what email client are you using? those colored lines in your replies are weird :-) [17:53] seb128: I am using dekko :-P [17:53] seb128: I've been notified [17:53] k, it's just weird looking :-) [18:12] sergiusens: I presume that's the wonky reply quoting your talking about? where you get loads of >>>>> in place of text. A fix for that will be landing shortly. [18:28] DanChapman: \o/ [18:28] Yo all [18:37] PR snapd#2753 closed: tests: install ubuntu-core from the same channel as core [18:37] sergiusens: have you had a chance to take a look at breaking up the (stage|build)-packages backend up like we discussed at the October sprint? [18:38] in snapcraft [18:58] zyga: I think it would probably be a good idea to do 'sysctl -w kernel.printk_ratelimit=0' for all spread tests. where would be the best place to put that in your opinion (otoh only). "I'm not sure" is an ok answer [19:05] jdstrand: ... in tests/lib/prepare.sh [19:06] tyhicks: you were right about MS_BIND, I patched the kernel a little bit (though this is a dead-end IMHO) to learn how things work [19:06] tyhicks: I've added MNT_BIND that gets set on bind mounts and printed in mountinfo [19:06] tyhicks: I kicked off another build [19:07] tyhicks: I start to think that I could use the tree structure to figure things out, I'll write a small helper for that tomorrow (to graph the mount structure) [19:08] tyhicks: if you know of one already then please drop me a line, otherwise I'll write one tomorrow (probably based on the existing mountinfo parser and dot/graphviz) [19:09] zyga: findmnt -a? [19:10] of maybe some other incantation [19:10] * zyga trie [19:10] tries [19:10] oh, groovy [19:11] zyga: thanks for prepare.sh [19:12] jdstrand: findmnt seems to do _something_ to figoure out bind mounts :) [19:12] jdstrand: that's very promising [19:12] cool [19:15] jdstrand: my patch actually worked [19:15] 257 24 8:1 /hacking/source /hacking/target rw,relatime,bind shared:1 - ext4 /dev/sda1 rw,errors=remount-ro,data=ordered [19:15] not very pretty but ... it shows bind mounts ;) [19:17] neat :) [19:22] jdstrand: http://paste.ubuntu.com/23901026/ [19:23] huh [19:23] jdstrand: what? [19:24] just surprised that wasn't done already [19:31] jdstrand: I had a look at findmnt [19:37] jdstrand: and it treats anything that has mnt_root != "/" [19:38] jdstrand: it doesn't technically list bind mounts [19:39] jdstrand: it just has special syntax for btrfs and bind mounts [19:39] jdstrand: in any case this may be sufficient [19:39] jdstrand: do you think I should try to submit my MNT_BIND patch anywhere? [19:44] zyga: you might want to ask the kernel team about that [19:48] jdstrand, you totally missed the classic snap that installs the classic dimension in which you can then develop classic snaps with classic confinement ! [19:48] (in your list in the mail) [19:52] ogra_: heh, I did actually think about it, but I was trying to focus on the two things that he may have been conflating [19:53] yeah, i wasnt serious :) [19:53] :) [19:53] it is pretty overloaded :) [19:53] ogra_: that's a classic joke now [19:53] * zyga hides [19:53] LOL [19:53] oh, boo :P [19:57] jdstrand, do all classic snaps have to have an initial manual review? [20:10] balloons: yes [20:12] jdstrand, can i pm you about something? [20:14] flexiondotorg, zyga, jdstrand: the amount of ram overhead is highly dependent on policy, and cpu count. apparmor preallocates some per cpu work buffers. so a no policy base cost is you are looking at 2-4 pages/cpu + a few other small allocations. Policy is a lot harder to pin down, as it can vary drastically by what rules are used, how many profiles are loaded etc. Each profile will vary from just a few kb up to say a few 100 kb. [20:14] It also depends on what compiler options are used. The policy is compiled and usually minimized and then compressed. There are flags to tune at each stage (they usually don't make huge differences, unless you disable a given stage entirely) but I have seen differences as large as 40%. We try to set the compiler to a good default, that balances cpu time for policy size. [20:14] And yes, kernel side the policy stays compressed, its a compression that allows us to directly us the data, (more of a packing but it can do state differences etc) [20:16] jjohansen: hey [20:16] hey zyga [20:16] jjohansen: I was working on a smaller test case for the bug you may remember, so far no luck (it works) [20:17] jjohansen: the original test is still broken [20:17] jjohansen: I'll continue this work tomorrow [20:17] zyga: ack, poke me to look at it again, I have been side tracked by other work [20:17] jjohansen: I asked a question in #ubuntu-kernel about a small patch, not sure if you want to review it (not sure if it makes sense to track MS_BIND flags) [20:18] jjohansen: I'll poke you tomorrow (hopefully with a simple C program that shows this issue) [20:19] zyga: I'll have a look [20:19] stokachu: of course [20:21] nessita: fyi, https://myapps.developer.ubuntu.com/dev/click-apps/5570/rev/652/ is stuck with "Automated review not yet completed.". These are coming from balloons' LP build and ther are now 80 revisions queued cause r652 is stuck. I granted classic confinement, hopefully if r652 gets unwedged, everything will just flow [20:21] nessita: Submission date for r652 is 2017-01-28 06:15 - 3 days, 14 hours ago [20:27] jdstrand, hum, checking [20:28] nessita, hi! sent you and michael an email [20:28] stokachu, hi! is that a snap that we really want canonical to "sponsor"? [20:29] nessita, yes [20:29] as in, is a canonical product? [20:29] Hello gents, I'm chasing down a Seccomp issue my program seems to be triggering [20:29] nessita, ah yes it is a canonical product [20:30] stokachu, ack, thanks; as soon as mvo replies with some ack I will do the transfer (likely tomorrow, is late for him and I'm close to EOD). Is that ok? [20:30] nessita, yea that's great ty! also ill still have upload rights to it? [20:31] HumbleBeaver: do you have a denial in syslog? eg, grep -F type=1326 /var/log/syslog [20:31] stokachu, yes, the transfer automatically give you collaborator rights [20:32] nessita, perfect ty! [20:33] @jdstrand:yes [20:33] HumbleBeaver: No such command! [20:35] HumbleBeaver: can you paste the output to paste.ubuntu.com? (you might also be interested in 'sudo snap install snappy-debug ; sudo snappy-debug.security scanlog') [20:36] ogra_, what is the state of SPI on ubuntu core? [20:38] jdstrand its been pasted, and I've got the debugger installed. [20:39] HumbleBeaver: can you give me the link with the paste? [20:39] jdstrand yes one moment [20:40] jdstrand http://paste.ubuntu.com/23901389/ [20:41] HumbleBeaver: cat you paste the contents of /var/lib/snapd/seccomp/profiles/snap.codebreakers.? [20:41] s/cat/can [20:44] jdstrand http://paste.ubuntu.com/23901416/ [20:46] Pharaoh_Atem: I am going to take a spike at it this week or weekend; was thinking about it this past weekend but I got sick (two weekends in a row) [20:46] HumbleBeaver: ok, you have two choices. adjust your code to use 'sched_setscheduler(0, ..., ...)' or add 'plugs: [ process-control ]' to your snapcraft.yaml [20:47] HumbleBeaver: is this an open source project? if so, is the code hosted somewhere? [20:48] sergiusens: I know that feeling well [20:48] I was sick the entire month of December [20:48] it sucked a lot [20:50] jdstrand Yes its on github, https://github.com/bflanagin/CodeBreakers [20:54] HumbleBeaver: we allow sched_setscheduler to be used with '0' as the first argument because that limits changing the scheduler to a process for this snap. other values for the first argument allow changing the scheduler for other pids that aren't from your snap [20:55] jdstrand do you know how I might have caused the issue. It only occured when I tried to use the LocalStorage [20:55] HumbleBeaver: the process-control interface allows you to use sched_setscheduler with any arguments. looking at your code, it seems that it is something in the qt libraries that might be doing this. are you explicitly setting the scheduler in some way? [20:56] maybe it is sqlite [20:56] It must be, I have timers for some things, for animations but thats it [20:57] jdstrand I've got it repackaged, let me see what happens now [20:57] HumbleBeaver: this is a thread scheduler unrelated to timers [20:59] jdstrand I figured as much, its really a simple game. [21:00] I see sqlite3 uses sched_setparam but not sched_setscheduler [21:01] jdstrand, I gotta run now, Daniel (roadmr) is helping me debugging but I may unblock the revision tomorrow, sorry [21:02] nessita: thanks, sorry for pinging you at your eod. balloons, fyi ^ [21:03] jdstrand, long story short I can file an RT to get that unblock, but would like to fidn what caused the blockeage first to be able to fix [21:03] makes sense [21:07] jdstrand, will keep you posted [21:09] jdstrand I've added process-control to plugs, as well as network-control (this was suggested by the debugger) [21:10] both seem odd for a QML app that only uses javascript to make it do what it does [21:10] HumbleBeaver: you shouldn't need network-control. what was the denial? [21:10] ty all [21:11] jdstrand I thought it was odd too, one moment [21:18] ogra_: fwiw, the link to db image seems broken from this page [21:18] https://developer.ubuntu.com/core/get-started/dragonboard-410c [21:19] jdstrand I removed network-control but left network (I'm going to need it later anyway). It was the debugger that suggested I add network-control, but I don't know what it was complaining about. [21:20] HumbleBeaver: the debug command will make several suggestions. it's possible there was a cascasding failure since you didn't have process-control [21:20] PR snapd#2558 opened: snapstate: move refresh from a systemd timer to the inernal snapstate Ensure() [21:21] HumbleBeaver: I've taken a todo to look into why qml apps need sched_setscheduler [21:21] jdstrand That makes sense, with process control my app still fails to start, but there are no more debug errors when in devmode [21:22] thanks for looking into this I'll see if I can set the scheduler like you suggested [21:24] PR snapcraft#1088 closed: Release changelog for 2.26 [21:26] HumbleBeaver: I don't think there is anything for you to do. I think it is in the guts of QThread: http://sources.debian.net/src/qtbase-opensource-src/5.7.1%2Bdfsg-3/src/corelib/thread/qthread_unix.cpp/?hl=721#L721 [21:27] * jdstrand hugs sergiusens for releasing 2.26 ('desktop' in snap.yaml has been annoying :) [21:28] * sergiusens hugs back [21:28] jdstrand: would of pushed on Friday, but we had unexpected adt failures which were sorted [21:29] sergiusens: no worries, it hasn't been too bad [21:32] jdstrand I hate it when that is the case, and I forgot to connect process-control to codebreakers. It now works in Scrict mode [21:32] Forgive my ignorance, but will other users have to do that as well to use the application on their system? [21:35] HumbleBeaver: yes. like I said, I need to look into what is happening and see what to do to fix it [21:39] jdstrand thanks for your help, I'll rewrite the code to use an online leader board while you get things sorted. [21:41] kgunn, bah, looks like slangasek's re-arranging for automatic builds broke all links ... there was a new "/current" layer added [21:42] ogra_: what links? [21:42] i'm not actually sure we need current and pending there [21:42] slangasek, https://developer.ubuntu.com/core/get-started/dragonboard-410c [21:42] mmk [21:42] the extra layer is there by discussion with QA (jibel) [21:43] we have the same promotion process for images for the stable channel as elsewhere: we produce the image, it's put through QA, then it's published as current after it's been confirmed to work [21:43] except that they (used to) test candidate [21:43] we can retrofit some compat symlinks, but can we also please update the pages? [21:43] yes [21:44] the candidate image is a separate image build [21:44] because the channel has to be changed within the image [21:44] and we want QA of the actual output of the image build [21:44] of snaps that get promoted through the store levels [21:44] the only thing you woulld test there is ubuntu-image :) [21:44] maybe you have confidence that ubuntu-image will always produce correct output [21:44] I am more conservative about my own code ;) [21:44] heh, k [21:45] (also, jibel wanted it ;) [21:45] the thing is that we are duplicating the processes ... snaps should layer through the store [21:46] https://wiki.ubuntu.com/QATeam/OSSnapPromotion [21:47] ogra_: so, I'm willing to do this any way that the team thinks is correct, but when I asked jibel how he wanted these done this is what he asked for [21:47] the snap is identical in candidate and stable ... that should be true for kernel, core and the gadgets [21:47] anyway, compat symlinks are now in place [21:47] thanks [21:47] will you take care of updating the documentation? [21:47] i'll file the PRs yeah [21:47] thanks [21:48] kgunn, ^^ all back [21:48] ;) [21:49] kyrofa, hmm, should all work on a low level, though i'm not sure if we might need extra interface love ... [21:49] ogra_, just saw this pop up: https://askubuntu.com/questions/878445/error-illegal-arguments-for-construction-of-exports-spi [21:50] ogra_, which is from classic mode, which should be devmode [21:51] bah [21:51] sigh [21:51] ogra@localhost:~$ grep spi /boot/uboot/config.txt [21:51] #spi=on [21:51] ogra@localhost:~$ [21:52] i'll fix that tomorrow ... can you tell him to remove the comment for now [21:54] ogra_, that's writable? Will do [21:55] yeah, it is ... but isnt upgraded when we update the gadget [21:55] so he would have to re-install an edge image ... just uncommenting is the least painless [21:57] do we know if the launchpad snap builds support the /snap directory now? [21:57] ogra_, perfect, thank you for investigating. Shall I log a bug? [21:57] kyrofa, nah, i'll do it with the next gadget update [21:57] stokachu, I don't think so-- that's snapcraft 2.26 which isn't quite out yet [21:57] stokachu, but once it's in -updates LP will support it [21:57] kyrofa, ok thanks, ill continue building manually until then [21:58] the fact that installed gadgets do not get updated is known and has bugs [21:58] ogra_, alright, sounds good [21:59] wgrant: do you remember the snap directory conversations? ^ [21:59] sergiusens: ie. having buildds mount the core snap for classic builds? [22:00] wgrant: no, snapcraft.yaml inside snap/snapcraft.yaml [22:01] Oh that. [22:01] sergiusens: I don't think LP needs specific support for that, does it? [22:01] wgrant: not out yet, but lp detection of that as a valid thing might be a thing; both you guys are subscribed to the bug, not sure if I need to do more next time [22:01] It doesn't use snapcraft.yaml except via snapcraft itself. [22:01] So it should Just Work. [22:01] wgrant: I think, I don't know; does the +Create a snap button show regardless? [22:02] Oh right. [22:02] buildd doesn't, but the app does, to autoparse the name. [22:02] cjwatson is working on some stuff in that area atm, so might be able to sort it out. [22:03] sergiusens: IIRC /snapcraft.yaml, /.snapcraft.yaml and /snap/snapcraft.yaml are all valid now? [22:03] Anything else? [22:03] wgrant, you got it [22:04] wgrant: correct [22:04] Great. [22:04] ok, I am EODing now! [22:04] cheers [22:04] Note that all this breaks is the name autodetection when creating a new snap. [22:05] Builds will work fine, and when creating a new snap that uses a new location you'll just need to enter the name manually. [22:05] wgrant: good to know, I won't block on releasing then [22:15] bzoltan: zbenjamin: have you guys had any issue with QML/SDK apps running as fully confined snaps? HumbleBeaver is experiencing a problem related to SQLite [22:42] Hi I was wondering if someone could help me package MyPaint. I read through the tutorial, but I would like someone to help me walk through the process so I can get it. [22:48] odysseywestra Howdy, I'm still learning too, but I've got one or two snaps under my belt. [22:48] I'll try my best to get you running, where are you at in the process [22:51] and then my dogs demand I take them on a walk. [22:52] Yeah, and one of my family member came over unexpectedly. [22:52] odysseywestra lol, well I'll hit you up after the walk, if someone isn't helping you I'll see what I can do for you [22:53] Okay thank you. [23:34] jdstrand: replied on must_stpcpy, I think I misunderstood you initially, strncat is mostly useless for preventing bufer overflows IMO [23:35] jdstrand: if you want we can discuss this here quickly or back in the pull request slowly [23:38] Anyone awake in this channel? I'm having some issues installing snapd. The error i'm getting is: failed to synchronize cache for repo 'zyga-snapcore' [23:39] PugnaciousOne, what OS? [23:40] CentOS [23:40] i would have used ubuntu but the company i work for has issues if i use anything other than centos [23:40] zyga, can you take a look at that? ^^ [23:40] i'm trying to adapt the fedora guide to it [23:40] PugnaciousOne: hey, centos is not supported yet [23:40] PugnaciousOne, understood, I've been in that situation as well [23:40] PugnaciousOne: I'm sorry but I didn't build a centos package [23:41] PugnaciousOne: we're trying to get a working package but it's been somewhat starved by other things [23:41] PugnaciousOne: if you want to help I could use someone to work on a centos package [23:41] ah, i'll have to try and get them to make an exception then. it's very similar to fedora though. [23:41] what type of help do you need? [23:41] PugnaciousOne: just on the packaging itself [23:42] PugnaciousOne: I can work with you, I think we could reuse some of the work that went into the (incomplete because of selinux) fedora package [23:42] i have about 4 hours. i can test whatever, but i'm currently vpn'd back into my company network so i can access the server through ssh [23:42] if it makes you feel any better, i run selinux in permissive mode so it shouldn't be an issue on my end [23:43] the vpn connection means that i'm a bit slower than i normally would be. i'm on a little laptop at home [23:43] PugnaciousOne: right now the package that I was trying to build for fedora is a few releases behind and stuck on selinux policy; there's no centos package available as that was planned as the next step [23:43] PugnaciousOne: which version of centos do you need to use? [23:44] 7 [23:44] the security guys have a cow even if linux is mentioned. it took me months to get permission to use centos 7 [23:44] PugnaciousOne: ok, I cannot give you anything concrete but have a look at this: https://github.com/snapcore/snapd/wiki/Distributions#centos [23:45] PugnaciousOne: if you want to contribute and help make the package happen I can giude you [23:45] PugnaciousOne: but I cannot work on it full time yet [23:45] PugnaciousOne: I wish I had better news [23:46] i'll help as much as i can. just let me know what info/input you need from me [23:46] PugnaciousOne: well, to work on the package itself [23:46] i was hoping to setup a rocketchat server to demo to the guys visiting from corporate tomorrow. trying to get them to move out of the stone age and use actual communication [23:47] let me check and see if i have the dependencies first and i'll get back to you in a few minutes [23:47] PugnaciousOne: if you cannot work on the package then don't worry, I'll get around to work on it soon (~1-2 weeks probably) [23:48] PugnaciousOne: you may want to talk to Pharaoh_Atem [23:48] PugnaciousOne: he was working with me on the initial fedora package and has helped me a lot with RPM specific knowledge [23:49] ok. i'll look into it. to be honest my coding is rusty and i don't use linux enough. do you think it would be possible to build it from source? [23:49] PugnaciousOne: yes although you'd have to glue the bits together manually [23:49] PugnaciousOne: that doesn't sound like a good demo material [23:50] PugnaciousOne: I'd recommend trying this out on debian/ubuntu for now [23:50] sadly, i'm familiar with gluing bits together. i'll just see if i can build a debian install tomorrow [23:50] PugnaciousOne: on sid you can apt-get install snapd [23:50] PugnaciousOne: or xenial, that's the most tested release [23:51] yeah. the info sec team is going to have a field day, but...if i strip the install down enough i should be able to get them to accept it [23:51] what's xenial? [23:51] PugnaciousOne: codename of ubuntu 16.04 [23:51] PR snapcraft#1096 opened: schema,copy plugin: better errors when item has no value [23:51] ah [23:51] i've mostly been using arch for the past 3 years [23:52] PugnaciousOne: there's an arch package but it is outdated as well [23:53] i'll stick with debian i think [23:53] it'll be the easiset for me to get them to accept [23:54] PugnaciousOne: on xenial you will get much stronger security than on ubuntu [23:54] PugnaciousOne: on debian the confinement system is not enabled as apparmor patches are not all available in the kernel there [23:54] zyga, how does snapd work on openembedded and/or yocto? Do we have recipes upstreamed for snapd, snap-confine, etc? [23:54] PugnaciousOne: s/than on ubuntu/than on debian/ [23:54] PugnaciousOne: it's a matter of time but for now ubuntu is the best host for snapd [23:55] ok [23:55] kyrofa: I didn't work on openembedded [23:55] zyga, do you know who did? [23:55] kyrofa: no, I'm sorry [23:55] kyrofa: that may have been asac [23:55] Wonder who's maintaining that nowadays [23:56] I suspect nobody [23:57] As do I [23:58] zyga, are there any other distros on snapcraft.io that you're uncertain about?