Re: Cliqz Snap

2016-11-12 Thread XiaoGuo Liu
Hi Chris,

You may find the tips at https://github.com/snapcore/snapd/wiki/Security.
You may use the command like:

$ scmp_sys_resolver 983045
set_tls

to find out the security violation.

Best regards,
XiaoGuo

On Sun, Nov 13, 2016 at 7:13 AM, Chris  wrote:

> Has anyone gotten this snap to run? The install went fine AFAICT but
> when executed nothing happens. Syslog shows
>
> Nov 12 17:00:55 localhost /usr/lib/snapd/snapd[844]: daemon.go:174:
> DEBUG: uid=1000;@ GET /v2/snaps 31.184976ms 200
>
> Nov 12 17:00:55 localhost kernel: [250160.993225] audit: type=1326
> audit(1478991655.666:65): auid=1000 uid=1000 gid=1000 ses=3 pid=10201
> comm="cliqz" exe="/snap/cliqz/6/opt/CLIQZ/CLIQZ" sig=31 arch=c03e
> syscall=272 compat=0 ip=0x7f5d82721c19 code=0x0
>
> When executed from the cli
>
> chris@localhost:~$ cliqz
> Bad system call
>
> --
> Chris
> KeyID 0xE372A7DA98E6705C
> 31.11972; -97.90167 (Elev. 1092 ft)
> 16:59:51 up 2 days, 21:28, 1 user, load average: 0.32, 0.37, 0.36
> Ubuntu 16.04.1 LTS, kernel 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26
> 19:39:52 UTC 2016
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>


-- 
XiaoGuo, Liu
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Cliqz Snap

2016-11-12 Thread Chris
Has anyone gotten this snap to run? The install went fine AFAICT but
when executed nothing happens. Syslog shows

Nov 12 17:00:55 localhost /usr/lib/snapd/snapd[844]: daemon.go:174:
DEBUG: uid=1000;@ GET /v2/snaps 31.184976ms 200

Nov 12 17:00:55 localhost kernel: [250160.993225] audit: type=1326
audit(1478991655.666:65): auid=1000 uid=1000 gid=1000 ses=3 pid=10201
comm="cliqz" exe="/snap/cliqz/6/opt/CLIQZ/CLIQZ" sig=31 arch=c03e
syscall=272 compat=0 ip=0x7f5d82721c19 code=0x0

When executed from the cli

chris@localhost:~$ cliqz
Bad system call

-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
16:59:51 up 2 days, 21:28, 1 user, load average: 0.32, 0.37, 0.36
Ubuntu 16.04.1 LTS, kernel 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 
UTC 2016


signature.asc
Description: This is a digitally signed message part
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: configure hook

2016-11-12 Thread Boris Rybalkin
Still struggling with hooks, they are not executed on install.

snap$ snap run --hook=configure syncloud-platform
cannot snap-exec: cannot find hook "configure" in "syncloud-platform"
and even 'snap run --hook=configure mysnap' silently returns.

I am using:
Ubuntu 16.04
snapd 2.16ubuntu3

Does it have hook support?

According to this test they should even fail install if broken:
https://github.com/snapcore/snapd/blob/203591b28670ef5c4106c8fc43051500bd6c3fda/tests/main/snap-set/task.yaml

As suggested I am copying meta/hooks to prime dir after running snapcraft
prime  and then running snapcraft snap.

This bug says it is probably not yet available in edge, how do I switch
channel?

https://bugs.launchpad.net/snappy/+bug/1636931

Thank you.

On 9 Nov 2016 09:21, "Didier Roche"  wrote:

> Le 09/11/2016 à 10:15, Boris Rybalkin a écrit :
>
> One more question, should I expect a hook to run inside my snap package
> and use relative shebang like this?
>
> #!python/bin/python
>
> Assuming I am packaging python with my snap.
>
> hooks are run using the same context than any "commands:" in your snap.
>
> As long as we don't have snapcraft support, I don't think you will have
> the override in PYTHONPATH, PYTHONHOME and such (and I don't know if that's
> planned), but I'll give it a try later this week or early new one to have
> great python hooks examples.
>
> If you beat me to it, do not hesitate to report your results here!
>
> Thank you very much for your replies!
>
>
> My pleasure :)
>
>
>
> On 9 Nov 2016 08:58, "Didier Roche"  wrote:
>
>> Le 09/11/2016 à 09:39, Boris Rybalkin a écrit :
>>
>> Sorry, I did not get that.
>>
>> I am using snapcraft, are you saying that just creating hooks/configure
>> is not enaugh?
>>
>> It should be enough if you ensure it's in your final snap in
>> meta/hooks/configure. (Look at your prime/ directory).
>> Enwei was talking about more advanced snapcraft integration, where you
>> point to a file which is then copied for you in meta/hooks.
>>
>> Looks like my hook is not executed:
>> https://github.com/syncloud/platform/tree/master/snap
>>
>> Is it possible to debug the execution of snap install?
>>
>> I would like to see the state of the snap after it failed to start
>> daemons. The only way to see the problem is to run journalctl and guess by
>> startup errors.
>>
>> Yeah, hooks are hard to debug, I filed
>>
>>
>> *https://bugs.launchpad.net/snappy/+bug/1640114
>>  yesterday about this.
>> Didier *
>>
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/snapcraft
>>
>>
>
>
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft