mup | Bug #1638425 opened: The documentation to install snapd in archlinux doesn't mention that the socket needs to be started <snap-docs> <Snappy:New> <https://launchpad.net/bugs/1638425> | 00:40 |
---|---|---|
mup | PR snapd#2247 opened: interfaces/builtin/mir: allow client access to /dev/shm/ <Created by albaguirre> <https://github.com/snapcore/snapd/pull/2247> | 03:44 |
=== chihchun_afk is now known as chihchun | ||
=== chihchun is now known as chihchun_afk | ||
=== chihchun_afk is now known as chihchun | ||
mup | PR snapcraft#883 closed: python plugin: wheel and install in the proper order <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/883> | 06:33 |
mup | PR snapd#2248 opened: tests: make refresh-undo wait a bit for the output of the restarted v1 service <Created by mvo5> <https://github.com/snapcore/snapd/pull/2248> | 06:38 |
Mirv | nessita: hi! I'm getting 404 on my " To accept this share, please visit:" link in e-mail I got thanks to upload by mvo for me | 06:41 |
foxmask | bonjello | 07:17 |
thed46 | im new ...i mean right now new, to ubuntu im lost | 07:22 |
mup | PR snapd#2208 closed: store: add support to resume partial downloads <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/2208> | 07:49 |
dholbach | hey hey | 08:10 |
Mirv | nessita: seems like case sensitive e-mail address detection | 08:21 |
Mirv | nessita: got now with lower case e-mail address. the next problem is that the new store with support for 'content' field is not there, any ETA on deployment? it was reportedly fixed in master already during the sprint. | 08:23 |
=== ezobn is now known as Guest98417 | ||
morphis_ | pitti: ping | 08:58 |
mup | PR snapd#2249 opened: store: use range requests if we have a local file already <Created by mvo5> <https://github.com/snapcore/snapd/pull/2249> | 09:56 |
=== chihchun is now known as chihchun_afk | ||
mvo | ogra_: hi, I noticed there is a new rev 24 of the dragonboard gadget. do we need this for stable? it got little testing so far | 10:05 |
mvo | ogra_: its only in edge | 10:05 |
=== chihchun_afk is now known as chihchun | ||
mvo | ogra_: same for pc-kernel, do we need the one in edge? | 10:06 |
morphis_ | mvo, ogra_: do you guys have any insight on why networkd stores its DHCP lease inside /run where they are lost on next device boot? | 10:06 |
mvo | morphis_: pitti will probably know | 10:07 |
mup | Bug #1638511 opened: Can't install snap in LXD container <Snappy:New> <https://launchpad.net/bugs/1638511> | 10:08 |
mup | PR snapcraft#872 closed: Add some further bash-completion <Created by cwayne18> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/872> | 10:09 |
bzoltan | elopio: https://github.com/snapcore/snapcraft/pull/884 | 10:11 |
mup | PR snapcraft#884: Implement API packaging plugin as requested in #1638508 <Created by bzoltan1> <https://github.com/snapcore/snapcraft/pull/884> | 10:11 |
mup | PR snapcraft#884 opened: Implement API packaging plugin as requested in #1638508 <Created by bzoltan1> <https://github.com/snapcore/snapcraft/pull/884> | 10:12 |
morphis_ | mvo: yeah | 10:12 |
ogra_ | mvo, yes to both | 10:13 |
ogra_ | mvo, pc-kernel adds the mmc modules to the initrd (needed by NUC) | 10:14 |
mvo | ogra_: ok | 10:14 |
ogra_ | mvo, dragonbvoard just adds a tty0 console arg so all arm images are consistent | 10:15 |
Subhash | can anyone guide me how to change library path after prime stage in snapcraft snap process. Thanks in advance | 10:16 |
=== chihchun is now known as chihchun_afk | ||
femme | what is the current ubuntu core release? | 10:22 |
=== chihchun_afk is now known as chihchun | ||
Son_Goku | zyga, systemd mounts support setting an SELinux context | 10:26 |
zyga | Son_Goku: how can we do this? | 10:27 |
zyga | Son_Goku: what should be in the unit | 10:27 |
zyga | Son_Goku: I'll make that happen | 10:27 |
zyga | Son_Goku: (good morning) | 10:27 |
zyga | Son_Goku: (long night) | 10:27 |
Son_Goku | under the [Mount] section | 10:27 |
Son_Goku | add 'Options=context="system_u:object_r:snappy_var_lib_t:s0"' | 10:29 |
zyga | Son_Goku: trying | 10:29 |
Son_Goku | it's essentially a mount option | 10:29 |
Son_Goku | with the mount command, this is done as the following command | 10:29 |
Son_Goku | mount -o context="system_u:object_r:snappy_var_lib_t:s0" | 10:29 |
Son_Goku | that overrides/enforces a default label | 10:30 |
=== ezobn is now known as Guest89709 | ||
zyga | Son_Goku: just fiddling, should have a patch in a sec | 10:34 |
Son_Goku | It'd probably be better if systemd had a specific SELinuxContext for mounts, but it doesn't :/ | 10:35 |
Son_Goku | something for your systemd guys to add, maybe | 10:36 |
zyga | Son_Goku: ok, I just pushed something to f24 | 10:39 |
zyga | Son_Goku: tell me if that what's you expected | 10:39 |
zyga | Son_Goku: didn't build it yet | 10:39 |
zyga | Son_Goku: can you update f24 to have the right commit ID for the polcy? | 10:39 |
zyga | Son_Goku: I just want to be in sync with you | 10:40 |
Son_Goku | yes, give me a sec | 10:40 |
mup | PR snapd#2250 opened: Range requests but no snap logging <Created by chipaca> <https://github.com/snapcore/snapd/pull/2250> | 10:41 |
Son_Goku | zyga, also, what creates the ~/snap directory? | 10:44 |
zyga | Son_Goku: snap | 10:46 |
zyga | Son_Goku: cmd/snap | 10:46 |
zyga | Son_Goku: the snap run command specifically | 10:46 |
zyga | Son_Goku: snap confine tries as well but by now snap run already did it | 10:46 |
Son_Goku | policy commit updated | 10:48 |
zyga | Son_Goku: I fixed the patch | 10:50 |
rvr | ogra_: Still no wifi in the raspi 3 image | 10:50 |
ogra_ | rvr, i just had it working for the first time ... but i went afk for like 10min before pressing enter and i had a cable plugged in to eth when i booted | 10:51 |
mup | PR snapd#2251 opened: interface hooks: snapctl get-attr and set-attr (phase 3) <Created by stolowski> <https://github.com/snapcore/snapd/pull/2251> | 10:51 |
ogra_ | (disabling eth0 and configuring wlan0 worked fine then) ... | 10:51 |
ogra_ | might be that the system is under high load on boot | 10:51 |
zyga | t | 10:54 |
zyga | Son_Goku: trying, fingers crossed :) | 10:56 |
Son_Goku | :) | 10:57 |
zyga | Son_Goku: lis 02 12:57:47 fedora24 audit[1]: USER_AVC pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { reload } for auid=n/a uid=0 gid=0 cmdline="systemctl daemon-reload" scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=system | 10:58 |
zyga | Son_Goku: we just need this I think | 10:58 |
mup | Bug #1638524 opened: /etc/modprobe.d adds one to much directory level <Snappy:New> <https://launchpad.net/bugs/1638524> | 10:59 |
Son_Goku | can you do the ausearch thing to give me the .te file lines? | 11:01 |
zyga | Son_Goku: the thingh is, I don't get the denial this time | 11:01 |
Son_Goku | that's because it was a soft-fail | 11:02 |
zyga | Son_Goku: it's not like I get the usual selinux thing there | 11:02 |
zyga | ah | 11:02 |
Son_Goku | or perhaps, do you not have setroubleshoot-server installed | 11:02 |
zyga | sealarm -b shows nothing | 11:02 |
Son_Goku | one of the two | 11:02 |
zyga | I do have it | 11:02 |
zyga | it's just not triggering | 11:02 |
zyga | it must be something that's specified by the policy as, not undefined by the policy (just a hunch) | 11:03 |
zyga | (as denial) | 11:03 |
zyga | do you have any ideas where that might be? | 11:03 |
* Son_Goku shrugs | 11:05 | |
Son_Goku | we're really in the weeds now | 11:05 |
zyga | Son_Goku: I think the weeds (for hello-world) are shallow, | 11:06 |
zyga | I'm trying to grok what might be going on now | 11:06 |
zyga | Son_Goku: could that be a dbus request for systmed to reload? | 11:08 |
Son_Goku | maybe? | 11:08 |
Son_Goku | selinux covers that too... | 11:08 |
zyga | jdstrand: does this ring any bells vvvv | 11:08 |
Son_Goku | contexts apply to literally everything | 11:08 |
zyga | lis 02 12:57:47 fedora24 audit[1]: USER_AVC pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { reload } for auid=n/a uid=0 gid=0 cmdline="systemctl daemon-reload" scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=system | 11:08 |
zyga | Son_Goku: we should ask on selinux channel (maybe you already did) | 11:09 |
Son_Goku | I don't know why you're not there :P | 11:09 |
Son_Goku | and no, I haven't yet | 11:09 |
Son_Goku | I'm still trying to work out why the homedir transition isn't occurring automatically | 11:09 |
Son_Goku | zyga, you *really* should be in #selinux | 11:18 |
Son_Goku | I'm getting asked questions I don't know the answers to | 11:18 |
mup | Bug #1638529 opened: Auto-connect is not working for connection between network-manager and modem-manager <Snappy:New> <https://launchpad.net/bugs/1638529> | 11:20 |
samplejava | hi there guyts | 11:28 |
samplejava | i'm just trying to snap a java application | 11:29 |
samplejava | i have the -jar file and i want to create a snap package but i am unable to properly install java along with the package | 11:29 |
=== ezobn is now known as Guest58526 | ||
samplejava | my snapcraft.yaml looks like this: | 11:31 |
samplejava | http://hastebin.com/bofiwuviyu.sql | 11:32 |
samplejava | the app is just a window poping up a hello world message | 11:33 |
didrocks | samplejava: hey! I would try using the jdk plugin from snapcraft. This one will do the correct things to stage a local jvm that could be used by your jars | 11:35 |
samplejava | hmmm | 11:36 |
samplejava | so adding it as a part? | 11:36 |
didrocks | (also, I think you did notice that you had a typo in default-jdk stage-package) | 11:36 |
didrocks | samplejava: one part with plugin: jdk instead of copy | 11:36 |
didrocks | and use stage/snap keyword to copy the files you need | 11:36 |
didrocks | if you are using maven build system, you can also look at using this plugin | 11:37 |
popey | jdstrand: bug 1598309 (your comment #4) is affecting me. I have a snap which barfs accessing /dev/snd/seq. Is there anything I can do other than use --devmode? | 11:38 |
mup | Bug #1598309: The aplay command doesn't work <snapd-interface> <xenial> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1598309> | 11:38 |
samplejava | in fact it is only an old .jar file which used to work but my users always complain about needing to install jdk on fedora, ubuntu, and so on | 11:38 |
samplejava | if i can manage this for them... | 11:38 |
samplejava | noticed the typo, but the error remains... | 11:39 |
samplejava | Something like this: /snap/jsignpdf/x8/command-jsignpdf.wrapper: 7: exec: java: not found | 11:39 |
didrocks | samplejava: yeah, that's because you didn't export JAVA_HOME and such | 11:39 |
didrocks | which is what this plugin is doing | 11:39 |
didrocks | if you look at the jdk plugin, it's just creating a small wrapper with simple env variables | 11:40 |
didrocks | pointing up JAVA_HOME and PATH to your local jre/jdk install | 11:40 |
didrocks | you can do this as well | 11:40 |
didrocks | samplejava: this is what the plugin is doing: http://paste.ubuntu.com/23415767/ | 11:41 |
samplejava | oh | 11:41 |
didrocks | the root variable is $SNAP in your snap environment | 11:41 |
samplejava | i will have to review the docs | 11:42 |
samplejava | because i bet that i am not understanding | 11:43 |
didrocks | your java is local to your snap | 11:43 |
didrocks | so you need to override some variables to point to it | 11:43 |
didrocks | that's what the plugin is doing for you | 11:43 |
didrocks | (here, the jdk plugin) | 11:43 |
samplejava | okey, so you mean modifying my plugin from plugin: copy to plugin:jdk would do the trick | 11:43 |
samplejava | or ill need to add a new part | 11:43 |
didrocks | correct, just modigyin your plugin to plugin:jdk | 11:44 |
didrocks | then, you need to use "stage" and "snap" keywords to ship your files | 11:44 |
samplejava | stage and snap | 11:44 |
samplejava | okey ill try | 11:44 |
didrocks | yeah, that's the part you should look into the doc :) | 11:44 |
didrocks | http://snapcraft.io/docs/build-snaps/syntax could be a good start | 11:45 |
samplejava | got it | 11:45 |
samplejava | http://snapcraft.io/docs/build-snaps/parts | 11:45 |
samplejava | ;) | 11:45 |
didrocks | also ;) | 11:45 |
samplejava | you were faster | 11:45 |
didrocks | heh | 11:45 |
didrocks | good luck, do not hesitate if you have any blocker! | 11:46 |
samplejava | hope not | 11:46 |
samplejava | i love the philosophy | 11:46 |
samplejava | thinking about deploying elasticsearch and so on similarly | 11:46 |
samplejava | looks great really | 11:46 |
Son_Goku | zyga, I've bumped the policy again, this time hopefully fixing the homedir issue | 11:50 |
Son_Goku | I'm going to take a little break on this | 11:50 |
Son_Goku | if you find issues, file them on the GitLab project | 11:51 |
Son_Goku | zyga: https://gitlab.com/Conan_Kudo/snapcore-selinux/issues | 11:55 |
zyga | re | 11:55 |
zyga | Son_Goku: thank you | 11:55 |
Son_Goku | zyga, also, if you need help deciphering SELinux issues, #selinux is a good place to be | 11:58 |
=== hikiko is now known as hikiko|ln | ||
jdstrand | popey: as of today, you need to use devmode. I've added a card to implement it, but it is prioritized behind other cards. you (or someone else) could create a PR for 'alsa' if you don't want to wait | 11:59 |
samplejava | im sorry didrocks | 12:02 |
samplejava | don't see the difference between stage and snap | 12:02 |
samplejava | i have defined a fileset called binaries which includes all the -jar files in my folder (- blabla/*) | 12:03 |
didrocks | samplejava: stage is for the stage step (what's ending up in the stage/ directory), snap is for the prime/snap stages (in the prime/ directory). See http://snapcraft.io/docs/reference/snapcraft | 12:03 |
didrocks | samplejava: if you don't know what to put, it's probably because you need both (refering to the same fileset) | 12:03 |
* didrocks goes for a run, will be back later | 12:05 | |
jdstrand | zyga: I don't, no. tyhicks may have an idea, but I suspect Son_Goku is right about #selinux | 12:05 |
Son_Goku | zyga & jdstrand: also this can be helpful: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/SELinux_Users_and_Administrators_Guide/ | 12:06 |
Son_Goku | just for understanding the concepts and stuff | 12:06 |
zyga | tyhicks: do you think we can get someone with selinux brains to help us bootstrap snapd confinement (not interfaces)? | 12:06 |
zyga | tyhicks: to the point where snapd itself is confined and runs correctly on f24+ | 12:07 |
femme | zyga: I was thinking about something related, snap support in subgraph os which uses a system sandbox called oz | 12:09 |
zyga | femme: if you are interested in expanding and improving security subsystems in snappy then we have space where you can do that | 12:12 |
zyga | femme: the code is very modular already | 12:12 |
zyga | femme: and it's designed for runtime choice and can easily support many things | 12:14 |
popey | jdstrand: ok, thanks. | 12:15 |
mup | Bug #1638537 opened: snapd eats 100% CPU for about 5 minutes on first boot causing a load of >2.0c <Snappy:New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1638537> | 12:21 |
=== chihchun is now known as chihchun_afk | ||
kalikiana_ | jdstrand: Hey. I'm making the changes suggested in https://github.com/snapcore/snapd/pull/2225 but I gather I'm not fully clear, as now I'm seeing 'snap "ubuntu-core" has no slot named "lxd"' after I changed the declaration and removed it from builtins | 12:39 |
mup | PR snapd#2225: Implement lxd-client interface exposing the lxd snap <Created by kalikiana> <https://github.com/snapcore/snapd/pull/2225> | 12:39 |
kalikiana_ | Updating the tests atm which may or may not yield some hints | 12:41 |
=== hikiko|ln is now known as hikiko | ||
mup | Bug #1638558 opened: interface to register and talk to well defined name on dbus session bus <Snappy:New> <https://launchpad.net/bugs/1638558> | 13:06 |
mup | Bug #1638524 changed: /etc/modprobe.d adds one to much directory level <Snappy:Fix Released> <ubuntu-core-config (Ubuntu):Fix Released> <https://launchpad.net/bugs/1638524> | 13:12 |
bzoltan | elopio: are you sprinting too? | 14:14 |
tyhicks | zyga: hey - who did you have in mind for that? | 14:21 |
=== daniel is now known as Guest19937 | ||
=== Guest19937 is now known as Odd_Bloke | ||
mup | PR snapd#2252 opened: interfaces: add unconfined access to modem-manager <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/2252> | 14:39 |
tsdgeos | any idea what's wrong in here? http://paste.ubuntu.com/23416363/ | 14:40 |
jdstrand | Chipaca: hey, do you know who I should talk to about testsuite failures when running run-checks locally? http://paste.ubuntu.com/23416405/ | 14:49 |
* Chipaca looks | 14:49 | |
jdstrand | Chipaca: these failures have been around for a while now | 14:49 |
Chipaca | jdstrand: I don't see those; how're you running things? | 14:50 |
Chipaca | jdstrand: you can talk to me for example :-D | 14:50 |
jdstrand | Chipaca: I just do ./run-checks | 14:51 |
Chipaca | jdstrand: in what environment? | 14:51 |
jdstrand | Chipaca: now, my environment is that I have the lxd snap installed, then created a container for snapd developement | 14:51 |
Chipaca | jdstrand: on what branch? | 14:51 |
Chipaca | ah | 14:51 |
jdstrand | it is every branch, but I'm trying master now | 14:52 |
Chipaca | jdstrand: so the next question is what version of snapd and core and lxd you're on :-D | 14:52 |
jdstrand | yes, same thing on master | 14:52 |
jdstrand | snapd 2.16ubuntu3. ubuntu-core 423, core 6, lxd 241 (2.5) | 14:53 |
jdstrand | snap-confine 1.0.43-0ubuntu1~16.04.1 (if you need that) | 14:54 |
jdstrand | Chipaca: fyi, same error if using a system container or setting TMPDIR=~/tmp | 15:10 |
Chipaca | jdstrand: ubuntu-core *and* core? | 15:10 |
jdstrand | well, yes | 15:10 |
Chipaca | jdstrand: you've been having fun! | 15:10 |
jdstrand | I installed core cause I was excited to use it, then I couldn't remove either | 15:10 |
Chipaca | jdstrand: you should be able to remove the one you're not using | 15:11 |
Chipaca | jdstrand: but that might depend on which one you're using | 15:11 |
jdstrand | Chipaca: I'd love to get rid of ubuntu-core. how will I know that it isn't being used? | 15:12 |
Chipaca | jdstrand: you could try "snap disable ubuntu-core; snap remove ubuntu-core" | 15:12 |
jdstrand | ah | 15:13 |
jdstrand | disable first | 15:13 |
jdstrand | that did it | 15:13 |
Chipaca | jdstrand: that's exploiting a bug to fix a different bug, but yes :-D | 15:13 |
jdstrand | nice! :) | 15:13 |
Chipaca | jdstrand: what does snap --version say? | 15:14 |
jdstrand | $ snap --version | 15:15 |
jdstrand | snap 2.16ubuntu3 | 15:15 |
jdstrand | snapd 2.16ubuntu3 | 15:15 |
jdstrand | series 16 | 15:15 |
jdstrand | ubuntu 16.04 | 15:15 |
jdstrand | ok, with just core installed and disabling then re-enabling lxd to restart everything, same issue | 15:16 |
jdstrand | Chipaca: shall I install snapd 2.17 from the ppa? | 15:16 |
Chipaca | jdstrand: that would be helpful, but only if you don't mind then being stuck on it | 15:17 |
jdstrand | it's fine | 15:17 |
jdstrand | Chipaca: I have to step away for a little bit. I'll try snapd 2.17 and circle back | 15:18 |
=== didrocks1 is now known as didrocks | ||
kalikiana_ | Hey jdstrand. After making the changes you suggested in https://github.com/snapcore/snapd/pull/2225 I'm seeing 'snap "ubuntu-core" has no slot named "lxd"' when doing 'snap connect', I'm guessing removing it from builtins I might have to add it somewhere else? | 15:25 |
mup | PR snapd#2225: Implement lxd-client interface exposing the lxd snap <Created by kalikiana> <https://github.com/snapcore/snapd/pull/2225> | 15:25 |
mup | PR snapcraft#885 opened: Release changelog for 2.21 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/885> | 15:30 |
bschaefer | hello, i have a snap that depends on different packages depending on architecture. Is there a way to specify architecture for packages, or optional packages? | 15:45 |
bschaefer | or do i need a snap per different architecture? | 15:45 |
abeato | does anybody know how to generate core files in ubuntu core? | 16:16 |
zyga | tyhicks: hey | 16:20 |
zyga | tyhicks: sorry for the lag | 16:20 |
zyga | tyhicks: I was thinking if there's anyone we can tap into to help us finish selinux in fedora for snapd | 16:21 |
zyga | tyhicks: not for interfaces, just for snapd itself | 16:21 |
tyhicks | zyga: I don't know of anyone that has the skills and the spare cycles to work on that | 16:22 |
zyga | tyhicks: do you know anyone with the skills that we can maybe try to get cycles? | 16:22 |
tyhicks | zyga: on the ubuntu security team? | 16:23 |
zyga | anyone? | 16:23 |
tyhicks | not these days | 16:23 |
tyhicks | I haven't been around the selinux policy community for at least 5 years | 16:24 |
ratliff | zyga: it might be possible to hire a consulting firm like Quark Security to help out with selinux policy | 16:52 |
ratliff | alternately, it might be possible to rope in some graduate students if some grant money were to be offered | 16:52 |
ratliff | Trent Jaeger did some analysis of the reference policy back in the day and is now a professor at Penn State - he might be able to come up with a grad student and define a mutually beneficial project | 16:53 |
jdstrand | kalikiana_: sorry, I stepped away. right, so, if the interface isn't implicit and supplied by the core snap, then an app snap needs to supply the slot implementation for the interface | 17:04 |
jdstrand | kalikiana_: since lxd is what provides the socket the interface grants access to, the lxd snap needs to provide the slot implementation | 17:05 |
jdstrand | kalikiana_: in this specific case, the lxd service (command) that listens on the socket needs to simply 'slots: [ lxd ]' in its snap(craft).yaml | 17:05 |
jdstrand | kalikiana_: then, you install lxd and you get the slot for your client to connect to | 17:06 |
elopio | 17:07 | |
elopio | bzoltan: no, I'm home | 17:07 |
jdstrand | zyga (cc ratliff and tyhicks): one thing that come out of the sprint that I think you may not have heard that you should be aware of is that whenever interfaces are implemented for snapd, the selinux policy for dbus will be far more open. selinux doesn't have the concept of fine-grained dbus rules. all selinux has (essentially) is 'is this process allowed to talk to that one over dbus' | 17:09 |
jdstrand | zyga: the same will be true of fine-grained gsettings mediation when that lands (aiui) | 17:11 |
tyhicks | that's a good point but I think zyga is only wanting snapd confinement right now and he's not as worried about selinux policy for interfaces | 17:11 |
jdstrand | tyhicks: sure, but this conversation reminded me that I needed to let zyga know that | 17:11 |
tyhicks | ah | 17:11 |
jdstrand | that's why I said "whenever interfaces are implemented" (since aiui, that isn't what they are trying to do now) | 17:12 |
tyhicks | jdstrand: the same is true even for file access rules - the selinux policy for interfaces can only be as fine-grained as the labeling applied to the inodes | 17:12 |
tyhicks | it isn't as easy to arbitrarily split up access to files in /home/tyhicks/, for example | 17:13 |
jdstrand | tyhicks: yeah | 17:15 |
tyhicks | I haven't looked at the labeling in fedora system in a while but it'd be interesting to see the output of `ls -alZ ~/` | 17:15 |
jdstrand | it wouldn't surprise me if it was (predominately) the same label | 17:17 |
jdstrand | like a session label | 17:17 |
jdstrand | since that corresponds with the traditional desktop trust model | 17:18 |
tyhicks | yeah, that's what I would guess, as well | 17:18 |
jdstrand | Chipaca: fyi, I'm back and there is no difference | 17:19 |
jdstrand | Chipaca: with 2.17 | 17:19 |
Chipaca | jdstrand, time to file a bug! :-/ | 17:19 |
jdstrand | let me try one more thing | 17:21 |
kalikiana_ | jdstrand: Hmmm you wouldn't by any chance happen to know where to find lxd's snapcraft yaml? I installed it from the store | 17:22 |
jdstrand | kalikiana_: I would think it would be in the upstream source. if not, ask stgraber | 17:22 |
kalikiana_ | stgraber: Any idea where to find lxd's snapcraft.yaml? | 17:23 |
kalikiana_ | It's not in the source tree as far as I can see | 17:23 |
jdstrand | Chipaca: ok, so I tried it on another system without lxd involved and it worked. I'll file a bug with a reproducer | 17:24 |
mup | Bug #1638558 changed: interface to register and talk to well defined name on dbus session bus <snapd-interface> <Snappy:Confirmed> <https://launchpad.net/bugs/1638558> | 17:35 |
mup | PR snapd#2253 opened: interfaces/builtin/mir: allow slot to make recvfrom syscalls <Created by albaguirre> <https://github.com/snapcore/snapd/pull/2253> | 17:44 |
jdstrand | stgraber: hey, I don't seem to have any logs from containers using the lxd snap. is there something special I need to do to enable logging? | 17:50 |
jdstrand | stgraber: (I'm just looking at /var/log/syslog) | 17:50 |
mup | Bug #1638656 opened: snapd testsuite fails when run inside an lxd container <Snappy:New> <https://launchpad.net/bugs/1638656> | 17:53 |
jdstrand | Chipaca: ok, bug #1638656. I think I was able to rule out a whole bunch of stuff-- the reproducer I gave is for lxd from the archive so snapd/snap-confine/core/lxd/etc interactions can all be ruled out | 17:54 |
mup | Bug #1638656: snapd testsuite fails when run inside an lxd container <Snappy:New> <https://launchpad.net/bugs/1638656> | 17:54 |
jdstrand | Chipaca: it is simply run the testsuite in a container and it fails | 17:54 |
femme | can you use lxc inside snaps? | 17:59 |
jdstrand | Chipaca: I also noticed a typo in HACKING.md: https://github.com/snapcore/snapd/pull/2254 | 18:00 |
mup | PR snapd#2254: fix path for source files location in HACKING.md <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2254> | 18:00 |
mup | PR snapd#2254 opened: fix path for source files location in HACKING.md <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2254> | 18:00 |
jdstrand | femme: an lxc interface is in development that would allow snaps to access the lxd socket | 18:01 |
jdstrand | I'm not sure if that is what you were asking | 18:01 |
jdstrand | but there is also an lxd snap that can be used (I use it every day) | 18:02 |
jdstrand | and with a new enough kernel, snapd, snap-confine and continer (eg, ubuntu 16.10), you will be able to run snaps inside a container from the lxd snap | 18:02 |
jdstrand | people are working to get all that stuff into 16.04 | 18:03 |
femme | jdstrand: I'm trying to package a build system that uses lxc in snappy | 18:04 |
jdstrand | femme: you would need the lxc interface then. that should land in trunk in the next week or so | 18:05 |
jdstrand | in the mean time, use devmode to be able to access the lxd socket | 18:05 |
femme | jdstrand: so i need to use lxc *inside* the snap package, the package is going to build another package | 18:08 |
jdstrand | femme: yes, I understand. with the lxc interface, that will allow you to specify 'plugs: [lxd]' in your snap. when connected your snap will be able to connect to the lxd socket so you can drive it with the lxc command | 18:10 |
femme | jdstrand: ah great, I'll wait :) | 18:12 |
mup | Bug #1638661 opened: Undo on failed refresh doesn't keep the previous snap intact <Snappy:New> <https://launchpad.net/bugs/1638661> | 18:14 |
vigo | ogra_, do you know why it's possible to "snap login" repeatedly with the same account? | 18:21 |
stgraber | kalikiana_: git://github.com/lxc/lxd-pkg-ubuntu, snappy-16 branch | 18:23 |
stgraber | jdstrand: they'd be logged in /var/snap/lxd/common/lxd/logs/ or some similar path | 18:23 |
ogra_ | vigo, nope | 18:26 |
vigo | ogra_, I'll file a bug for it | 18:27 |
ogra_ | yep | 18:27 |
mup | Bug #1638665 opened: User can login with "Snap login" repeatedly with the same account <Snappy:New> <https://launchpad.net/bugs/1638665> | 18:30 |
wililupy | I have an interresting issue that just came up.... | 18:50 |
wililupy | So I setup my device with Ubuntu-Core. I had to make some udev rule changes, and when I reboot, the system can no longer find the core.snap. Sure enough, I look in system-data/var/lib/snapd/snaps and only the kernel.snap is there and an empty directory named partial. | 18:51 |
wililupy | Any ideas? | 18:51 |
wililupy | Also, after initial login, when I type snap list, it shows no installed snaps. | 18:53 |
zyga | re | 18:57 |
=== JanC is now known as Guest59232 | ||
=== JanC_ is now known as JanC | ||
Croepha | on ubuntu 16.04 it seems that /writable/ inside a snap isn't writable, is that normal? | 19:08 |
qengho | Croepha: The only place you can write is given by env variables with DATA in the name. | 19:12 |
qengho | Don't be fooled by the pathname. Some things can write there. Not snaps. | 19:13 |
Croepha | qengho: ok, good to know, I had hardcoded some stuff to use /writable, worked fine before, but breaks on newer snapd | 19:14 |
Croepha | thanks | 19:14 |
Croepha | hmm, looks like $SNAP_DATA is version specific... is there a scheme to accessing data from previous version? | 19:15 |
qengho | Croepha: The data from previous version (if any) is copied into the place for this version. It exists already. | 19:16 |
Croepha | ahh, good deal, thats a smart behavior | 19:16 |
Croepha | i imagine there is also a garbage collection/clean-up scheme? probably when you remove older versions? | 19:17 |
qengho | Croepha: A user can roll-back your version, and get data that existed at the instant of upgrade/refresh. | 19:17 |
qengho | Croepha: Yes. That is intended, at least. Perhaps not finished being implemented. | 19:18 |
qengho | Croepha: Also, there are places defined in "COMMON" env vars, which are not versioned and remain constant across snap versions, in case something is very large or should never be versioned or for other reasons. | 19:19 |
Croepha | ahh, nice | 19:20 |
Croepha | thanks qengho, you have been a big help | 19:21 |
qengho | Croepha: Welcome! Make something awesome! | 19:21 |
Croepha | trying :) | 19:21 |
mup | PR snapcraft#885 closed: Release changelog for 2.21 <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/885> | 19:29 |
mup | PR snapcraft#884 closed: Implement API packaging plugin as requested in #1638508 <Created by bzoltan1> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/884> | 19:50 |
wililupy | ok, so I found the core_383.snap in the var/lib/snapd/seed/snaps directory. So I copied it to var/lib/snapd/snaps and rebooted and the device came back up, but when I went to /var/lib/snapd/snaps, it is deleted again. Any ideas as to why this is happening? | 20:10 |
Croepha | wililupy: I dont really know your circumstances, but that sort of sounds like an issue that I ran into | 20:14 |
Croepha | check your jounrnalctl logs for snapd | 20:14 |
Croepha | see if there are any "undo" lines, like it ran into a problem and then tried to undo them | 20:15 |
wililupy | Croepha: ack | 20:15 |
Croepha | i think there might be a bug there somewhere | 20:15 |
Croepha | also, the root of my issue, was that the model assertions for ubuntu-image specified my custom kernel incorrectly so it was failing there | 20:16 |
mwhudson | has anyone seen a test failure like this for snapd: https://buildd.debian.org/status/fetch.php?pkg=snapd&arch=arm64&ver=2.16-1&stamp=1478105694 | 20:22 |
mwhudson | "2016/11/02 16:51:30 http: panic serving 127.0.0.1:48622: info failed to parse: yaml: control characters are not allowed" | 20:23 |
mup | PR snapd#2255 opened: tests: improve refresh-undo test <Created by mvo5> <https://github.com/snapcore/snapd/pull/2255> | 20:25 |
wililupy | Croepha: I see an undo for the core snap. The error after it is very vague, "No Option snap_mode in section" | 21:33 |
wililupy | I also see errors for my kernel snap. For some reason, I installed it with the name the assertion is calling it, but when i look at the snap file in the writable partition, it is named kernel-x1.snap instead. I'm thinking that is why it is not showing up properly as an installed snap and why it looks like no snaps are installed on my system. | 21:37 |
Croepha | wililupy: ok, rebuild the image | 21:47 |
Croepha | so if the name of the snap file on the system is kernel-x1.snap then use "kernel" as the name of the kernel in your assertion | 21:48 |
wililupy | will that work with the --extra-snaps variable? | 21:49 |
Croepha | yes | 21:49 |
Croepha | --extra-snaps needs to be the path of the kernel file regardless of what its called in any yaml files | 21:49 |
wililupy | ahh. ok. | 21:49 |
Croepha | ubuntu-image will open up the extra-snaps and figure out what to call it based on the meta info | 21:50 |
Croepha | so, it looks like your issue is exactly what mine was | 21:51 |
Croepha | i think there are two bugs here, first, ubuntu-image should validate the states of everything before the image gets created | 21:51 |
Croepha | second: snapd should avoid breaking its state when it gets a strange kernel-name | 21:52 |
wililupy | That makes sense. | 22:08 |
wililupy | Croepha: That worked!! Its consistant now! Thank you so much. No I just need to work on my automation script for the conversion of the image to another format, but at least I have a working image for the vendor. Thanks! | 22:48 |
Croepha | wililupy, yeah, no problem :) | 22:49 |
Croepha | wililupy: just curious, but what other format? | 22:58 |
wililupy | Croepha: I work in Whitebox switches, and they use ONIE images to install NOS's, so I convert the custom ubuntu-core image into a format that is ONIE compatible. | 23:04 |
Croepha | ahh. gotcha | 23:05 |
Croepha | are targeting ARM? | 23:06 |
wililupy | no x86 | 23:14 |
Croepha | cool | 23:15 |
Croepha | im in digital-signage | 23:15 |
Croepha | one of us should really do a bug/pr for snappy_docs for the kernel thing | 23:16 |
wililupy | hah. I've got a lot of docs on building kernel snaps through the progression of ubuntu-core. The assertion naming one is quite interresting though. Never would have thought of that and that was why it was always reverting and removing my snaps. Learn something new everyday. | 23:18 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!