Fwd: Member not found

Gábor Paller gaborpaller at gmail.com
Fri Oct 30 17:08:40 UTC 2015


"This is an old yaml format and the policy vendor and version you are using
indicate this is from tools from before the 15.04 release (and there was a
lot
of snappy activity prior to release)."

I ran the new packaging tool and it generated an apparmor file like this:
{
  "template": "default",
  "policy_groups": [
    "networking"
  ],
  "policy_vendor": "ubuntu-core",
  "policy_version": 15.04
}

It would be tempting to insert my read_path and write_path statements like
previously except that the packaging tool always overwrites this file
whenever I generate the package. It may be the limitation of my mental
capabilities but a file like this:
https://github.com/ubuntu-core/snappy-testdata/blob/master/hello-dbus/package-dir-fwk/meta/svc.apparmor
or this:
https://github.com/ubuntu-core/snappy-testdata/blob/master/hello-dbus/package-dir-fwk/meta/svc.seccomp
exceeds what I am capable of.

Is there any way to modify somehow the apparmor file that is generated into
my meta directory and make sure that the packaging tool does not overwrite
my changes?

Regards,
Gabor



On Fri, Oct 30, 2015 at 2:17 PM, Jamie Strandboge <jamie at canonical.com>
wrote:

> On 10/30/2015 03:13 AM, Gábor Paller wrote:
> > "Let us know how it goes updating your snap."
> >
> > Let me grab this opportunity to talk about my AppArmor file that breaks
> the
> > install. :-)
> >
> > The whole purpose of that exercise is to access the /dev/ttyO1 device
> that I use
> > to talk to my GSM machinery. So if there's an easy way to provide
> access, I
> > happily drop that AppArmor file. :-)
> >
>
> On a 15.04 system, use:
> $ sudo snappy hw-assign cameraagent.sideload /dev/ttyO1
>
> > Meanwhile, it looks like this:
> > {
> >     "template": "default",
> >     "policy_vendor": "ubuntu-snappy",
> >     "policy_version": 1.3,
> >     "policy_groups": [
> >         "networking"
> >     ],
> >     "read_path": [
> >         "/dev/ttyO1"
> >    ],
> >    "write_path": [
> >         "/dev/ttyO1"
> >    ]
> > }
> >
> > Referenced like this from package.yaml:
> >
> > binaries:
> >  - name: bin/cameraagent.sh
> >    security-policy:
> >       apparmor: meta/cameraagent.apparmor
> >
>
> This is an old yaml format and the policy vendor and version you are using
> indicate this is from tools from before the 15.04 release (and there was a
> lot
> of snappy activity prior to release).
>
> In the future, you can use the review tools to catch these issues
> (assuming they
> are up to date. These are the same tools that the store will use). Eg:
> $ click-review /path/to/you/snap
>
>
> --
> Jamie Strandboge                 http://www.ubuntu.com/
>
>
> --
> snappy-devel mailing list
> snappy-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/snappy-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-devel/attachments/20151030/389e33e8/attachment.html>


More information about the snappy-devel mailing list