/srv/irclogs.ubuntu.com/2016/05/09/#snappy.txt

=== Aria is now known as Aria22
=== Aria22 is now known as Aria22|away
milaniVery quiet. Do developers speak somewhere else?!05:12
pmpmilani: they are here usually, I get great answers most of the time.05:47
=== chihchun_afk is now known as chihchun
mikenQuite a few of the snappy devs will be travelling to a sprint, which will go for this week, so it may be hard to get peoples' attention :)06:46
ysionneauogra_ : hi! where do I open a bug for UDF not supporting armhf userspace + aarch64 kernel? is there a github or a launchpad bug tracker for UDF?08:19
noizerzyga08:37
noizerare you there?08:37
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
zzarrhello! I'm new to snap packages, is it possible to make a package with a graphical environment?11:27
zzarrI have a dragonboard 410c with a HDMI/USB connected touch screen11:29
zzarrI wish to run a custom application on it11:29
=== Aria22|away is now known as Aria
blackout24zzarr, Yes there are applications packaged as snaps with a GUI like the ubuntu-calculator app11:45
zzarrnice!11:49
zzarrthanks blackout2411:49
jdstrandblackout24: fyi "apparmor restrictions don't seem to work on symlinks". They *do* work on symlinks, in precisely the way they are supposed to, but not in the way you are wanting. ie, apparmor will necessarily resolve symlinks when doing path name lookups for security reasons. That said, modifying the launcher profile to do what you want on Arch should not be particularly difficult12:58
* ogra_ curses the jetlag13:16
davmor2ogra_: you just need to sleep13:18
ysionneauogra_ any link to the ubuntu-device-flash bug tracker page?13:21
ogra_ysionneau, try https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch13:34
ogra_davmor2, :P13:35
ysionneauogra_: thanks a lot!13:36
ysionneauticket created: https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/157976713:39
ubottuLaunchpad bug 1579767 in goget-ubuntu-touch (Ubuntu) "udf does not support using aarch64 kernel snap with armhf 32 bits user space" [Undecided,New]13:39
josephtis running a snap application via sudo supported?13:46
qenghojosepht: Er, I don't think it matters. "sudo foo", where foo is a snap app name?13:47
josephtqengho: 'nmap localhost' works but 'sudo nmap localhost' does not.13:49
ogra_how does it fail13:51
qenghoRoot PATH?13:51
wsnipexhi, after the removal of old-security from snappy, is there still some way to provide apparmor profiles/overrides?13:51
qenghoTry "sudo /snap/bin/nmap"13:51
wsnipexthe reason I'm asking is that current plugs/slots are not sufficient to make my app work13:53
josephton pi2 it fails with: route_dst_netlink: can't find interface "lo"13:54
ogra_wsnipex: file a bug13:54
wsnipexogra_, on launchpad?13:55
josephtsame on amd64 classic13:56
ogra_wsnipex: indeed13:57
jdstrandwsnipex: no. you can install the snap with --devmode to unblock you then file bugs at https://bugs.launchpad.net/snappy/+filebug addng the `snapd-interface` tag.13:57
josephtwhere "lo" is which ever interface nmap tries to use13:58
wsnipexjdstrand, bugs for what exactly? that the existing plugs will probably never be sufficient to make kodi work? or that there is no possibility to override apparmor/seccomp anymore?13:59
ogra_uuh, indeed we will get to a point where the plugs are sufficient to run kodi at some point14:00
ogra_else we would have failed14:00
wsnipexgood to hear14:01
ogra_but we need to know which bits are missing, so we need bugs from you14:01
jdstrandwsnipex: a bug on what you want14:01
jdstrandwsnipex: in terms of new interfaces14:01
jdstrandwsnipex: what denials are you seeing, why you need that functionality, what the interface should look like, code, etc14:01
wsnipexI need at least this: https://github.com/wsnipex/xbmc/blob/246f93c30d51e8111e8ff8a6c268f7fb62643d9a/tools/Linux/apparmor-snap.kodi.kodi#L41814:02
wsnipexand its certainly not everything, since I didn't test all use cases by far14:02
jdstrandplease file a bug14:03
ogra_the pulse interface is underway14:03
ogra_not sure you will get access to fstab though14:03
wsnipexI'm actually expecting that some of those might be refused14:04
ogra_or to the /media mountpoints14:04
wsnipexbut what good is a media center without access to media ;)14:04
ogra_access to the homedir (and Video underneath etc) is there already14:04
wsnipexI know14:04
wsnipexbut automounts usually end up on /media14:05
jdstrandwsnipex: no need to be fatalistic. file the bug and we'll see how this should work14:05
wsnipexok14:05
jdstrandinterfaces are different than the previous 'caps' model. there is more flexibility, etc14:06
ogra_jdstrand: i wonder if we shouldnt make the automounts end up in home somehow ... at least the user specific bits14:06
ogra_(through some provileged link or some such... without touching the actual implementation of udisks)14:07
jdstrandthat gets tricky since the user has control of the directories things would be mounted into14:07
ogra_well, does he on a core install ?14:08
* ogra_ thinks we'll bang our heads against quite a bunch of differences between desktop and core for the near future14:09
=== Aria is now known as Aria|away
josephtjournalctl -xe shows: audit: type=1400 audit(1462802034.408:65): apparmor="DENIED" operation="open" profile="snap.nmap.nmap" name="/proc/31883/net/dev" pid=3188314:13
wsnipexheh: /proc/@{pid}/net/dev r,14:14
jdstrandI think I added that to trunk recently14:19
blackout24jdstrand, thanks. Still hitting a wall right know trying to launch apps through ubuntu-core-launcher. I think I'll try compiling my kernel from the v4.4-aa3.5-beta1 branch instead of v4.5-aa.3.5-beta1 branch.14:39
noizerHi guys, I asked one week ago something about Soft Floating. Zyga answerd my question then you need to make a chroot and compile it then en check if it works then. But how can I check if my chroot is correctly?14:46
noizerOr does somebody knows when Zyga is back?14:49
jdstrandnoizer: zyga is sprinting this week. I suspect he will be online in an hour or so, but due to sprinting, may not be terribly responsive14:52
noizerjdstrand: Ok maybe someone else can help me out for now14:53
noizerjdstrand: Do you know mutch about chroot ...14:53
jdstrandnoizer: I don't have any info on your question ("how can I check if my chroot is correctly?")14:56
sborovkovHello. I've asked about this around 2 weeks ago and at that time this was not working - snap install snap-name config.yaml. Does anyone know when this will be working?14:56
noizerjdstrand: wait I will explain it totally.14:57
jdstrandsborovkov: snappy config is not back yet14:57
jdstrandI don't have an eta14:57
jdstrandsborovkov: JamieBennett could give an eta. see the above re people sprinting14:58
noizerI want to implement Nuance TTS on my snappy device on a rpi2 or 3. now the problem is raspberry pi 2 and 3 are hard float systems. Nuance works only with soft-float systems on ARM linux. What zyga told me is to debootstrap a arm soft-float system. mount /proc and sys and then chroot the debootstrapped build. Compile there my application with the Nu14:59
noizerance TTS and then run.14:59
noizerjdstrand: now i compiled it and tested it but I have some problems maybe it isnt fully soft floating or I don't now what the exact problem15:00
sborovkovjdstrand: understood, thanks15:00
qenghoHmm, I don't think compiling on the same CPU is very important, but being on a no-hard-float CPU is important for testing.15:00
jdstrandnoizer: I'm going to defer to others who have experience in this area15:01
noizerjdstrand: qengho What i done now is compiled it on a raspberry pi 115:03
zygagood morning15:03
noizerzyga good morning15:03
qenghonoizer: Great. I think you could have compiled anywhere, including amd64.15:03
zyganoizer: good morning15:04
qenghonoizer: You have to make sure that your compiler emits ARM instructions for the CPU you are targeting. That's all. It's not a chroot trick. It's a configuration trick.15:05
qenghonoizer: The important thing here is that even if you were on a RPi1, it could have been making instructions for hard-float CPUs. Compiling has nothing to do with running.15:06
noizerqengho: zyga hmm wait I got an *.so file from Nuance that is compiled with soft-floating. and I made an applicatoin with it and compiled it against the *.so file from nuance15:07
noizerbut it should work?15:07
qenghoIf everything you just said is true, then it should have no hard-float problems.15:07
zyganoizer: hey, I'm going to be busy sprinting this week15:08
noizerzyga:  ok qengho is helping right now but thanks forallthe help you gave me?15:08
qenghonoizer: Make sure your app -- the place YOU are running gcc or clang or whatever -- is making the right instuctions. Read its man page. When you compile, you are responsible for making sure what you're making is what you intend. The computer does not read minds. Tell it. Make sure. Read man pages.15:09
josephtjdstrand: does my snap need to be rebuilt for the /proc/@{pid}/net/dev change that landed in trunk recently?15:26
jdstrandit was added to trunk (I just checked), you do need trunk's snapd on your device. you will have to reinstall the snap15:27
josephtjdstrand: ack, thanks15:28
ogra_mvo, the livecd-rootfs change looks fine15:30
noizerqengho: So soft-floating works can work on a hard floating system?15:34
qenghonoizer: yes. "floating point routines implemented in {soft,hard}ware". Some CPUs have instructions that handle the math faster, in silicon. If you don't' have it, you have to change the numbers into something you can compute in software, which is slower.15:36
noizerqengho: i know but what is a good way to change a standard Hard floating system in a soft floating system? what I done for now is made a chroot for it15:38
qenghonoizer: The Right Way™ is to compile both, and test which path to take. But that's harder to get right. (Trust me. I know.)15:38
qenghonoizer: I can't help you with your program. I have things I must finish.15:39
noizerqengho: ok np I will try further15:44
=== chihchun is now known as chihchun_afk
josharensonHow can I build a snap to run on my Pi2? I have it built on my amd64 box, but it won't cross compile and it doesn't seem that snappy has snapcraft available as a snap. Do I need a non-snappy armhf system to do this? (which isn't that bad because I guess I can use my phone)16:18
qenghoI found a Pandaboard ES b1 on my bookshelf yesterday, while cleaning. I'm pretty excited to try it out too.16:18
qenghoIf it doesn't work, I'm just going to mail it to rsalveti. He will find a use for it.16:19
josharensonqengho: I have an old one with several hundred days of uptime in my closet :-)16:19
sborovkovjosharenson: I am using MATE to build snap for RPI17:13
sborovkovon RPI17:13
josharensonsborovkov: so essentially the solution I proposed.. A non-snappy armhf system :-/ what a bummer17:14
=== Aria|away is now known as Aria
popeyi build on my pi19:01
popeywith a snappy install using classic dimension19:02
popeyworks well19:02
kyrofajosharenson, you should use the Launchpad armhf snap builder-- way faster than building on-device21:39
* josharenson looks21:39
kyrofajosharenson, you can actually build your snap for all supported architectures that way21:40
kyrofajosharenson, and it's fast21:40
josharensonkyrofa: have a link to some docs?21:40
kyrofajosharenson, not actually documented I'm afraid, but you know what... I'll do that now21:40
josharensonkyrofa: haha ok, thanks21:41
josharensonkyrofa: I assume its similar to how PPAs work?21:41
josharensonthat are built on lp21:41
kyrofajosharenson, easier, even21:41
josharensonkyrofa: of course, cause snappy :-)21:41
kyrofajosharenson, you just need your code on LP somewhere-- pushed to junk, pushed to a project, etc.21:42
Kamilionkyrofa: I'd also like to know of that documentation once it exists22:17
kyrofaKamilion, almost done, I'll ping you both22:18
kyrofaKamilion, just a quick and dirty walkthrough-- it should be actually documented by launchpad, but that's not me22:18
KamilionCool, thanks.22:18
Kamilionno worries, used to it22:18
Kamilionhttps://launchpad.net/~kamilion  <--- been doing it a while.22:19
kyrofaKamilion, josharenson, hope this helps: https://rainveiltech.com/posts/building-your-snap-on-device-there-s-a-better-way22:27
Kamilionhuh. How's owncloud been recently? I bailed like a year and a half ago after a mass exploit of owncloud vms.22:28
kyrofaKamilion, I use it anyway22:30
kyrofaKamilion, I like being able to share my calendar and files with my wife, etc.22:31
kyrofaKamilion, and sync my contacts between my phone and laptop, etc.22:31
Kamilionhas security been any better recently?22:31
Ayyadkyrofa, good read.. thank you22:35
JanCyou can always run owncloud where it's only accessible through a tunnel/VPN or something like that, I guess22:38
kyrofaAyyad, no problem!22:38
kyrofaKamilion, I'm not an owncloud dev... I guess I can't speak to the security22:38
Kamilionkyrofa: fair enough22:38
KamilionJanC: ssh tunneling has a very low WAF22:39
Kamilionhttps://en.wikipedia.org/wiki/Wife_acceptance_factor22:39
kyrofaKamilion, but at least snappy makes the exploits less useful :)22:39
Kamilion(not web application firewall)22:39
Kamilionyeah, in theory22:39
AyyadKamilion, yeah.. I was wondering how that makes sense :D22:40
Kamilionhttps://mjg59.dreamwidth.org/42320.html22:40
JanCKamilion: obviously whatever you use for tunneling would require pre-configuration22:40
kyrofaKamilion, https://askubuntu.com/questions/760803/security-of-snaps-under-x11/760813#76081322:41
kyrofaKamilion, owncloud doesn't use X :)22:41
Kamilionhahah, there IS no protection through X1122:41
Kamilionany application can just grab the keyboard or mouse or sendkeys to applications22:41
kyrofaExactly22:41
Kamilionbecause That's Just How X Works22:41
Kamilionthankfully wayland doesn't have the same issues22:42
kyrofaKamilion, yeah, mir doesn't either22:42
Kamilionooh, is there a working wayland snap yet?22:42
Kamilionkyrofa: uh, yes it does22:42
Kamilionmir just kinda sticks two existing X components togther in an unholy mash of wtffery22:42
Kamilionit's still using many of the major x libraries, unfortunately22:43
Kamilionit's not like we could blame xorg or xfree86 either, they're working off the X Consortium's specs22:43
Kamilion(and if I'm currently mistaken about Mir, I apologise, the only real information I have on it is from around 2012 and a lot of stuff might have changed)22:47
Kamilionbut last I knew the best description of it was "we embedded a window manager into the display server so we can call it a compositing server now"22:47
KamilionI went with wayland myself22:48
nhainesThat's... not how Mir works.23:05

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