/srv/irclogs.ubuntu.com/2017/02/18/#snappy.txt

noonienHow can one tell what interfaces a snap needs?00:38
noonienI'm guessing there's no way of knowing, not even at runtime00:38
jameshnoonien: "snap interfaces" should tell you02:15
jamesh"snap interfaces $snap_name" will limit it to just a particular named snap02:15
=== markusfluer1 is now known as markusfluer
amosbirdhello05:21
amosbirdcan I use snap in centos 6?05:21
noonienjamesh: I'm creating a snap of an app of which I don't know everything about09:23
noonienAnd would like to know what interfaces said app needs09:23
noonienHmm, I'm using snap-debug.security to check interface violations, I gave a snap I made a plug to "home", however, it cannot access files in my home directory.09:48
noonienIt gets denied by apparmor09:48
noonienthe snap gets listed under home in `snap interfaces`09:48
ogra_noonien, dont forget that the home interface will not allow access to hidden dirs (for security reasons)11:23
noonienYes, I know. It was not a hidden directory11:27
jgdxogra_: is wlan expected to work on pi3? i get a timeout. Ethernet works fine.11:27
jgdxalso, are there any instructions on how to set up wlan on a running core?11:28
noonienSnap looks like great packaging, however, due to needing to specify every single thing that an app needs access to, I've decided not to use it11:28
ogra_jdstrand, only if you fist configure it with wired ... there is a driver bug ...11:28
ogra_bah11:28
jgdx:)11:28
ogra_jgdx,11:28
ogra_jgdx, so on first boot, set it up with wired ... then reboot, ssh in, run sudo console-conf, turn off wried and enable wlan ... rebopot again and it should all work11:29
jgdxcool, thx!11:29
jgdxogra_: is it known that rocket chat isn't accepting anything on 80/3000 out of the box?11:30
noonienPerhaps an android type permission system would have been better, allow everything until an interface for restricting is implemented.11:31
jgdxnoonien: wouldn't that … what??11:31
noonienPackaging apps that need minimal access to the system seems trivial, but packaging something that needs access to a wider set of system facilities seems rather impossible at this point, as far as I can tell.11:34
jgdxnoonien: then you write an interface, then another … there's only a finite number of interfaces to write. There are, however, a bazillion ways to get hacked on a traditional system with no security11:35
noonienI wonder how apps that support plugins are supposed to be packaged, considering some plugins might need interfaces that the app did not.11:36
noonienjgdx: I agree, however, from my point of view, because of the said restrictions, I would have to either invest time into creating interfaces, or drop snappy, the latter would provide me with even less security than what I proposed.11:38
jgdxnoonien: it doesn't get any clearer than that11:40
ogra_if your app has an upstream way to handle these plugins already you just make sure they are used from one of the snap dirs and ship a tool to download and install them ... as long as the plugin doesnt need HW access you wont need interfaces, just handle it internally in the snap itself11:41
ogra_the trick with snaps it to stop thinking in old packaging mechanisms, everything is possible, just different ;)11:43
ogra_s/it/is/11:45
jgdxogra_: if the snap already have hw acc, e.g. a .so in the common dir would also have access to it?11:49
ogra_if it is in $SNAP_COMMON ? sure11:49
jgdxokay good, thanks11:50
ogra_jgdx, oh, and i totally missed your second ping, what ports would you like rocket to use ?11:50
ogra_(and why)11:51
jgdxogra_: i'm not getting any response on the ports I try, so any, really.11:55
ogra_well, its a web service11:55
ogra_port 80 should definitely return some hhtp :)11:56
ogra_*http11:56
jgdxi agree, but it doesn't.. logs confirms it's running fine afaics11:56
jgdxanyway, maybe the default web server is configured to use localhost as a host. Need to take a closer look11:57
Cyrus104Good day, looking to see if having multiple default command is in the snap roadmap.13:09
noonienHow would one support alternatives? For example, let's say an app relies on command "X", packaged by app X, however, app "X-but-better" also provides "X", how can my app use the X from "X-but-better"?13:21
Son_Gokuyou don't :)13:24
noonienAs far as I can tell, the only solution is to build every permutation of the app.13:25
Son_Gokunoonien: :)13:48
jgdxnoonien: out of curiosity, when would that ever be wanted? You have file level control during creation of a snap…14:50
noonienWell, for example, I was trying to package polybar, it depends on i3, however, I'd like to have the flexibility of using i3-gaps, and do not know if the communication protocol is completely compatible.14:52
noonienSo I don't know if the polybar package should depend on i3 or i3-gaps.14:53
Son_Gokusergiusens: morning!15:04
jgdxogra_: is snap installation possible on rasbian?17:44
=== JanC_ is now known as JanC
BashfulrobotI have been reading through the site, and the one thing I can't seem to find info on is how to get your snap into the channels. Is there a documented process? Review? Etc.19:05
okyBashfulrobot: to publish into a channel, you have to use the CLI (afaict) - its documented somewhere19:10
okyfor review, it seems like automated vetting (i've packaged one package and submitted to beta channel, so that's very small experience point)19:11
ogra_jgdx, well, perhaps without any confinement enabled, not sure, but i guess even then the kernel will miss a lot19:12
jgdxogra_: okay19:12
ogra_Bashfulrobot, just go to https://myapps.developer.ubuntu.com, log in and in the details page of your snap you can then select the channels you want it in19:13
okyBashfulrobot: ok, i checked my command history. i did: `snapcraft push <package_file.snap>`, followed by `snapcraft release <package> <ver> <channel>`19:13
ogra_right, as oky said you can also use snapcraft release...19:14
okyogra_: the web UI was quite confusing to me and i could not see how to change channels its available in19:14
okymaybe Bashfulrobot will have different experience (and i hope so)19:14
ogra_you click on the revision on the left ... then there is a "Channels" on the right with a "Release" link ... if you click that there is a form with the list of possible channels and checkboxes next to them19:15
okyBashfulrobot: notice that to release to certain channels, your package has to be marked 'stable' or whatever the equivalent is. otherwise, edge / beta are the available channels19:16
okyogra_: awesome, thanks!19:17
ogra_right, the stable channel only allows packages with strict confinement ... also note that "snap find" or the software center only operate on the stable channel19:18
BashfulrobotOh! Just push it yourself and that is that. Great to know.19:19
BashfulrobotIs there a spot on the site that explains this? Was I a dumbass that missed this?19:20
=== paperManu_ is now known as paperManu
thos37@kyrofa @JohnAgosta I’m working on a time-sensitive embedded system project in which we’re attempting to use Ubuntu 16.04 (desktop or snappy) on an Intel Joule 570x (codename tuchuck) instead of Intel’s minimalistic Ostro linux.  A pretty big deal-breaker problem is lack of support in 16.04 for the board’s 2 SPI ports and 2 UARTs.  An answer on one of our AskUbuntu threads23:17
nothalthos37: No such command!23:17
thos37(http://askubuntu.com/questions/879580/spi-appears-broken-ubuntu-core-and-intel-joule) referenced this #channel and the channel logs (https://irclogs.ubuntu.com/2017/02/01/%23snappy.html#t18:25) referenced a private bug tracked at  https://bugs.launchpad.net/tuchuck/+bug/1661067   This is a high priority issue for our project.  Is there any possibility that I could have access to at least this bug and this tuchuck tracker channel?  We can23:17
thos37offer significant quality technical feedback and testing on this issue if needed.23:17

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