Fwd: Member not found
jamie at canonical.com
Sun Nov 1 21:59:19 UTC 2015
On 11/01/2015 01:08 PM, Gábor Paller wrote:
> My snap now runs unconfined and I would like to make it confined. I am sitting
> on top of a huge software stack (entire OpenCV and its dependencies) and access
> problems start to come up.
> First question: I need to grant access to a privileged file.
> IOError: [Errno 13] Permission denied: '/etc/matplotlibrc'
> How do I do this?
This file does not exist on an Ubuntu Core system-- guessing you are perhaps
trying to write to it? If so, / is mounted read-only and so (most of) /etc is
not available for writing (see the developer docs for details). You should
instead ship this file as part of your snap and adjust your application to use
it instead of /etc/matplotlibrc.
> On Fri, Oct 30, 2015 at 8:17 PM, Jamie Strandboge <jamie at canonical.com
> <mailto:jamie at canonical.com>> wrote:
> On 10/30/2015 02:08 PM, Gábor Paller wrote:
> > "On 15.04 you have two options, either use hw-assign (which is aimed at
> > developers) or use oem assign"
> > So is that "hw-assign" necessary after every installation? I suspect it is as
> > the access to the ttyO1 device is not present in the apparmor file so whenever
> > the package is reinstalled, the permission has to be granted again. Am I right?
> I answered this in a followup email: "When using hw-assign, you will need to run
> hw-assign after the first install of the snap on a device. You do not have to
> run it again after upgrading the snap that the device has been assigned to."
> > Also, what is the "caps" in the package.yaml that gives me access to the /dev/ttyO1?
> caps is not used to grant access to devices.
> Jamie Strandboge http://www.ubuntu.com/
Jamie Strandboge http://www.ubuntu.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the snappy-devel