/srv/irclogs.ubuntu.com/2016/08/23/#snappy.txt

stgraberjdstrand: I guess it's fine. I can't really test this until we get the snap moved though :)01:40
mupBug #1615566 changed: snapcraft SDK <Snappy:Invalid> <https://launchpad.net/bugs/1615566>02:03
mupBug #1615030 changed: Ability to completely remove a snap from the snap store <Snappy:Invalid> <Software Center Agent:Confirmed> <https://launchpad.net/bugs/1615030>02:21
mupBug #1612909 opened: Unable to install snappy in Fedora <Snappy:In Progress by zyga> <https://launchpad.net/bugs/1612909>03:13
=== chihchun_afk is now known as chihchun
=== BlueT is now known as BlueT_Lien
zygao/08:12
=== ant_ is now known as Guest15611
zygamwhudson: hey, can you tell me what is your workflow for snap-confine in debian08:20
zygamwhudson: I have the repo from alioth, I see some work towards 1.0.4008:21
zygamwhudson: I'd like to finish that and release it to sid and yakkety08:21
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
zygajdstrand: dh-apparmor is not in main, yet snap-confine build-depends on it09:16
zygajdstrand: somehow it never caused issues but isn't this against the policy/09:16
zyganiemeyer: latest spread (from a snap) gives me this output: 2016/08/23 11:36:40 Allocating &{linode ubuntu-16.04-64-grub ubuntu-16.04-64-grub    %!s(int=1) %!s(*spread.Environment=&{<nil> [] map[]}) []}...09:37
zyganiemeyer: similarly the output is very wrong after that09:38
autonomouseHi folks. General question: I've got a simple one file python2 script that I'd like to snap. I have my snapcraft.yaml in the same folder. was hoping that I'd just be able to do this?: http://paste.ubuntu.com/23080902/    but it doesn't seem to be able to find it in the scripts directory: "[Errno 2] No such file or directory: .../prime/scripts/script.py". Do I need a makefile?10:02
mupBug #1616006 opened: clean remove of snapd <Snappy:New> <https://launchpad.net/bugs/1616006>10:04
zygaautonomouse: you need setuptools support AFAIK10:08
autonomousezyga, ok, I'll look into that now. thanks10:09
ogramvo, urgh ... i guess we didnt update the pi3 gadget along ... http://paste.ubuntu.com/23081105/10:18
looldavidcalle: heya10:18
looldavidcalle: do we have online references on building kernel snaps? e.g. on snapcraft.io10:18
heartHello everyone, I do not know if this is the right place to ask. Are there restrictions in running a docker container that needs to access a serial port? I do not know, permits or other? In docker normally just expose the device with --device10:19
looldavidcalle: if not, I have seen various base materials fly around that would be good starting points for a kernel page10:19
loolysionneau: what was your issue with docker?10:20
loolheart: privileged containers are required for this; it migth work, if it doesn't I'd be interested in the error you're gettig10:21
loolheart: note however that this is basically giving root to anything running in that container10:21
mvoogra: indeed, looks like this is missing10:22
ograyeah, just comitted and pushed10:22
heartlool: naturally, I think I have some problem even with privileged mode. I continue to investigate and let you know10:22
heartlool: I'm working with a dell edge gateway10:24
ogramvo, https://myapps.developer.ubuntu.com/dev/click-apps/5596/rev/2/ ... please approve10:25
mvoogra: done10:28
ograthx10:28
=== hikiko is now known as hikiko|ln
mupPR snapd#1721 opened: dependencies: update godeps <Created by mvo5> <https://github.com/snapcore/snapd/pull/1721>10:43
ogramvo, hmm ... http://paste.ubuntu.com/23081147/10:45
mvoogra: hm, no netwokring?10:46
ogra(pi3 with the snappy_boot script chaNGES IN TEH GADGET)10:46
ograEEK10:46
mvoogra: ha! CAPSLOCK10:46
ogrageez, i need to rip off that caps key10:46
mvoogra: I remapped mine - ctrl:nocaps10:46
ogramvo, deliberately since the pi3 now has wlan support10:46
ograso the cable is unplugged10:46
mvoogra: oh, this may be a general image bug10:46
ograbutu before it actually told me that the networking job is waiting10:47
ogramvo, well, i actually think its a systemd bug (or at least the systemd network bringup part) that it does not sense if a cable is plugged in10:47
ograpitti, ^^^10:47
ogra(and it is now about 2years old too ... )10:48
ograshould not be hard to check for a connected cable really ...10:48
mvoogra: hm, pi2 without network cable booted ok10:48
ograi guess you need two NICs ?10:49
mvoogra: possible, I can see if I find a wlan thing10:49
ograi'll do a re-flash after my test runs10:49
ograand will check if plugging it in actually makes a difference (the dragon only has wlan, the pi2 only eth)10:50
ograsigh ... cloud-init still not finished10:50
ograthats close to a 5 min firstboot now :/10:50
ograah, now i have the prompt10:51
ograubuntu@localhost:~$ cat /etc/network/interfaces.d/enxb827ebc92b0310:51
ograallow-hotplug enxb827ebc92b0310:51
ograiface enxb827ebc92b03 inet dhcp10:51
ograubuntu@localhost:~$10:51
ograaha10:51
ograsdo it created a config for the wired NIC ... regardless if it is in use10:52
ogra(and i remeber we had an additional option in there to wotrk around that bug in 15.04 )10:53
ogramvo, hmm, funny, it doesnt hang on the second boot10:57
ograso it is the combo of firstboot and the allow-hotplug line10:57
mvoogra: oh, I think I know10:57
mvoogra: there is a race in the network bringup code10:57
ograyay10:57
ogra:P10:57
mvoogra: there is a fix in a PR :)10:58
ogra\o/10:58
mvoogra: I will extract it and push a separate pr, its currently part of a big brnach10:58
ograok10:59
* ogra does a quick ubuntu-core armhf build to check the upgrade mechanism11:06
ogramvo, in snapweb, all installed snaps listed after the first boot are marked non-removable, *except* the kernel ...11:12
ograi guess we dont want users to allow removing the only kernel that is installed ?11:12
mvoogra: definitely not11:13
ograis that info from snapd thats wrong or is it a snapweb bug11:13
bullguys see the design  , https://github.com/keshavbhatt/snapcraft-gui11:13
mvoogra: `$ sudo snap remove pi2-kernel11:13
mvoerror: cannot remove "pi2-kernel": snap "pi2-kernel" is not removable11:13
mvo`11:13
pittiogra, mvo: ifupdown doesn't block boot on allow-hotplug, is that what's hanging?11:13
mvoogra: so that won't work11:13
mvoogra: snapweb is buggy11:13
pittianyway, too little information/context here -- please file a bug with the details if there is any11:13
ogramvo, right, but it shouldnt even show me the "remove snaüp" button11:13
ograpitti, seems to be the interaction with snappy firstboot ... still, why is systemd not checking the cable state and just ignore the interface ?11:14
mvoogra: yes, bug11:14
ogramvo, right, where ? :)11:15
* ogra wants to file it 11:15
ograis it snapd giving wrong info or is it snapweb not respecting it11:15
pittiogra: what are you using? ifupdown or networkd?11:16
ograpitti, ifupdown obviously11:16
pittiifupdown support for hotplugging/cable state is quite bolted on, but it works in general, so again -> bug11:16
pittiogra: "obviously" → not really any more :)11:17
ogra(i'm not sure what creates the /e/n/i entry though ... that might be snapd)11:17
ograpitti, obviously because we have an /e/n/i file after first boot :)11:17
ografor the NIC11:17
mupPR snapd#1721 closed: dependencies: update godeps <Created by mvo5> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1721>11:17
mupPR snapd#1715 closed: asserts,overlord/devicestate: simplify private key/key pairs APIs, they take just key ids <Critical> <Reviewed> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1715>11:18
bullmhall119, https://github.com/keshavbhatt/snapcraft-gui11:19
=== hikiko|ln is now known as hikiko
mupPR snapd#1722 opened: many: support install and remove by revision <Created by chipaca> <https://github.com/snapcore/snapd/pull/1722>11:32
davidcallebull: very cool!11:43
bulldavidcalle,  ty did you compiled it ??11:45
davidcallebull: yes, runs just fine11:46
bullwow :D ty11:47
jgdxogra, am I doing this the right way? e.g. bug 1616048 and bug 161604512:24
mupBug #1616048: Create interface for ofono <snapd (Ubuntu):New> <https://launchpad.net/bugs/1616048>12:24
mupBug #1616045: Create interface for the power daemon <snapd (Ubuntu):New> <https://launchpad.net/bugs/1616045>12:24
jgdxI look at snapd/interfaces/builtin and can't find it, then I search for a bug for it in the snapd package on launchpad.12:25
ograjgdx, yeah, i belive that is right ... there is a tag you should set for interfaces12:25
* ogra looks for it12:25
ograsnapd-interface12:26
ograset that too, then zyga and jdstrand see it on their lists12:26
jgdxogra, cool, thanks. I think I'm going to create ~20 of these12:26
ogra:)12:27
ysionneaulool: any news about a build with the bug fix on snapweb for armhf?12:35
loolysionneau: no, elopio has a solution to provide one, but I +1-ed his pull request yesterday after he EOD-ed12:36
loolysionneau: he should be up soon; however the fix is merged in snapweb master if you want to rebuild12:36
ogradooes that include a fix for bug 1610026 ?12:38
mupBug #1610026: snapweb fails to start after reboot <snapweb:Confirmed> <https://launchpad.net/bugs/1610026>12:38
morphis__jgdx: are you planing to work on the ofono interface for snapd?12:39
jgdxmorphis__, no12:40
morphis__jgdx: ok12:40
ograhmm, do we have any example snap that uses a bzr branch in the "source:" option ?13:19
sergiusensogra https://github.com/snapcore/snapcraft/blob/master/demos/libpipeline/snapcraft.yaml13:34
ograsergiusens, ah, awesome, thanks !13:36
mupPR snapcraft#749 closed: Allow registering private packages <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/749>13:37
loolwililupy: I had asked for permission to comment/edit on https://docs.google.com/document/d/1mo_Xkg9yBotGRg4qMYYuVn1d35NwGLpCkxE3T_p85P8/edit?ts=57bc4e2f#heading=h.d2h64kdfycq but it seems it's not the latest one13:49
loolwililupy: FYI there were some "mlnx" references in the one you sent to Dell but I guess that's ok13:50
loolwililupy: there were a couple of things I wanted to suggest for simplification13:50
lazyPower ogra - i apologize, i checked my logs and dont have enough history. Can you re-link me to the latest RPI2 images for snappy?13:52
loollazyPower: https://people.canonical.com/~mvo/all-snaps/16/13:53
lazyPowers/snappy/ubuntu core/13:53
lazyPowerah, ta  lool13:53
ograthe fast frenchman !13:55
ogra:)13:55
=== JanC is now known as Guest58470
=== JanC_ is now known as JanC
tyhickszyga (cc jdstrand): regarding dh-apparmor, only run time depends need to be in main now14:12
tyhickszyga: the policy changed during the 16.04 dev cycle14:12
ograWOAH !14:19
ogracjwatson, https://launchpadlibrarian.net/280537082/buildlog_snap_ubuntu_xenial_armhf_pi2-kernel_BUILDING.txt.gz ... i have split the Makefile from the kernel snap branch into its own bzr tree, this is what i get when trying to build now14:19
ograis that LP, the firwall or actually bzr (as it claims)14:20
cjwatsonogra: we talked about that bug before, I think; https://bugs.launchpad.net/snapcraft/+bug/160620314:21
mupBug #1606203: Failed to build of snappy package on Launchpad: Invalid header value 'Basic U05BUEJVSUxELTE4NzAtMTQ2OTQyNjE0ODpjOTJkYzVjOWQ0OTg0ZGE5OWZlNGY1ZjI3ODRhMWJk\nOA==' <launchpad> <snappy> <Snapcraft:New> <https://launchpad.net/bugs/1606203>14:21
ograoh, i remember .. the huge amount of output confused me14:21
cjwatsonI analysed it at the time and was pretty sure it was a bzr bug, but I don't remember the precise chain of reasoning14:22
ograhmm ... i could perhaps just switch to git, but i exactly wanted to avoid mixing bzr and git for the kernel snaps14:23
ograkyrofa, sergiusens, ^^ any chance this could be quickly fixed in snapcraft (unsetting http_proxy for bzr source pull) ?14:27
ograi guess a simple os.putenv('http_proxy'.'') would do ?14:36
kgunnsergiusens: mvo ever seen a bug like this?14:36
kgunnhttp://pastebin.ubuntu.com/23081827/14:36
kgunnit says change in progress, but then no change listed?14:37
ograor "del os.environ['http_proxy']" rather14:37
mvokgunn: hm, what does "snap change 34" show?14:41
mvokgunn: but definitely strange14:41
kgunnmvo: http://pastebin.ubuntu.com/23081849/14:43
kgunn...it's all ok actually14:43
kgunnnow14:43
ograyou were just to impatient :)14:43
kgunnat least, it acted like it had not removed the pkg, but in reality it had14:43
kgunnno it timed out...14:44
ograsnapd works async (super annoying if you ask me)14:44
kgunnbut it really was removed14:44
jdstrandmvo: hey, is https://github.com/snapcore/snapd/pull/1720#issuecomment-241602474 something you can help with or should I go to the store?14:57
mupPR snapd#1720: interfaces: add lxd-support interface <Created by jdstrand> <https://github.com/snapcore/snapd/pull/1720>14:57
kalikianakgunn: it looks like what I've seen when trying to remove snaps which were still running. I believe there's a bug for that.15:04
kyrofakgunn, yeah I just recently ran into that as well15:07
kyrofakgunn, I caused it by restarting services by hand instead of letting systemd do it15:07
mupPR snapd#1723 opened: image: prepare-image: import snap assertions as well <Created by mvo5> <https://github.com/snapcore/snapd/pull/1723>15:08
kgunnkyrofa: i did admittedly kill a process15:08
kyrofakgunn, which means when the snap was being removed, it asked systemd to stop everything and then tried to unmount, but my service was outside systemd15:08
kyrofa(so the mount was still in use)15:08
mupPR snapd#1724 opened: snap: add  `snap download` implementation <Created by mvo5> <https://github.com/snapcore/snapd/pull/1724>15:09
mupPR snapd#1697 closed: interfaces/builtin: allow bind in the network interface <Created by tych0> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1697>15:27
mupPR snapcraft#740 closed: Allow debugging cleanbuild runs <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/740>15:31
mupPR snapcraft#750 closed: storeapi: remove dependency on the 'success' attr <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/750>15:37
kyrofajdstrand, I should be good to go as far as running snaps with an encrypted home is concerned nowadays, right?15:41
jdstrandkyrofa: yes. snap-confine is now in -updates15:42
jdstrandkyrofa: and it has the policy changes needed for that15:43
jdstrandkyrofa: were you seeing a problem? there was a weird ubuntu-image bug related to ecryptfs, but that is different than what you're asking about15:43
kyrofajdstrand, no, I saw the bug and never bothered to try15:44
jdstrandah15:45
jdstrandyes, it should all be fixed now15:45
kyrofajdstrand, my background with bugs relating to ecryptfs is... bad. Last time it just got eaten15:45
kyrofa(the click chroot thing for the SDK)15:45
jdstrandhmm15:45
jdstrandeaten15:45
jdstrandwell, if you are seeing issues with policy, feel free to talk to me. if it is misbehaving, you can talk to tyhicks15:45
kyrofaSounds good, glad to know it should all be fixed now!15:46
kyrofaThank you :)15:46
tyhicksthe click chroot issues were systemd and schroot bugs15:48
mupPR snapd#1725 opened: overlord/hookstate: use snap run posix parameters <Created by kyrofa> <https://github.com/snapcore/snapd/pull/1725>15:49
tyhicksI ended up fixing them because everyone kept calling them ecryptfs bugs but they were both years old schroot bugs that were never fixed15:51
looljdstrand: heya, around?15:51
kyrofatyhicks, heh15:51
looljdstrand: couple of questions related to docker snap15:52
=== chihchun is now known as chihchun_afk
looljdstrand: currently it uses /var/run/docker.sock15:52
joc_kyrofa: do you know if any of the snapcraft plugins copy the parts/<name>/src dir to the build dir?15:52
looljdstrand: I find that problematic for 2 reasons15:52
kyrofajoc_, dump, I believe15:52
looljdstrand: one is that it conflicts with the .deb, so you can't snap install on classic if you had the deb and vice-versa15:52
looljdstrand: the other reason is that it kind of breaks the model where one could simply fork the docker snap and rename it, or embed it into another snap (e.g. snap containing docker runtime + docker images) as it's not relocatable anymore15:53
looljdstrand: tianon suggested you wanted to keep the docker.sock name though15:53
loolI mean the /var/run pathname15:53
joc_kyrofa: it makes the snapcraft help sources text a bit redundant, particualy for the source-subdir, as nothing seems to do what is described15:53
* zyga votes +1 for $SNAP_DATA-based socket 15:53
zyga(and interface attrs and hooks)15:54
looljdstrand: other question is: do you mind approving the docker 15.04 snap in the review queue?15:54
looljdstrand: it adds the /home permissions you said were ok to add for 15.0415:54
joc_kyrofa: we were just investigating why a python3 part was failing and realised that attribute is ignored by the plugin but it's not mentioned anywhere15:54
loolzyga: yeah, I was thinking like a docker-socket bin to get the socket name for people that want to get it programatically15:54
zygalool: that will be exposed with the snapctl tool I suspect15:55
zygalool: you can use it to ask for an attribute easily15:55
kyrofajoc_, I'm not sure I understand where you're coming from, here15:56
loolzyga: so the docker snap would set an attribute and it could be queried?15:56
loollike config, but runtime?15:56
zygayes15:56
zygathat's the hook a few people are working on15:56
zygakyrofa, pstolowski15:56
jdstrandlool: I am15:56
loolyeah, that sounds like a good fit when that's avail15:56
kyrofajoc_, so you're having a problem with source-subdir?15:57
jdstrandlool: ideally I would like to see the socket in SNAP_DATA15:57
joc_kyrofa: basically i'm saying there is a bug that the help text for the python3 plugin doesnt say the source-subdir will not have any effect15:57
joc_kyrofa: but was also thinking there is bug with "snapcraft help sources" output because almost no plugins do what that says with respect to source-subdir15:58
kyrofajoc_, or just a bug in the python3 plugin. The code looks like it should work fine-- what do you see happening?15:58
* kyrofa reads `snapcraft help sources`15:59
jdstrandlool: renaming it in /run to be /run/snap.docker.sock or something would be ok too. I don't object to it being somewhere else-- I just wanted to make sure that it was understood that if it was moved that might break other tools that expect it in a particular location. if that is understood and people are ok with it, fine (also, there is nothing saying that if it was in SNAP_DATA now that we couldn't change it back)15:59
joc_kyrofa: all the easy_install commands etc are run in the src dir15:59
looljdstrand: it's certainly true that it will break existing constructs15:59
kyrofajoc_, yeah that's a bug in python3. Indeed, I agree that there's a bug in `help sources`, but it's because the source-subdir docs are wrong15:59
looljdstrand: I'm not really sure how to avoid this and move the socket though16:00
kyrofajoc_, this is what SHOULD happen:16:00
loolunless we implement a complex mechanism in the .deb and in the snap to try to take the socket if it's unowned, but that seems broken too16:00
loolor just fail install16:00
loolBTW, most people install the docker .deb from docker inc which we can't change for this16:01
zygalool: I'16:01
jdstrandlool: I think I heard on the list not to worry about conflicting with debs. that in the fullness of time snap install or something higher would guide the user in some manner16:01
kyrofajoc_, the entire `source` should be copied build, including the subdir. However, the subdir should be the working directory16:01
zygalool: I've implemented something that lets us poke arbitrary holes as "quirks" for various snaps16:01
jdstrandlool: and that now users can just remove the deb16:01
kyrofajoc_, the docs are how things used to work, but then we realized that projects typically need the rest of the project tree16:01
looljdstrand: fair enough16:01
kyrofaLooks like that never got updated, though16:02
looljdstrand: I'll suggest adding an upstream flag so that people don't hardcode the pathname in docker run commands though16:02
loolsomething like --share-daemon or so16:02
joc_kyrofa: yeah makes sense16:02
jdstrandcool16:02
elopiomvo: your rpi2 image from the 19th has been trying to boot for 5 minutes. Is that normal?16:04
elopioah, it was snapweb failing to start. Just what manik said yesterday, probably.16:07
* ogra sighs so unsetting http_proxy doesnt survive the selftest in snapcraft when building it :(16:09
ograwhy does the test even care :/16:11
elopioogra: tell me more. What do you mean with snapcraft selftest?16:11
ograelopio, i need to move parts of the kernel snap build int a separate bzr branch ... which resulted in this beautiful error https://launchpadlibrarian.net/280537082/buildlog_snap_ubuntu_xenial_armhf_pi2-kernel_BUILDING.txt.gz16:12
ograwhich seems to be bug 160620316:12
mupBug #1606203: Failed to build of snappy package on Launchpad: Invalid header value 'Basic U05BUEJVSUxELTE4NzAtMTQ2OTQyNjE0ODpjOTJkYzVjOWQ0OTg0ZGE5OWZlNGY1ZjI3ODRhMWJk\nOA==' <launchpad> <snappy> <Snapcraft:New> <https://launchpad.net/bugs/1606203>16:12
ograelopio, so i tried a quick hack http://paste.ubuntu.com/23082327/ ...16:13
ograwhich results in https://launchpadlibrarian.net/280550295/buildlog_ubuntu-xenial-amd64.snapcraft_2.15.1+ppa1_BUILDING.txt.gz16:14
ograi dont really get why the bzr test in snapcraft would care about me deleting a (most likely non--existing) env var16:14
elopioogra: ah, that's a test to make sure that the env var is deleted :)16:16
ograelopio, not really, see the paste16:17
ograii dont touch the test code at all16:17
ograi only del the var before calling pul16:17
ogra*pull16:17
elopiolet me see...16:17
ograits a super dumb patch16:18
elopioogra: what the error is saying is that those attributes are not in os.environ.16:19
ograperhaps i should use os.unsetenv() instead ...16:19
ograelopio, yes, they indeed wont be unless a build happens in LP16:19
ogra(i mean a snapcraft build, not the build of the snapcraft package)16:19
ograand i dont really want to set them, since that would actually taint the test16:20
ograi would like it to just ignore it16:20
elopioogra: why don't you do os.environ["HTTP_PROXY"] = ""16:21
ograi can surely try that, do you think the test wont complain then ?16:22
* ogra tries 16:23
elopioyou will get a different result for sure. That's all I can say :)16:23
ogralol16:23
ograwell, ppushed to the PPA, lets see16:23
ogra(one day all image bulds will actually work without me hacking up snapcraft ... )16:24
elopiothat would be nice. But this thing of removing the proxy env var from a plugin doesn't seem likely to get upstream.16:28
kgunnkyrofa: hey, got one you might have an idea on....16:28
ograelopio, well, it makes building bzr projects oon LP impossible16:28
ograelopio, and a fix in bzr is very unlikely to happen16:29
kgunnso, i'm needing to run a script as part of my snapcraft step16:29
kgunnusing something that will be in stage16:29
kgunnand then make sure the output of that goes into prime16:29
elopioogra: but isn't that a launchpad problem? snapcraft should just use whatever env vars are set in the system.16:29
ograelopio, no, it is a bzr bug16:30
ograsee bug 160620316:30
mupBug #1606203: Failed to build of snappy package on Launchpad: Invalid header value 'Basic U05BUEJVSUxELTE4NzAtMTQ2OTQyNjE0ODpjOTJkYzVjOWQ0OTg0ZGE5OWZlNGY1ZjI3ODRhMWJk\nOA==' <launchpad> <snappy> <Snapcraft:New> <https://launchpad.net/bugs/1606203>16:30
kgunnkyrofa: so i want it to be a post-step to the first part16:30
kgunnisn't there a "gate on"16:30
elopiokgunn: after: [first-part]16:30
kgunnto make sure the script is in stage16:30
kgunnah thanks elopio16:30
kgunnafter...16:30
kgunnthat's what i couldn't recall16:31
* ogra hugs elopio ... the snapcraft package built with that change16:31
* ogra taps foot waiting for the PPA publisher so i can try if it actually fixes the kernel snap build16:31
elopio5^_^16:32
* elopio goes to swimming lessons. bbl.16:32
ograenjoy !16:32
tsimonq2ogra: it would be awesome to have a snap that is the Linux kernel16:32
tsimonq2ogra: with all the different channels too!16:32
ogratsimonq2, well, the kernel snap i build is far more then the linux kernel (it is more a "hardware enablement snap" ...16:33
ograwe just call it the kernel snap ... for our images16:33
ograbut the kernel team actually has plain linux snaps16:33
ogratalk to ppisati_ :)16:33
tsimonq2ppisati_: are there kernel snaps I can try? :D16:34
mupPR snapd#1725 closed: overlord/hookstate: use snap run posix parameters <Created by kyrofa> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/1725>16:41
kyrofakgunn, in a meeting at the moment, but I'll take a look in a sec :)16:41
zygaPharaoh_Atem: hey16:43
sergiusensogra just use launchpad git16:48
sergiusensbzr is clearly unsupported16:48
ograsergiusens, well, ut is still the quasi default ...16:48
ogra*it16:48
sergiusensogra not for kernel stuff ;)16:49
ograwell, i dont do kernel stuff16:49
ograi do build stuff :P16:50
ograas a git hater i was surprised to easily find my way around in github ... but that is because for every prob i can find some howto or help doc ...16:51
ograusing LP git means i actually need to be familiar with git at a level i dont trst myself yet16:51
ograsergiusens, so reading between your lines i guess you agree with elopio that there is no chance to fix bug 1606203 at all in snapcraft ?16:53
ysionneaulool: I was able to build snapweb ... but for amd64, I don't even know how to cross compile it for armhf16:53
mupBug #1606203: Failed to build of snappy package on Launchpad: Invalid header value 'Basic U05BUEJVSUxELTE4NzAtMTQ2OTQyNjE0ODpjOTJkYzVjOWQ0OTg0ZGE5OWZlNGY1ZjI3ODRhMWJk\nOA==' <launchpad> <snappy> <Snapcraft:New> <https://launchpad.net/bugs/1606203>16:53
ogras/fix/work around/16:54
ogra(note that your argument works both ways ;) if bzr is dead anyway snapcraft could as well just ship a tivial hack for the workaround)16:57
mupPR snapd#1726 opened: store,tests: have just one envvar SNAPPY_USE_STAGING_STORE to control talking to staging <Created by pedronis> <https://github.com/snapcore/snapd/pull/1726>16:59
sergiusensogra should be fixed in launchpad or bzr itself17:04
ograsergiusens, well, neither will happen it seems17:04
sergiusensogra so you default to bullying snapcraft? ;-)17:04
ogra"bullying" with a two line change, yeah17:04
sergiusensogra you might as well just disable the proxy in bzr for that matter17:05
sergiusensI am already bitter that we need to do that preload thing to support the g* things, don't make me add more hacks :-)17:06
ograg* things ? go you mean ?17:06
* ogra watches https://code.launchpad.net/~snappy-dev/+snap/pi2-kernel/+build/3413 ... 17:07
mupPR snapd#1727 opened: dirs,snap: define methods for SNAP_USER_DATA and SNAP_USER_COMMON <Created by zyga> <https://github.com/snapcore/snapd/pull/1727>17:08
ograaaand it works \o/17:08
ograto bad you wont accept it :/17:09
kyrofakgunn, ah, sounds like elopio answered your question17:16
kyrofakgunn, yeah, I'd do it with after and a Makefile or local plugin17:17
=== sarnold_ is now known as sarnold
mupPR snapd#1728 opened: asserts: Add a key-proof assertion <Created by cjwatson> <https://github.com/snapcore/snapd/pull/1728>17:28
Pharaoh_Atemzyga: hello17:37
zygaPharaoh_Atem: hey, you pinged me earlier17:45
=== chihchun_afk is now known as chihchun
threshhello18:04
Pharaoh_Atemzyga: yep18:13
Pharaoh_Atemsnapd doesn't seem to work on Fedora at all18:13
Pharaoh_Atemit's throwing errors about communicating to the store API18:13
threshhow do I set LD_LIBRARY_PATH for my snapped application?18:17
threshI have a .so installed in a non-standard catalogue, and rpath was previously used to point to it.18:18
zygaPharaoh_Atem: hmmm18:20
zygaPharaoh_Atem: looking18:20
zygaPharaoh_Atem: perhaps store is down or something18:20
zygaPharaoh_Atem: I'm not patching anything related to that18:20
Pharaoh_Atemzyga: works on ubuntu18:20
threshbasically my .so's have:  0x000000000000000f (RPATH)              Library rpath: [/lib/vlc]18:20
* zyga tries18:20
threshwhich translates to something else under snap18:21
zygathresh: just move it to /usr/lib in your snap18:21
zygaPharaoh_Atem: trying with 2.12 from COPR18:21
threshzyga, it's a private library, no need for it to be in /usr/lib/.18:21
zygathresh: it's not in usr/lib of the system, just of your snap18:22
threshzyga, I know, but that still applies18:22
threshwhy clutter something?18:22
ograwhy do you care18:22
threshbecause I like tidy things18:22
ogra$SNAP/usr/lib is already private to your snap18:22
ograand is automatically in your LD_LIBRARY_PATH when you exec your snap18:23
threshalso because it works under every other Linux distribution without issues, including Ubuntu, without moving it to /usr/lib18:23
threshnot sure why snap must be so different I need to include apparent hacks?18:23
zygathresh: perhaps use ${ORIGIN} in your rpath18:23
ograwell, then write a wrapper, and hack up LD_LIBRARY_PATH18:23
zygathresh: though AFAIR we strip rpath in snapcraft18:23
zygathresh: though a hand-made snap will work18:23
ograbut i think just putting it in the snap owned usr/lib is a way sane move18:24
sergiusensor $SNAP/lib18:24
zygahmm18:25
zygaPharaoh_Atem: I see something odd, checking18:25
zygaPharaoh_Atem: ah, no sorry, after starting and enabling the snapd.socket I can find snaps18:25
zygaPharaoh_Atem: did you have anything specific that failed that I can try to reproduce?18:25
Pharaoh_Atemsnap find .18:26
zygatrying18:26
zygaworked OK18:26
zygaPharaoh_Atem: which version are you on?18:26
zygaPharaoh_Atem: also what error do you see?18:26
mupPR snapcraft#705 closed: parser - Remove namespacing and subparts <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/705>18:28
zygaPharaoh_Atem: unrelated, I have a new package for review18:30
zygareally small and simple too18:30
Pharaoh_Atemzyga: what is it?18:30
zygathe xdg-open thing18:30
zygalet me upload it for review18:30
Pharaoh_Atemsnapd-xdg-open?18:30
zygayep18:30
zygaI'll merge it into snapd later, I've started the work on mering snap-confine into snapd first, this is mostly a time thing for me as test will need to be integrated across the stack18:31
Pharaoh_Atemzyga: the issue occurred with snapd on fedora 23 gnome18:31
Pharaoh_AtemI've not tried snapd on fedora 2418:31
zygaPharaoh_Atem: I'm testing on 2418:31
zygaPharaoh_Atem: hmm, can you pastebin the error please?18:31
Pharaoh_Atemyeah, give me a sec18:32
zygathanks18:32
Son_Gokuzyga: "error: cannot list snaps: net/http: Client Transport of type *store.LoggedTransport doesn't support CancelRequest; Timeout not supported"18:33
zygahmm, this looks like a different issue18:34
zygaI guess one of the deps in F23 is out of date in a way that doesn't fail at build time!18:34
Son_Gokuzyga: "error: cannot list snaps: net/http: Client Transport of type *store.LoggedTransport doesn't support CancelRequest; Timeout not supported"18:34
Son_Gokuzyga: "error: cannot list snaps: net/http: Client Transport of type *store.LoggedTransport doesn't support CancelRequest; Timeout not supported"18:34
zygacan you please file a bug on this (in fedora)18:34
Son_Gokuzyga, I get variants of that error on every action with snapd18:34
zygaI'll get this fixed18:34
Pharaoh_Atemwell, since snapd isn't in fedora, I'll file it in zyga/snapcore-fedora18:34
zygaI bet this involves other golang packages18:35
zygaPharaoh_Atem: ah, ok18:35
zygaPharaoh_Atem: that's fine18:35
Pharaoh_Atemdid you see the decision that was made by FESCo?18:35
zygayes18:35
zygaI didn't read the discussion notes18:36
zygaI plan to do that tomorrow, I was helping with some snap-confine things yesterday and today18:36
Pharaoh_Atemany progress on getting selinux support implemented?18:37
mupPR snapd#1726 closed: store,tests: have just one envvar SNAPPY_USE_STAGING_STORE to control talking to staging <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/1726>18:37
zygaPharaoh_Atem: none, I'm split among many tasks; I'm helping more upstream lately (with different things) and I dind't have any time to make more selinux progress18:38
zygaPharaoh_Atem: in two weeks from now I should be more free (fingers crossed)18:39
zygaPharaoh_Atem: we're trying to finish some high-profile features first18:39
zyga(hooks mainly)18:39
Pharaoh_Atemlike what?18:39
zygahooks will finally allow us to have configuration in snaps and richer interaction with interfaces18:39
* Pharaoh_Atem shgs18:40
Pharaoh_Atem*sighs18:40
Pharaoh_Atemzyga: https://github.com/zyga/snapcore-fedora/issues/518:41
zygaPharaoh_Atem: thanks, I'll boot 23 and investigate18:41
zygaPharaoh_Atem: I bet it's "just" a simple upgrade of another package18:41
zyga(I need to learn how to do those now)18:41
Pharaoh_Atemthis is why you need to apply to be comaintainer of the snapd deps18:42
zygaPharaoh_Atem: that would be a smart idea, I didn't consider this18:42
zygaPharaoh_Atem: I want to write a tool that gives me the full dep tree in fedora and the git commit of each package18:42
Pharaoh_AtemI suggested it back at the sprint as well18:42
elopioysionneau: we can roll back to the rev. that wasn't using snapcraft, that could crossbuild. But now I'm trying to get it build with snapcraft in armhf, and publish it.18:42
zygaPharaoh_Atem: and compare this across distros18:42
zygaPharaoh_Atem: ah, sorry, I didn't remember that18:43
Pharaoh_Atemzyga: that shouldn't be difficult, since Fedora has APIs for its repositories and when changes occur in the repos18:43
Pharaoh_Atemmdapi and fedmsg will be your best friends there18:43
zygayep, it's just another TODO item :)18:43
zygaI18:43
Pharaoh_Atemshame that debian never finished their project to adopt fedmsg18:44
zygaI'd love to do it quickly/soon though as it is more and more of an important release blocker18:44
Pharaoh_Atemit would have been awesome to see it in place18:44
Pharaoh_Atemhttps://wiki.debian.org/FedMsg18:44
zygaPharaoh_Atem: look at fedora bug 136956018:45
mupBug #1369560: Add "Extract here" to archive manager context menu <amd64> <apport-bug> <freya> <third-party-packages> <elementary OS:Confirmed> <https://launchpad.net/bugs/1369560>18:45
zygaPharaoh_Atem: just a quick note, there's no upstream release yet so Source0 is dummy/broken18:45
zygaPharaoh_Atem: I'll polish some quirks and do a release soon (I wasn't touching that project earlier)18:45
zygaPharaoh_Atem: I wasn't sure if dbus services have a RPM macro or not18:45
mupPR snapcraft#751 opened: python3 plugin: run setup.py in source subdir if such option exists <Created by yphus> <https://github.com/snapcore/snapcraft/pull/751>18:46
zygaPharaoh_Atem: I also sent an update to snap-confine 1.0.40, some interesting new things and bug-fixes there :)18:47
zygaPharaoh_Atem: it's already in bodhi18:47
Pharaoh_Atemzyga: why is snapd-xdg-open in ubuntu-core?18:47
zygaPharaoh_Atem: a quick question, if I add a patch for /snap to snapd, can we progress on the review request?18:47
zygaPharaoh_Atem: even ahead of FESCo decision?18:47
Pharaoh_Atemzyga: yes18:48
zygaPharaoh_Atem: just another TODO item to move it18:48
zygaPharaoh_Atem: I'll probably do that, I sent some pull requests upstream for this but I have a few more to make (mainly tests, I want to ensure it's not broken in any way)18:48
Pharaoh_Atemif you patch it to move to /run/snap or /var/run/snap or anywhere else FHS compliant, I can approve the package18:48
zygaPharaoh_Atem: I picked /var/lib/snapd/ because it's not ephemeral yet18:48
zygaPharaoh_Atem: that will be done separately in some future release18:48
Pharaoh_Atemso then /var/lib/snapd/mounts?18:48
zygaPharaoh_Atem: actually snap/ (mounts is for "mount profiles")18:49
Pharaoh_Atemah18:49
zygaPharaoh_Atem: /var/lib/snapd/snap18:49
Pharaoh_Atemokay18:49
Pharaoh_Atemthat's going to get confusing18:49
zygathe same "snap" as in /snap18:49
Pharaoh_Atemsince there's snaps/ already18:49
Pharaoh_Atemwhich is where downloaded snaps exist18:49
zygaPharaoh_Atem: it contains the actual snaps, yeah18:49
Pharaoh_Atemmaybe runsnap/?18:49
Pharaoh_Atemsomething that makes it more obvious18:49
zygaPharaoh_Atem: well, that's not for users to see (/var/lib/snapd), /snap is different but I just want to carry on18:50
Pharaoh_Atemsure18:50
zygaPharaoh_Atem: well, the actual directory is trivial to change ;)18:50
zygaPharaoh_Atem: I was just working on the changes to make that trivial18:50
Pharaoh_Atembut yes, if you patch it, there will be no blockers to the review left18:50
zygaPharaoh_Atem: I was using FIXME as it was easy to grep for in logs18:50
zygaPharaoh_Atem: cool, glad to hear that18:50
Pharaoh_Atemyour preset request has already been provisionally approved for f24, f25, and rawhide18:51
zygayep, I saw18:51
zygajust pending on the review18:51
zygaso so close to being generally useful :)18:52
Pharaoh_Atemthe only other thing left to make snaps actually worth using is selinux support18:52
zygaI guess F25 is going to be out soon so selinux won't be there on time but F26 looks realistic18:52
zygaand I guess I can update it in earlier releases later18:52
mupPR snapcraft#752 opened: Ant properties, build target, and destination directory options <Created by evandandrea> <https://github.com/snapcore/snapcraft/pull/752>18:52
Pharaoh_Atemremember I said you can ship it as a module subpackage18:52
Pharaoh_Atemfor snap-confine18:52
Pharaoh_Atemor snapd18:52
Pharaoh_Atemor wherever it is18:53
zygaPharaoh_Atem: yep, I mean the whole stack, selinux, policy package, snapd and snap-confine support18:53
zyga(it's everywhere, snap-confine = mechanism, snapd = policy)18:53
mupPR snapd#1698 closed: tests: add all-snap spread image tests <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1698>18:58
Son_Gokuzyga, well, I know there are quite a few folks interested in seeing the SELinux integration for snapd18:59
zygaSon_Goku: can you help me to get in touch with them18:59
zygaSon_Goku: together this can be done faster, I bet19:00
Son_Gokuwell, there are a few fedora-derived distros that may be considering shipping snapd19:00
zygaSon_Goku: like? :)19:02
zygawa19:04
Son_Gokuwell, if I'm particularly happy about snapd in fedora, I may recommend that Korora and a few others ship it19:04
Son_Gokualong with flatpak19:05
zygaSon_Goku: do you know of any developers that are familiar with selinux that I could work with to speed things up?19:05
bull_guys snapcraft gui https://files.gitter.im/ubuntu/snappy-playpen/nRqJ/Screenshot-from-2016-08-24-00-34-18.jpg19:05
Son_Gokuunfortunately, aside from Dan Walsh and a few other guys in #fedora-selinux, I don't really know anyone19:05
zygaSon_Goku: I met some folks at flock but I'd like to have someone that can work with me closely to design and implement selinux19:06
zygaI realize that Dan might have other priorities19:06
mupPR snapd#1729 opened: tests: spread all-snap test cleanup <Created by mvo5> <https://github.com/snapcore/snapd/pull/1729>19:06
zygaSon_Goku: how about yourself?19:09
zygaSon_Goku: I'm new to selinux, you are new to go (right?)19:09
Son_Gokuyep19:10
zygaSon_Goku: together this will at least increse the bus factor :)19:10
Son_Gokuhaha19:10
zygaSon_Goku: and I bet having another person to work with will improve the design19:10
mupPR snapd#1664 closed: integration-tests: add update-rollback stress tests <Created by fgimenez> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/1664>19:26
mupPR snapd#1729 closed: tests: spread all-snap test cleanup <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/1729>20:14
Pharaoh_Atemzyga: so do you intend to patch the /snap path for Fedora?20:27
zygaPharaoh_Atem: yes20:28
zygaPharaoh_Atem: a few tests fail in weird ways, I'm just chasing that now20:28
Pharaoh_Atemcool20:28
Pharaoh_Atemat least your tests will be hardier :P20:28
zygait's all good in practice, something that's specific to tests is flaky20:30
ssweenyjdstrand, I'm trying to use snap-confine with your overlayfs suggestion (https://paste.ubuntu.com/23079343/) but I'm getting apparmor denials on snap-confine itself trying to create a tmpfs dir20:34
jdstrandssweeny: can you paste the denials?20:34
ssweenyjdstrand, https://paste.ubuntu.com/23083124/20:35
jdstrandssweeny: are you creating the /tmp/snapd.quirks_* dir in your code or was this already there?20:38
ssweenyjdstrand, that was already there20:38
jdstrandssweeny: ok, then it sounds like there is a bug. zyga, fyi ^20:38
zygajdstrand: hmm20:38
zygawhich distro and release is this on?20:38
jdstrandssweeny: you can copy /etc/apparmor.d/usr.lib.snapd.snap-confine to /tmp and modify it20:39
jdstrandssweeny: then do: sudo apparmor_parser -r /tmp/usr.lib.snapd.snap-confine20:39
ssweenyzyga this is on a series 16 all-snaps system20:39
zygajdstrand: I believe upstream is correct here,20:39
jdstrandoh20:39
zygassweeny: ssweeny probably a bug in our ppa packaging then20:39
jdstrandmaybe ssweeny is using new code but didn't copy the profile over20:40
ssweenythat could be20:40
jdstrandzyga: he is building it himslef20:40
zygajdstrand: ah, then most likely so20:40
zygassweeny: the relevant parts are https://github.com/snapcore/snap-confine/blob/master/src/snap-confine.apparmor.in#L16820:41
jdstrandssweeny: ok, then diff what is in /etc/apparmor.d/usr.lib.snapd.snap-confine and ./src/snap-confine.apparmor.in20:41
jdstrandssweeny: and add the new rules in the manner I described20:41
ssweenyjdstrand, zyga cool, thanks!20:41
zygassweeny: note the file is an .in file with @LIBEXECDIR@ that needs to be replaced with /usr/lib/snapd in your case20:41
ssweenyright20:41
zygaI think it would be useful to have a way for devtools to support snap-confine20:44
zygawe actually could, with file bind mounts20:45
* zyga has good ideas :)20:45
ssweeny:)20:45
zygaogra: could I add a tweak to the initrd that bind mounts snap, snapd, snap-confine and the snap-confine aa profile from /snap/$SOME_RESERVED_NAME/current/20:47
zygaogra: this would let us *boot* a custom snapd for testing20:48
zygaand would simplify devtools considerably20:48
zygadown to "no customization required"20:48
mupPR snapd#1727 closed: dirs,snap: define methods for SNAP_USER_DATA and SNAP_USER_COMMON <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/1727>20:55
ssweenyjdstrand, I added some code to add MS_SHARED to the mount like you said but I'm still not seeing the mount outside of the snap20:56
mupPR snapd#1730 opened: dirs,snap: handle empty root directory in SetRootDir <Created by zyga> <https://github.com/snapcore/snapd/pull/1730>20:56
ssweenyjdstrand, here's the diff as well as the SecurityMount string being returned in snapd21:00
ssweenyhttps://paste.ubuntu.com/23083177/21:00
jdstrandssweeny: note, I didn't write this portion of the code21:10
jdstrandssweeny: what does the .fstab file look like?21:10
ssweenyjdstrand, /run /run none bind,rw,shared 0 021:11
Pharaoh_Atemzyga: btw, in regards to dbus-1 service location, there's no special macros for it21:13
Pharaoh_Atemso what you have is fine21:13
Pharaoh_Atemzyga: however, I'd be more comfortable with snapd-xdg-open if it had a release and was in the snapcore organization instead of the ubuntu-core one21:17
zygaPharaoh_Atem: the organization was changed already21:17
zygaPharaoh_Atem: I will do a release with a few simple upstream tweaks tomorrow21:17
zygaPharaoh_Atem: (like empty NEWS files and others, this is not a gnu project)21:17
Pharaoh_Atemyou don't need those files21:17
zygaPharaoh_Atem: you can consider that provisionally done :)21:17
zygaPharaoh_Atem: I know but without a macro in configure.ac they get added21:18
Pharaoh_Atemah21:18
zygaPharaoh_Atem: I did it in snap-confine :)21:18
jdstrandssweeny: did you verify you are entering that part of the code?21:21
ssweenyjdstrand, not directly. let me do some instrumenting real quick21:22
jdstrandssweeny: did you see if it worked outside of your code? eg, mount --bind /run /run ; mount --make-shared /run21:22
* zyga EODs21:22
zygatake care guys21:22
jdstrandssweeny: but this is getting into the area where I advised getting zyga's input (zyga, that isn't an invitation to come back from eod :)21:23
zygahaa21:23
zygaI was typing /exit21:23
zygawhat's that?21:23
jdstrandzyga: https://paste.ubuntu.com/23083177/ and this in .fstab: /run /run none bind,rw,shared 0 021:24
zygassweeny: did you try SNAP_CONFINE_DEBUG=121:24
jdstrandzyga: I really don't want to keep you from eod though21:24
ssweenyzyga, yeah I can ping you tomorrow21:24
zygajdstrand: that's not allowd by the snap-confine apparmor profile AFAIR21:24
* zyga looks at the pastebin21:25
jdstrandat this point I'd need to dive in quite deep to debug21:25
jdstrandssweeny: do you have apparmor denials?21:25
ssweenyI added that to the profile for the time being just to see if it works21:25
zygassweeny: can you pastebin the output of whatever you were testing with that variable set please21:25
zygaI can stay for 5 more minutes :)21:25
zygaI'm waiting for a review anyway21:25
* jdstrand doesn't have much longer21:25
zygaI should EOD at 18:00 one day and just have a walk21:26
ssweenyzyga, do I just export that variable on my shell or does it need to be part of the snap command?21:29
ssweenyI'm not seeing additional debug output with it exported21:29
mupPR snapd#1731 opened: firstboot: generate netplan config rather than ifupdown <Created by mwhudson> <https://github.com/snapcore/snapd/pull/1731>21:31
zygassweeny: you have to export it21:47
zygassweeny: SNAP_CONFINE_DEBUG=121:47
* zyga really EODs21:47
mupPR snapd#1730 closed: dirs,snap: handle empty root directory in SetRootDir <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/1730>21:49
mupPR snapd#1732 opened: many: respect dirs.SnapSnapsDir in tests <Created by zyga> <https://github.com/snapcore/snapd/pull/1732>21:51
ssweenyjdstrand, thanks again for the help. I'll play around a bit more and I'm sure I'll have more questions tomorrow :)21:58
jdstrandok21:59
mhall119jdstrand: is there any way for a snap command to call sudo?22:01
mhall119or does the user have to launch the snap command with sudo?22:01
jdstrandthe latter22:01
jdstrandthat came up on the list recently-- I gave a very detailed response22:02
mhall119thanks jdstrand22:15
=== bschaefer_ is now known as bschaefer
kyrofatyhicks, ping23:00
tyhickskyrofa: hey23:02
=== bschaefer_ is now known as bschaefer
kyrofatyhicks, snapd has a section of the daemon's REST API which would ideally be accessible from all apps/hooks. Right now we have snapd-control which opens the thing up completely, but we definitely don't want to make that implicitly available to all apps/hooks, so I'm working on splitting out what I'm calling the "public" bits of the API into a separate socket23:05
kyrofatyhicks, my question for you is, can we allow access to that socket without implicitly allowing access to other stuff?23:05
kyrofatyhicks, here are the denials I get without any profile changes: http://pastebin.ubuntu.com/23083538/23:06
tyhickskyrofa: do clients connect over a unix domain socket?23:06
kyrofatyhicks, indeed23:06
tyhickskyrofa: yes, we can allow all snaps to access the public socket and only allow snaps with snapd-control to access the private socket23:08
kyrofatyhicks, does that require setsockopt etc. to be in the default templates? Or can we somehow limit that to only that one socket (argument filtering, maybe?)23:09
tyhickskyrofa: well, the network interface is autoconnect and it already allows setsockopt23:11
kyrofatyhicks, but it allows a bunch of other stuff, too23:11
kyrofatyhicks, another potential way to do this: this REST calls in question are coming from a helper binary written by us. Can it somehow be covered by a slightly more lenient profile?23:15
kyrofa(the binary is called by the apps/hooks in question)23:15
Birchywhy doesn't OpenAL work in Snappy?23:15
tyhickskyrofa: that's possible - we'd need to set up a profile transition23:15
tyhickskyrofa: the CAP_NET_ADMIN denial is worrisome - do you know what is causing that?23:16
kyrofatyhicks, the helper binary is written in go; looking at the bug, it seems to be a known issue23:16
kyrofatyhicks, and ignorable, I think?23:17
tyhicksoh, yes23:17
kyrofaVery helpful snappy-debug message, there23:17
tyhicksI fixed that upstream and it hasn't made it back into xenial yet23:17
tyhicksoh, it has made it into xenial but maybe you're using an old kernel23:18
kyrofaYeah that's possible, this is linode23:18
tyhicks$ git describe --contains 793d301b23:18
tyhicksUbuntu-4.4.0-25.44~21823:18
kyrofatyhicks, would such a transition require snap-confine changes, or is that something we can setup at the profile level?23:18
kyrofaYeah, 4.4.0-21 here23:19
tyhickskyrofa: it is something that we could set up at the profile level23:19
kyrofatyhicks, can that be done for seccomp as well?23:19
tyhicksthat explains it, good to know that CAP_NET_ADMIN is definitely not needed23:19
tyhickskyrofa: it cannot :/23:19
kyrofatyhicks, hrm23:19
tyhickskyrofa: why are inet and inet6 sockets being created?23:20
kyrofatyhicks, honestly, no idea23:20
kyrofa:P23:20
tyhickskyrofa: if this is being done over a unix domain socket, AF_UNIX should be used instead of AF_INET or AF_INET623:21
tyhicksthat would get rid of those 3 denials23:21
kyrofaYeah I'll investigate that23:21
mupBug #1465724 changed: net_admin apparmor denial when using Go <verification-done-xenial> <Snappy:Fix Released by tyhicks> <linux (Ubuntu):Fix Released> <linux (Ubuntu Xenial):Fix Released> <https://launchpad.net/bugs/1465724>23:21
kyrofaIt might just be the libs reaching out somehow. The setsockopt is probably the bit issue there23:22
kyrofabig*23:22
tyhicksreading somaxconn is something that go does every time a go program is ran23:22
tyhicksso that could safely be allowed23:22
kyrofaIn the default profile?23:23
kyrofaI didn't think that seemed too dangerous23:23
tyhicksI think so23:23
tyhicksthat leaves the setsockopt23:23
Birchyhow would I allow an application access to /run/udev?23:23
kyrofaBut apparmor has become a lesser concern for me anyway considering the possible profile transition23:23
tyhickskyrofa: the default seccomp template has this:23:25
tyhicks# needed by ls -l23:25
tyhickssocket23:25
tyhicksconnect23:25
tyhickskyrofa: we'll need to speak with jd strand about this tomorrow but since socket and connect are already allowed, it seems reasonable to allow setsockopt in the default template, too23:25
kyrofatyhicks, okay, I'll make a note to speak to him. Thank you, you've been tremendously helpful! I think that covers everything :)23:26
tyhickskyrofa: it is looking like we won't need a profile transition and some simple changes can be made to the default template to allow what you need23:26
tyhickskyrofa: have a good one! :)23:27
kyrofaAgreed!23:27
kyrofaYou too!23:27
kyrofatyhicks, hey, missed you at the last sprint. Will you be at the next one you think?23:28
tyhickskyrofa: I will be - see you there :)23:31
kyrofaAwesome!23:31

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