/srv/irclogs.ubuntu.com/2016/03/30/#snappy.txt

=== JanC_ is now known as JanC
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
dholbachgood morning07:09
dholbachsalut davidcalle07:17
dholbachdavidcalle, do you think we're all set with the doc?07:17
didrockshey dholbach!07:19
dholbachsalut didrocks07:19
didrocksdavidcalle: dholbach: which doc are you working on?07:19
dholbachdidrocks, one about snappy on classic07:20
didrocksah, is there a getting started as well for it? :)07:20
=== chihchun is now known as chihchun_afk
zygagood morning07:43
didrocksgood morning zyga!07:43
=== kickinz1|eod is now known as kickinz1
=== chihchun_afk is now known as chihchun
davidcalledholbach: I think we are good for the examples, I'm a bit concerned about the security/confinement part08:56
dholbachI talked to Jamie a few weeks back and he said it'd be updated in due time08:57
dholbachmaybe we should add a note saying that we are going to add a link to updated docs about security once they're available(?)08:57
=== faenil_ is now known as faenil
davidcalledholbach: I'm adding a comment about it right now09:02
dholbachthanks09:06
=== chihchun is now known as chihchun_afk
=== arges_ is now known as arges
noizerHi short question where can I see the errors of seccomp?12:49
ogra_syslog12:51
noizerthx12:52
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
didrocksjdstrand: hey, small questions about unconfined app13:39
didrocksjdstrand: I have an unconfined command which is doing terminal content recording13:40
didrocksI want to be able to launch other snap commands from13:40
didrocksbut even unconfined, I'm getting when executing another one: aa_change_onexec failed with -1. errmsg: Permission denied13:40
jdstranddidrocks: you can't launch them from /snaps/bin, you have to launch them from /snaps/<snap>/...13:43
jdstrandlaunching apps from /snaps/bin won't work for a ton of reasons13:44
ogra_why would you define the path at all ?13:44
jdstrandhe wants to launch other snap binaries13:44
ogra_oh, cheating oyu mean ?13:45
jdstrandyes13:45
ogra_heh, k13:45
jdstrandwell, I assume that is what he meant. otherwise, there is perhaps a bug13:45
jdstranddidrocks: can you be more specific?13:45
jdstranddavidcalle, dholbach: fyi, the PRs for the new security interfaces are now all acked so hopefully they'll be merged soon13:46
dholbachjdstrand, awesome!13:47
jdstranddavidcalle, dholbach: when that happens, the docs can be updated13:47
didrocksjdstrand: basically, it's a snap to make demos and record talks13:47
didrocksso, recording the terminal output and show how confinment works13:47
didrocksand such13:47
jdstranddidrocks: no, I mean, what are you executing-- your own binaries or binaries from other snaps?13:47
didrocksmy binary is executing a shell recording utility (unconfined)13:47
didrocksthat way, I want to run other commands13:47
didrocksand record them13:48
didrocks(from other snaps)13:48
didrockshence the unconfined profile13:48
jdstrandis your binary launching something from /snaps/bin?13:48
didrockswell, it's a shell, so yeah, I can run some to record how confinement works for other commands13:48
jdstrandright13:48
jdstrandthat isn't going to work (see above)13:48
didrocksthere isn't any way for making it work? like having a shell capability like this doesn't sound a very crazy requirement13:49
jdstrandno13:49
didrocksit's like if I wanted to record the screen and we can't on snappy then13:49
jdstrandyou can record the screen13:49
jdstrandyou just need to do it from within your snap13:50
didrocksyeah, but from this snap, I can't run a normal shell13:50
jdstrandthe launcher is doing a ton of things13:50
jdstrandit isn't going to work13:50
didrocksand no plan to make this kind of use case working in the future?13:50
jdstrandno13:51
jdstrand/snaps/bin is not the interface for apps to launch other apps13:51
didrocksI don't hardcode /snaps/bin13:51
didrocksI just run $command13:51
didrockswhich is in the PATH of the shell that is executed13:51
jdstrandit doesn't matter13:51
didrocksyeah13:51
jdstrand/snaps/bin is in your PATH so that is what you get13:51
didrocksbut I mean, it's not like I was trying to do something funky there13:51
jdstrandyou are13:51
jdstrandsnaps are not allowed to launch other snap's binaries13:52
didrockswell, I have things in PATH I can't execute13:52
didrocksso we should remove it13:52
didrocksonce we launch a command13:52
jdstrandthere are lots of things in your PATH13:52
jdstrandeg, 'mount'13:52
jdstrandfsck13:52
jdstrandyou can't run those either13:52
didrocksyeah, but it's telling permission error and I can run sudo to get access13:52
didrockshere, it's really you can't do it13:53
didrocks(in addition to that being a valid use case IMHO)13:53
jdstrandunconfined is going away anyway13:53
jdstrandit seems you are going to force me to tell you all the reasons why it won't work13:53
didrocksI think it has something to do with apparmor and switching profile13:54
didrockslike encapsulating a profile in a profile13:54
jdstrandeven if that were fixed, there would be something else13:54
jdstrandthere are like 20 things13:54
jdstrandI'm telling you-- you aren't the first person to try this :)13:54
jdstrandit is unsupported13:54
didrocksas I'm not the first person, I think there are valid use cases :)13:54
didrocksand if we tell snappy is the future of ubuntu, we should maybe think of a way of supporting this13:55
jdstrandit isn't a valid use case-- apps aren't supposed to be unconfined13:55
didrocksok, how would you implement then a shell recorder13:55
didrockswhere you can record what happens on a screen13:55
didrocksand then, show confinements of apps and such13:55
jdstrandI want to be clear. I am saying that launching things from /snaps/bin/... will not be supported because the launcher does way too much and things break in all kinds of ways if the launcher launches the launcher13:56
jdstrandthere will be an interface available for people to use other snaps' bits13:57
jdstrandthat interface just won't be via /snaps/bin (it can't be)13:57
jdstrandthat interface is not defined atm13:57
didrocksthat doesn't cover my use case though, right?13:57
didrockslike recording a talk13:57
didrocksand having people having access to the shell commands that were ran13:57
jdstrandI don't know what interfaces will be supported. I'm only saying that launching apps via /snaps/bin won't be. the future may have another mechanism13:58
jdstrandtoday, you can launch stuff from /snaps/<other snaps>/current/path/to/whatever13:58
jdstrandthat isn't going to be confined though13:58
didrocksright, however, that is an implement detail13:58
jdstrandno it isn't13:59
didrocksand doesn't show up confinement as intended here13:59
didrocks(and confined by this snap confinement)13:59
jdstrandyour use case is not currently supported, sorry13:59
jdstrandwhen the interfaces work is landed more fully, you can request a new interface to do what you want14:00
didrocksyeah, I just feel those is dismissed and not going to be supported, which worries me once we switch everything to snappy14:00
jdstrandand the snappy devs can discuss it14:00
didrocksso basically, that would be possible through an interface?14:00
didrocks(technically)14:00
didrockssounds like a "superpower one"14:00
jdstrandno14:00
jdstrandI'm sorry, I have to go to a meeting14:00
didrocks"no" -> not possible? /me is puzzled14:01
jdstrandthe way the launcher works, it cannot launch itself14:01
jdstrandyou have a superpower one with unconfined, but the launcher will fail'14:01
didrockssounds like I should bring this use case on the ML and see if something can be discussed/planned14:01
jdstrandsnaps driving other snaps is what you want14:01
didrocksyeah14:01
didrocksa "shell" interface basically14:02
jdstrandand that isn't supported in the manner you are trying to implement14:02
jdstranddon't go to the mailing list yet14:02
jdstrandlet the interfaces stuff all land and then discuss14:02
jdstrandif you bring it up now no one will be able to do anything about it14:02
jdstrandwhat you are asking for is weird though14:03
didrocksok, I'll be patient. Quite frustrating though that my first demo snap for developers were already this vlc bug/systemd/snappy that we couln't debug14:03
jdstrandyou are asking for a completely unconfined shell via a snap14:03
didrocksso I fallbacked to this (I need an demo without any hw and such)14:03
jdstrandwhy not just login since you have an unconfined shell?14:03
didrocksif you tell me how I can run that app directly installable for users on the system, yeah, I don't have any issue :)14:04
jdstrandwhat you can do is ship a snap (fine), then launch a script in /snaps/<your snap>/current/... directly via your login shell rather than via /snaps/bin14:04
didrocksor if we install by default screen recording capability in snappy14:04
didrocksyeah, sounds like a workaround though14:05
jdstranddude :)14:05
didrocksI'm just coming up with a real snap app and trying to figure out how it can work on this world :)14:05
jdstrandI'm trying to tell you what you can do now and later you can request screen recording when people are ready to accept interface request14:05
jdstrands14:05
jdstrandit isn't a real app snap14:06
jdstrandyou are totally violating a basec tenant of snappy14:06
didrockswhy, it's not? those kind of functionalities are valid and already running on ubuntu though?14:06
jdstrandyou must be unconfined (strike 1) and you must launch arbitrary commands from other snaps (strike 2)14:06
jdstrandubuntu core is not a replacement for classic ubuntu14:06
jdstrandit is a whole different thing14:06
didrockswhen it's ubuntu personal, it's all snaps though14:07
didrocksfrom what I understood14:07
jdstrandand no snap is allowed to execute arbitrary other snaps :)14:07
jdstrandsnaps are isolated14:07
jdstrandthere will be controlled ways to provide other access14:07
didrocksbut we let bash from the ubuntu core snap, doing it though :p14:08
didrocksas long as it's discussed and there is a plan, I'm fine14:08
didrocksjdstrand: thanks for answering (and confirming) the no support for now though :)14:09
dduffeyDoes someone have a Snappy 16.04 based image up and running and let me know what version of docker is included?14:39
kgunndduffey: is xenial from mar 25 ok?14:41
noizerIs it possible to do some manual test into a snap?14:41
kgunndduffey: ubuntu@localhost:~$ snap find docker14:41
kgunnName             Version             Summary14:41
kgunndocker.canonical 1.6.2.005-16.04.1-1 Docker14:41
dduffeykgunn, yeah, thanks14:42
noizerSo i can execute some things into my snap for some test. Because its very slow to rebuild it all the time14:43
kgunnnoizer: i think the only way to do this now is something like....14:46
kgunnunsquashfs foo.snap14:46
kgunncd squashfs-root14:46
kgunnsnappy build14:46
didrocksjdstrand: so, I did try (full of hope ;)) /snaps/terminal-recorder-demo.sideload/current/record-terminal for instance, but then, whatever snap I'm running like (hello-world.echo), I'm getting a "failed to create user data directory. errmsg: Permission denied"14:46
didrocksjdstrand: any idea?14:47
noizerkgunn ok I will try it14:47
joc_kyrofa: i would like to discuss the python problems i was having a bit more, see if i can work out how to handle build-packages etc14:48
didrocksjdstrand: ah got it, snappy error message isn't accurate, but fixed it :)14:56
jdstrandthat is a different bug. I imagine ~/snaps was created when running a command as root. there is an open bug on that14:57
ZerownZyo''ll guys I have fear from you because you all are burro15:04
didrocksjdstrand: yep, that was it :)15:07
morphis_jdstrand: how far did you guys come with the new security/interfaces/plugs/ports/.. stuff?15:21
mvipdidrocks yt?15:23
jdstrandmorphis_: the move to replace old-security/caps are all in accepted PRs. they need to land and I was told today by mvo that the state engine changes need to land after that. I'm told in a few days15:23
jdstrandmorphis_: in other words, sit tight still15:23
morphis_jdstrand: sounds good, so earlier next week it should be done?15:23
jdstrandI hope so. I'm not driving those landings, but that is my understanding15:24
noizerkgunn: Does it need to build?15:33
kgunnnoizer: yes this is my understanding...i only knew of this b/c i had asked the same question... so that method is at least a little faster than building on a host then copying over15:39
noizerkgunn: How can i test it when i build it?15:46
didrocksmvip: in some meetings, mind talking tomorrow?15:50
kgunnnoizer: not sure what you are trying to do, but you would make sure to stop your service, install your new one, start your service15:55
elopiogood morning16:05
=== kickinz1 is now known as kickinz1|eod
elopiofgimenez, sergiusens, kyrofa: I'm sorry I didn't make it to the standup.16:05
sergiusenselopio, you also didn't see I moved it really early today ;-)16:14
sergiusenselopio, it will happen in 2 hours approx16:15
elopioso I'm on time!16:15
elopiosergiusens: I need more details about that match check you want.16:55
elopioI do the unsquash when there is no snapcraft.yaml, so do you mean you want a new unit test for the case without an argument?16:55
sergiusenselopio, I'm going for the "else" part where you don't provide a SNAP_FILE17:00
sergiusenselopio, to make sure name, version matches that of what we want to upload17:00
=== ZerownZ_ is now known as ZerownZ
kyrofaHey sergiusens elopio17:16
elopiosergiusens: like this? https://paste.ubuntu.com/15561413/17:23
sergiusenselopio, yeah, without the typos ;-)17:29
sergiusenskyrofa, hello17:29
elopiotaking out the typos is taking out the soul.17:37
wililupyquestion: If I have kernel modules source code, do I need to precompile them and then add them to my kernel-device-trees or can I have it compile during the snapping process?17:43
elopiopindonga: do you know if something changed on staging? I can't log in anymore:18:26
elopiohttps://paste.ubuntu.com/15561995/18:26
elopiooh, he's away. beuno ^18:26
beuno>> nessita18:26
beunoelopio, I've seen a bunch of issues with ssl certs on staging services today18:27
beunoverterok might also have a clue18:27
verteroko/18:29
verterokelopio: ssl cert expired, working on fixing it ATM18:29
elopioverterok: thank you!18:29
elopiosergiusens: kyrofa: vila: ^ that blocks our landings.18:29
kyrofaUh oh18:29
verterokshould be solved shortly18:30
elopiokyrofa: if we are in a hurry, we can land if the autopkgtest fail only on the login test. But I think we are not in a hurry.18:30
kyrofaelopio, nah, should be good as long as people are aware :)18:31
nessitaotp but what verterok said18:31
verterokelopio: try now please18:33
elopioverterok: um, now it's messier: https://paste.ubuntu.com/15562052/18:34
verterokelopio: yeah 1'18:35
verterokfat fingers :P18:37
verterokelopio: ready, enjoy18:49
elopioverterok: great!18:54
wililupyIf I want to add kernel modules to my kernel snap, how best do I do that?19:48
josephtsergiusens: is it possible to alter the PATH via snapcraft.yaml, for git the subcommands are in libexec/git-core.  Or should I be moving those binaries into the snap's path rather than trying to alter the path?20:31
kyrofajosepht, or write wrapper scripts20:32
sergiusensjosepht, or use organize20:33
josephtsergiusens, kyrofa: thanks :)20:37
josephtit's nice that 'organize' works for directories too20:40
kgunnrobert_ancell: hey, sorry to pester, i just know you'll know :)21:33
kgunnbut if i've 2 of the same package installed21:33
kgunnand i wanna toggle to the other version, what do i do?21:33
robert_ancellkgunn, two versions of a snap?21:33
kgunne.g. i manually installed a deb from mvo21:33
kgunnwell...it's a deb21:33
kgunnubunt-core-launcher21:33
kgunnrobert_ancell: actually snaps i totally understand :)21:34
kgunni figure there's some dpkg -something i can do21:34
robert_ancellkgunn, you can't have two versions of a .deb installed AFAIK - do the packages have different names?21:34
robert_ancellkgunn, oh, do you mean revert to the archive version?21:35
kgunnrobert_ancell: yessir21:35
kgunnlike so21:35
robert_ancellkgunn, you can do "apt install package=version" if you know the version from the archive21:35
kgunnubuntu-core-launcher:21:35
kgunn  Installed: 1.0.23~mvo121:35
kgunn  Candidate: 1.0.23~mvo121:35
kgunn  Version table:21:35
kgunn *** 1.0.23~mvo1 10021:35
kgunn        100 /var/lib/dpkg/status21:35
kgunn     1.0.22 50021:35
kgunn        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages21:35
kgunnah21:35
kgunnthanks robert_ancell21:35
robert_ancellor if it's a PPA you want to remove, you use ppa-purge to do that automatically21:35
kgunnnope, not a ppa21:35
kgunni just thot maybe apt might not be cool with it21:36
kgunnsince i manually installed dpkg -i style21:36
robert_ancellI've been meaning to find a command to apt install package=version-in-archive becuase surely it must exist21:36
robert_ancellBut it's normally easy enough to find the version you want21:36
moulfarblue, I work at Scaleway, I'm also interested if someone here had success with snappy on Scaleway (arm or x86_64) so I can package an image for everyone23:09

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